-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
80 lines (80 loc) · 1.94 KB
/
.eslintrc
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
{
"extends": ["react-app", "prettier", "plugin:import/errors"],
"parser": "babel-eslint",
"env": {
"browser": true,
"node": true,
"jest": true
},
"rules": {
"prefer-const": ["warn"],
"no-const-assign": ["error"],
"object-shorthand": ["warn", "properties"],
"prefer-destructuring": [
"warn",
{
"array": false,
"object": true
}
],
"no-var": ["warn"],
"quote-props": ["warn", "as-needed"],
"no-prototype-builtins": ["error"],
"no-array-constructor": ["warn"],
"array-callback-return": ["error"],
"prefer-template": ["warn"],
"template-curly-spacing": ["warn"],
"no-loop-func": ["error"],
"prefer-rest-params": ["error"],
"no-param-reassign": ["error"],
"prefer-spread": ["warn"],
"no-useless-constructor": ["warn"],
"no-dupe-class-members": ["error"],
"no-duplicate-imports": ["warn"],
"import/first": ["warn"],
"dot-notation": ["warn"],
"no-undef": ["error"],
"no-plusplus": ["error"],
"no-unused-vars": ["warn"],
"no-nested-ternary": ["warn"],
"comma-style": ["warn"],
"semi": ["warn"],
"radix": ["error"],
"no-restricted-globals": ["warn"],
"no-useless-concat": ["warn"],
"react/prop-types": ["warn"],
"react/destructuring-assignment": ["warn"],
"react/jsx-boolean-value": ["warn"],
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": [
"src/**/*.stories.js",
"src/**/__tests__/**/*",
"src/**/shared/stories/**/*",
"src/setupTests.js"
],
"optionalDependencies": false
}
]
},
"overrides": [
{
"files": ["*.test.js"],
"rules": {
"react/prop-types": "off"
}
}
],
"settings": {
"import/resolver": {
"webpack": {
"config": {
"resolve": {
"modules": ["node_modules", "src"]
}
}
}
}
}
}