Skip to content

Commit efdf3d9

Browse files
authored
MAINT: updated project linting (#847)
* MAINT: updated project linting * fix: remove commented code
1 parent ef0dd70 commit efdf3d9

File tree

8 files changed

+6689
-10017
lines changed

8 files changed

+6689
-10017
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ ENV/
102102

103103
# Spyder project settings
104104
.spyderproject
105-
.vscode
106105

107106
# Rope project settings
108107
.ropeproject

compose/neurosynth-frontend/.babelrc

Lines changed: 0 additions & 7 deletions
This file was deleted.

compose/neurosynth-frontend/.eslintrc

Lines changed: 0 additions & 25 deletions
This file was deleted.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"singleQuote": true,
3+
"semi": true,
4+
"trailingComma": "es5",
5+
"tabWidth": 4,
6+
"tabs": false,
7+
"printWidth": 120
8+
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
import tsParser from '@typescript-eslint/parser';
2+
import eslint from '@eslint/js';
3+
import teslint from 'typescript-eslint';
4+
import eslintHooks from 'eslint-plugin-react-hooks';
5+
import eslintCypress from 'eslint-plugin-cypress/flat';
6+
import eslintPrettier from 'eslint-plugin-prettier/recommended';
7+
import globals from 'globals';
8+
import eslintReactRefresh from 'eslint-plugin-react-refresh';
9+
10+
export default [
11+
eslint.configs.recommended,
12+
...teslint.configs.recommended,
13+
eslintCypress.configs.recommended,
14+
eslintPrettier,
15+
{
16+
languageOptions: {
17+
globals: {
18+
...globals.browser,
19+
},
20+
parser: tsParser,
21+
parserOptions: {
22+
ecmaFeatures: {
23+
modules: true,
24+
},
25+
ecmaVersion: 2020,
26+
project: './tsconfig.json',
27+
},
28+
},
29+
plugins: {
30+
'react-hooks': eslintHooks,
31+
'react-refresh': eslintReactRefresh,
32+
},
33+
rules: {
34+
...eslintHooks.configs.recommended.rules,
35+
'react-refresh/only-export-components': 'warn',
36+
},
37+
},
38+
];

0 commit comments

Comments
 (0)