-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
57 lines (57 loc) · 1.09 KB
/
.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
48
49
50
51
52
53
54
55
56
57
module.exports = {
'plugins': [
'react',
'react-hooks',
'eslint-plugin-import'
],
'extends': [
'eslint:recommended',
'plugin:react/recommended'
],
'parser': 'babel-eslint',
'env': {
'browser': true,
'node': true,
'jest': true,
'es6': true,
'jasmine': true
},
'rules': {
'no-console': 1,
'no-multiple-empty-lines': 1,
'eol-last': 2,
'semi': 2,
'eqeqeq': 2,
'quotes': ['error', 'single'],
'curly': 2,
'prefer-const': 2,
'dot-notation': 1,
'no-empty-pattern': 1,
'import/order': ['error', { 'groups': ['external', 'internal'] }],
'no-unused-vars': 1,
'react/prop-types': 2,
'react/destructuring-assignment': [2, 'always'],
'react/display-name': [2, {
'ignoreTranspilerName': true
}],
'react-hooks/rules-of-hooks': 2,
'indent': [
'error',
2,
{
'SwitchCase': 1,
'ignoredNodes': [
'TemplateLiteral'
]
}
],
'template-curly-spacing': [
'off'
]
},
'settings': {
'react': {
'version': 'detect'
}
}
};