-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
executable file
·54 lines (54 loc) · 1.97 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
{
"parser": "babel-eslint",
"plugins": ["react", "react-hooks"],
"parserOptions": {
"ecmaVersion" : 6,
"sourceType" : "module",
"ecmaFeatures" : {
"jsx": true
}
},
"env": {
"es6" : true,
"browser" : true,
"node" : true,
"jest" : true
},
"extends": ["airbnb", "plugin:react/recommended"],
"settings": {
"import/resolver": {
"node": {
"paths": ["."]
}
}
},
"rules": {
"quotes": [2, "double", {"avoidEscape": true, "allowTemplateLiterals": true}],
"semi": ["error", "always"],
"indent": ["error", 2, { "ignoredNodes": ["ConditionalExpression"] }],
"consistent-return": "off",
"key-spacing": ["error", { "align": {"beforeColon": true, "afterColon": true, "on": "colon"} }],
"no-use-before-define": ["error", { "functions": false }],
"no-console": "off",
"no-restricted-syntax": "off",
"camelcase": "off",
"max-len": "off",
"arrow-parens": [2, "as-needed", { "requireForBlockBody": true }],
"jsx-a11y/label-has-associated-control": [ 2, {
"labelComponents": ["CustomInputLabel"],
"labelAttributes": ["label"],
"controlComponents": ["CustomInput"],
"depth": 3
}],
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/no-static-element-interactions": "off",
"react/jsx-one-expression-per-line": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"no-underscore-dangle": ["error", { "allow": ["_id"] }],
"comma-dangle": ["error", {"objects": "ignore", "arrays": "always-multiline"}],
"prefer-destructuring": ["error", {"array": false}],
"function-paren-newline": ["error", "consistent"],
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }]
}
}