-
Notifications
You must be signed in to change notification settings - Fork 15
/
.eslintrc.js
47 lines (47 loc) · 905 Bytes
/
.eslintrc.js
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
47
module.exports = {
root : true,
env : {
node : true,
jest : true,
es2020 : true
},
extends : [
'plugin:react/recommended',
'plugin:react/jsx-runtime',
'eslint:recommended'
],
ignorePatterns : ['/dist/**'],
rules : {
'no-console' : ['error', { allow : ['warn', 'error'] }],
'no-debugger' : 'error',
'no-var' : 'off',
semi : ['error', 'always'],
indent : [1, 'tab'],
'space-before-function-paren' : [
'warn',
{
anonymous : 'always',
named : 'never'
}
],
'key-spacing' : [
'warn',
{
beforeColon : true
}
],
'operator-linebreak' : ['error', 'after'],
'no-nested-ternary' : 'error',
quotes : ['error', 'single'],
'arrow-parens' : ['error', 'always'],
'react/jsx-uses-react' : 'off',
'react/react-in-jsx-scope' : 'off',
'no-redeclare' : 'off'
},
settings : {
react : {
version : 'detect'
}
},
parser : 'babel-eslint'
};