-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.cjs
More file actions
46 lines (45 loc) · 1.03 KB
/
.eslintrc.cjs
File metadata and controls
46 lines (45 loc) · 1.03 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
const RULES = {
OFF: 'off',
ERROR: 'error',
WARN: 'warn',
}
module.exports = {
env: {
browser: true,
es2021: true,
node: true,
},
extends: [
'plugin:react/recommended',
'plugin:react-hooks/recommended',
'airbnb',
],
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 'latest',
sourceType: 'module',
},
plugins: [
'react',
'react-hooks',
],
settings: {},
rules: {
semi: RULES.OFF,
'max-len': [RULES.ERROR, { code: 120 }],
'no-unused-vars': [RULES.ERROR, { vars: 'all' }],
'import/prefer-default-export': RULES.OFF,
'react/react-in-jsx-scope': RULES.OFF,
'react/function-component-definition': RULES.OFF,
'react/jsx-filename-extension': [0],
'import/extensions': RULES.OFF,
'import/no-unresolved': RULES.OFF,
'import/named': RULES.OFF,
'comma-dangle': RULES.OFF,
'react/jsx-props-no-spreading': RULES.OFF,
quotes: [RULES.ERROR, 'single', 'avoid-escape'],
'jsx-quotes': [RULES.ERROR, 'prefer-single'],
},
};