This repository has been archived by the owner on Sep 18, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
57 lines (57 loc) · 1.6 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
{
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 7,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"experimentalObjectRestSpread": true
}
},
"extends": "airbnb",
"plugins": [
"babel",
"react",
"jsx-a11y",
"import"
],
"env": {
"es6": true,
"browser": true,
"node": true
},
"rules": {
"semi": ["error", "never"],
"max-len": ["error", {
"code": 120,
"ignoreUrls": true,
"ignoreComments": false,
"ignoreRegExpLiterals": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true
}],
"comma-dangle": ["error", "never"],
"import/prefer-default-export": ["off"],
"no-console": ["error"],
"no-plusplus": ["off"],
"no-multiple-empty-lines": ["error", { "max": 2, "maxEOF": 1, "maxBOF": 1 }],
"dot-notation": ["off"],
"react/jsx-filename-extension": ["error", { "extensions": [".js", ".jsx"] }],
"react/jsx-boolean-value": ["error", "never"],
"react/jsx-sort-props": ["error", { "callbacksLast": true }],
"react/jsx-space-before-closing": ["off"],
"react/forbid-prop-types": ["off"],
"react/prop-types": ["error", { "ignore": ["children"] }],
"jsx-a11y/no-noninteractive-element-handlers": ["off"],
"jsx-a11y/no-noninteractive-element-interactions": ["off"],
"jsx-a11y/no-static-element-interactions": ["off"],
"import/no-extraneous-dependencies": ["error", {"devDependencies": ["config/webpack/*.js"]}]
},
"settings": {
"import/resolver": {
"node": {
"paths": ["src", "src/services", "src/components"]
}
}
}
}