-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.eslintrc.js
51 lines (48 loc) · 1.26 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
module.exports = {
parser: "@babel/eslint-parser",
extends: [
"airbnb",
"prettier",
"plugin:react/recommended",
"plugin:cypress/recommended",
],
plugins: ["prettier"],
rules: {
"arrow-body-style": ["error", "as-needed"],
"class-methods-use-this": [1, { exceptMethods: ["render"] }],
"jsx-a11y/label-has-associated-control": [
"error",
{
labelComponents: [],
labelAttributes: [],
controlComponents: [],
assert: "both",
depth: 25,
},
],
"import/no-named-as-default": "off",
"import/prefer-default-export": "off",
"no-case-declarations": "off",
"no-console": ["error", { allow: ["error"] }],
"no-param-reassign": "off",
"no-shadow": "off",
"no-underscore-dangle": "off",
"no-unneeded-ternary": "off",
"prettier/prettier": "error",
"react/forbid-prop-types": "off",
"react/jsx-filename-extension": "off",
"react/jsx-one-expression-per-line": "off",
"react/prefer-stateless-function": "off",
"react/state-in-constructor": "off",
"react/static-property-placement": "off",
},
env: {
es6: true,
jest: true,
browser: true,
},
parserOptions: {
sourceType: "module",
allowImportExportEverywhere: true,
},
};