-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
62 lines (62 loc) · 1.43 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
58
59
60
61
62
module.exports = {
root: true,
env: {
browser: true,
node: true,
es6: true,
jest: true
},
settings: {
"import/resolver": {
webpack: {
config: "webpack.dev.config.js"
},
node: {
paths: ["src"],
extensions: [".js", ".jsx", ".json"]
}
}
},
globals: {
Atomics: "readonly",
SharedArrayBuffer: "readonly"
},
parser: "babel-eslint",
parserOptions: {
ecmaFeatures: {
jsx: true
},
ecmaVersion: 2018,
sourceType: "module"
},
plugins: ["import", "react", "prettier"],
rules: {
"no-dupe-keys": "error",
"no-undef": "error",
"no-unreachable": "error",
"no-unused-vars": [
"error",
{ argsIgnorePattern: "^_", ignoreRestSiblings: true }
],
"no-useless-constructor": "error",
"no-var": "error",
"no-duplicate-imports": "error",
"no-duplicate-case": "error",
"import/no-unresolved": "error",
"import/default": "error",
"react/jsx-no-undef": "error",
"react/jsx-uses-vars": "error",
"react/jsx-uses-react": "error",
"react/react-in-jsx-scope": "error",
"react/no-string-refs": "error",
"react/prop-types": ["error", { skipUndeclared: true }],
"react/forbid-prop-types": "error",
"react/prefer-stateless-function": [
"error",
{ ignorePureComponents: true }
],
"prettier/prettier": "error",
"no-console": "error",
"no-debugger": "error"
}
};