-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
70 lines (70 loc) · 1.96 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
62
63
64
65
66
67
68
69
70
{
"extends": ["airbnb", "prettier", "plugin:cypress/recommended", "eslint:recommended"],
"parser": "@babel/eslint-parser",
"env": {
"browser": true,
"es6": true,
"node": true
},
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": ["prettier", "cypress", "react"],
"settings": {
"react": {
"createClass": "createReactClass",
"pragma": "React",
"version": "detect",
"flowVersion": "0.53"
}
},
"globals": {
"__BASE_PATH__": true
},
"rules": {
"no-unused-vars": ["error", { "varsIgnorePattern": "^_" }],
"no-shadow": "off",
"func-names": "off",
"consistent-return": "off",
"no-return-await": "off",
"no-await-in-loop": "off",
"default-param-last": "off",
"array-callback-return": "off",
"prefer-destructuring": ["error", { "object": true, "array": false }],
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
"react/jsx-props-no-spreading": "off",
"semi": ["error", "never"],
"comma-dangle": ["error", "never"],
"arrow-parens": ["error", "always"],
"import/no-unresolved": "off",
"import/no-import-module-exports": "off",
"import/no-extraneous-dependencies": ["error", { "devDependencies": true }],
"react/no-array-index-key": "off",
"react/no-unstable-nested-components": "off",
"react/jsx-filename-extension": "off",
"react/jsx-wrap-multilines": "off",
"react/jsx-one-expression-per-line": "off",
"react/function-component-definition": [
2,
{
"namedComponents": "arrow-function",
"unnamedComponents": "arrow-function"
}
],
"jsx-a11y/no-static-element-interactions": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/label-has-for": "off",
"jsx-a11y/label-has-associated-control": "off",
"react/prop-types": [
1,
{
"skipUndeclared": true
}
]
}
}