-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.js
53 lines (53 loc) · 1.35 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
module.exports = {
parser: 'babel-eslint',
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:jsx-a11y/recommended',
'plugin:import/errors',
'plugin:jest/recommended',
],
env: {
browser: true,
es6: true,
node: true,
'jest/globals': true,
},
plugins: ['react', 'jsx-a11y', 'import', 'jest'],
parserOptions: {
sourceType: 'module',
ecmaVersion: 2018,
ecmaFeatures: {
jsx: true,
},
},
settings: {
'import/ignore': ['.json$', '.scss$', '.css$', 'node_modules'],
},
rules: {
'no-case-declarations': 0,
'react/no-did-mount-set-state': 0,
'react/no-did-update-set-state': 0,
'no-prototype-builtins': 0,
'jest/consistent-test-it': 1,
'jest/expect-expect': 1,
'jest/lowercase-name': 1,
'jest/no-disabled-tests': 1,
'jest/no-focused-tests': 1,
'jest/no-hooks': 1,
'jest/no-identical-title': 1,
'jest/no-jasmine-globals': 1,
'jest/no-jest-import': 1,
'jest/no-large-snapshots': 1,
'jest/no-test-prefixes': 1,
'jest/no-test-return-statement': 1,
'jest/prefer-strict-equal': 1,
'jest/prefer-to-be-null': 1,
'jest/prefer-to-be-undefined': 1,
'jest/prefer-to-have-length': 1,
'jest/prefer-inline-snapshots': 1,
'jest/valid-describe': 1,
'jest/valid-expect-in-promise': 1,
'jest/valid-expect': 1,
},
}