-
Notifications
You must be signed in to change notification settings - Fork 73
/
Copy path.eslintrc.json
100 lines (100 loc) · 2.83 KB
/
.eslintrc.json
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
{
"extends": ["airbnb", "plugin:prettier/recommended"],
"parser": "babel-eslint",
"env": {
"browser": true,
"node": true,
"jasmine": true,
"jest/globals": true
},
"plugins": ["jest"],
"globals": {
"__static": true
},
"rules": {
"prettier/prettier": [
"error",
{
"singleQuote": true,
"printWidth": 100,
"arrowParens": "always",
"endOfLine": "auto"
}
],
"react/state-in-constructor": "off",
"react/jsx-props-no-spreading": "off",
"react/static-property-placement": "off",
"consistent-return": "off",
"linebreak-style": "off",
"react/jsx-fragments": "off",
"arrow-body-style": ["off"],
"comma-dangle": ["error", "never"],
"no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
"no-else-return": ["off"],
"object-curly-newline": ["error", { "consistent": true }],
"operator-linebreak": ["error", "after", { "overrides": { "?": "before", ":": "before" } }],
"jsx-a11y/anchor-is-valid": ["error", { "components": ["Link"], "specialLink": ["to"] }],
"jsx-a11y/click-events-have-key-events": ["off"],
"import/no-cycle": ["off"],
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": ["__mocks__/**/*.js", "__tests__/**/*.js", "config/**/*.js", "scripts/**/*.js"]
}
],
"import/order": [
"error",
{
"groups": [["external", "builtin"], "internal", ["sibling", "parent"]],
"newlines-between": "always-and-inside-groups"
}
],
"react/destructuring-assignment": ["off"],
"react/no-typos": ["off"],
"react/jsx-one-expression-per-line": ["off"],
"react/jsx-filename-extension": ["error", { "extensions": [".js", ".jsx"] }],
"react/sort-comp": [
"error",
{
"order": [
"static-methods",
"type-annotations",
"instance-variables",
"lifecycle",
"renderers",
"handlers",
"everything-else"
],
"groups": {
"lifecycle": [
"displayName",
"propTypes",
"contextTypes",
"childContextTypes",
"mixins",
"statics",
"defaultProps",
"state",
"constructor",
"getDefaultProps",
"getInitialState",
"getChildContext",
"componentWillMount",
"componentDidMount",
"componentWillReceiveProps",
"shouldComponentUpdate",
"componentWillUpdate",
"componentDidUpdate",
"componentWillUnmount"
],
"renderers": ["render", "/^render.+$/"],
"handlers": ["/^handle.+$/"]
}
}
]
},
"settings": {
"import/core-modules": ["electron"],
"import/resolver": { "babel-module": {} }
}
}