Skip to content

Commit

Permalink
MAINT: updated project linting (#847)
Browse files Browse the repository at this point in the history
* MAINT: updated project linting

* fix: remove commented code
  • Loading branch information
nicoalee authored Nov 11, 2024
1 parent ef0dd70 commit efdf3d9
Show file tree
Hide file tree
Showing 8 changed files with 6,689 additions and 10,017 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ ENV/

# Spyder project settings
.spyderproject
.vscode

# Rope project settings
.ropeproject
Expand Down
7 changes: 0 additions & 7 deletions compose/neurosynth-frontend/.babelrc

This file was deleted.

25 changes: 0 additions & 25 deletions compose/neurosynth-frontend/.eslintrc

This file was deleted.

8 changes: 8 additions & 0 deletions compose/neurosynth-frontend/.prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"singleQuote": true,
"semi": true,
"trailingComma": "es5",
"tabWidth": 4,
"tabs": false,
"printWidth": 120
}
38 changes: 38 additions & 0 deletions compose/neurosynth-frontend/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import tsParser from '@typescript-eslint/parser';
import eslint from '@eslint/js';
import teslint from 'typescript-eslint';
import eslintHooks from 'eslint-plugin-react-hooks';
import eslintCypress from 'eslint-plugin-cypress/flat';
import eslintPrettier from 'eslint-plugin-prettier/recommended';
import globals from 'globals';
import eslintReactRefresh from 'eslint-plugin-react-refresh';

export default [
eslint.configs.recommended,
...teslint.configs.recommended,
eslintCypress.configs.recommended,
eslintPrettier,
{
languageOptions: {
globals: {
...globals.browser,
},
parser: tsParser,
parserOptions: {
ecmaFeatures: {
modules: true,
},
ecmaVersion: 2020,
project: './tsconfig.json',
},
},
plugins: {
'react-hooks': eslintHooks,
'react-refresh': eslintReactRefresh,
},
rules: {
...eslintHooks.configs.recommended.rules,
'react-refresh/only-export-components': 'warn',
},
},
];
Loading

0 comments on commit efdf3d9

Please sign in to comment.