This repository has been archived by the owner on Apr 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.js
84 lines (84 loc) · 2.28 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
module.exports = {
parser: "babel-eslint",
plugins: [
"babel",
"import"
],
env: {
"browser": true,
"node": true,
"jest": true,
},
extends: [
"airbnb"
],
globals: {
"__DEV__": true,
},
rules: {
"indent": ["error", 2, { "SwitchCase": 1 }],
"babel/semi": "error",
"babel/no-invalid-this": "error",
"babel/object-curly-spacing": "off",
"babel/quotes": "off",
"babel/no-unused-expressions": "error",
"import/no-extraneous-dependencies": "off",
"import/prefer-default-export": "off",
"import/extensions": "off",
"import/no-unresolved": "off",
"import/exports-last": "error",
"import/no-namespace": "error",
"jsx-a11y/anchor-is-valid": "off",
"jsx-a11y/label-has-for": "off",
"react/jsx-filename-extension": "off",
"react/prefer-stateless-function": "off",
"no-prototype-builtins": "off",
"no-class-assign": "error",
"no-param-reassign": "off",
"no-underscore-dangle": "off",
"class-methods-use-this": "off",
"object-curly-newline": "off",
"guard-for-in": "off",
"consistent-return": "off",
"react/forbid-prop-types": "off",
"react/sort-comp": "off",
"react/no-unused-state": "off",
"arrow-parens": ["error", "always"],
"quote-props": ["error", "consistent-as-needed"],
"object-shorthand": ["error", "consistent-as-needed"],
"no-restricted-syntax": ["off", "ForInStatement"],
"linebreak-style": ["error", "unix"],
"no-multiple-empty-lines": "error",
"no-trailing-spaces": ["error"],
"react/prop-types": ["error", {
ignore: ["actions", "context"]
}],
"no-return-assign": ["off"],
"react/destructuring-assignment": ["error", "always",
{ "ignoreClassFields": true }
],
"react/prop-types": ["error", {
ignore: ["actions", "context"]
}],
"no-multiple-empty-lines": ["error",
{ "max": 1, "maxEOF": 1 }
],
"prefer-destructuring": ["error", {
"AssignmentExpression": {
"array": false,
"object": false
}
}, {
"enforceForRenamedProperties": false
}],
"quotes": ["warn", "single", {
allowTemplateLiterals: true
}],
"padded-blocks": ["warn", {
classes:"always"
}],
"no-unused-vars": ["error", {
args: "none"
}]
}
}