-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.js
More file actions
29 lines (28 loc) · 1.09 KB
/
eslint.config.js
File metadata and controls
29 lines (28 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import globals from 'globals'
import js from '@eslint/js'
import stylistic from '@stylistic/eslint-plugin'
export default [
{ ignores: ['dist', '**/*.test.jsx', 'node_modules', '.vite', 'FrontEnd', 'ReactQuery_FrontEnd', 'Redux_FrontEnd'] },
{
files: ['**/*.{js}'],
languageOptions: { globals: globals.node },
settings: { react: { version: '18.3' } },
plugins: {
'@stylistic': stylistic
},
rules: {
...js.configs.recommended.rules,
'@stylistic/indent': ['error', 4],
'@stylistic/semi': ['error', 'never'],
'@stylistic/comma-dangle': ['error', 'never'],
'@stylistic/comma-spacing': ['error', { 'after': true }],
'@stylistic/quotes': ['error', 'single', {
'allowTemplateLiterals': 'always'
}],
'eqeqeq': ['error', 'always'],
'@stylistic/object-curly-spacing': ['error', 'always'],
'@stylistic/arrow-spacing': ['error', { 'before': true, 'after': true }],
'no-unused-vars': 'off'
}
}
]