-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.eslintrc
61 lines (61 loc) · 1.76 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
{
"env": {
"browser": true,
"jquery": false,
"es6": true
},
"globals": {
"__DEVELOPMENT__": true,
"__STAGING__": true,
"__PRODUCTION__": true,
"chaynsApp": true,
"chayns": true
},
"parser": "babel-eslint",
"rules": {
"function-paren-newline": ["error", "multiline"],
"comma-dangle": ["error", "always-multiline"],
"arrow-parens": ["error", "always"],
"no-param-reassign": ["error", {
"props": true,
"ignorePropertyModificationsFor": ["draftState"]
}],
"indent": ["error", 4, { "SwitchCase": 1 }],
"linebreak-style": ["error", "windows"],
"max-len": ["error", { "code": 150 }],
"no-plusplus": "off",
"strict": "off",
"object-curly-newline": ["error", {
"ObjectExpression": {
"multiline": true,
"consistent": true
},
"ObjectPattern": {
"multiline": true,
"consistent": true
}
}],
"import/no-extraneous-dependencies": "off",
"import/prefer-default-export": "off",
"import/no-unresolved": ["error", {
"ignore": ["chayns-components"]
}],
"import/no-cycle": "off",
"react/static-property-placement": ["error", "property assignment"],
"react/jsx-indent-props": ["error", 4],
"react/jsx-tag-spacing": ["error", {
"beforeSelfClosing": "never",
"beforeClosing": "never"
}],
"react/jsx-indent": ["error", 4],
"react/no-danger": "off",
"jsx-a11y/no-noninteractive-element-interactions": "off",
"jsx-a11y/no-static-element-interactions": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/heading-has-content": "off",
"jsx-a11y/anchor-has-content": "off",
"jsx-a11y/anchor-is-valid": "off",
"jsx-a11y/href-no-hash": "off"
},
"extends": "airbnb"
}