-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc
40 lines (40 loc) · 1.21 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
{
"parser": "@babel/eslint-parser",
"parserOptions": {
"requireConfigFile": false,
"ecmaVersion": 2021,
"ecmaFeatures": {
"jsx": true
},
"babelOptions": {
"presets": ["@babel/preset-react"]
}
},
"extends": ["airbnb", "plugin:cypress/recommended"],
"plugins": ["react-hooks"],
"rules": {
"no-use-before-define": ["error", { "functions": false }],
"react-hooks/rules-of-hooks": "error",
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"react/jsx-props-no-spreading": "off",
"react/require-default-props": "off",
"jsx-a11y/label-has-for": "off",
"jsx-a11y/label-has-associated-control": "off",
"jsx-a11y/no-autofocus": "off",
"jsx-a11y/no-noninteractive-element-interactions": "off",
"jsx-a11y/anchor-is-valid": "off",
"no-console": "off",
"no-restricted-syntax": ["error", "ForInStatement", "LabeledStatement", "WithStatement"],
"no-unused-expressions": "off",
"import/no-extraneous-dependencies": "off",
"import/prefer-default-export": "off",
"indent": ["error", 2, {
"ignoredNodes": ["TemplateLiteral"],
"SwitchCase": 1
}]
},
"env": {
"browser": true,
"node": true
}
}