-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.eslintrc.json
95 lines (95 loc) · 2.57 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
{
"env": {
"browser": true,
"es6": true,
"jest": true,
"serviceworker": true
},
"extends": [
"react-app",
"plugin:react/recommended",
"airbnb"
],
"settings": {
"import/resolver": {
"alias": {
"map": [
["@", "./src"]
],
"extensions": [".js",".jsx"]
}
}
},
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"requireConfigFile": false,
"babelOptions": {
"presets": ["@babel/preset-react"]
}
},
"plugins": [
"react", "react-hooks"
],
"rules": {
"no-alert": "off",
"consistent-return": "off",
"no-return-assign": "off",
"no-unused-vars": "warn",
"no-console": ["warn", { "allow": ["warn", "error", "info"] }],
"func-names": "off",
"no-process-exit": "off",
"object-shorthand": "off",
"class-methods-use-this": "off",
"arrow-parens": ["error", "as-needed"],
"operator-linebreak": "off",
"quotes": [2, "single", "avoid-escape"],
"linebreak-style": "off",
"max-len": ["error", { "code": 120 }],
"no-restricted-syntax": "off",
"guard-for-in": "off",
"no-restricted-properties": "off",
"no-useless-escape": "off",
"radix": "off",
"camelcase": "warn",
"no-restricted-globals": "off",
"use-isnan": 2,
"no-plusplus": "off",
"no-underscore-dangle": "off",
"no-param-reassign": ["error", { "props": false }],
"no-unused-expressions": ["error", { "allowShortCircuit": true }],
"react/no-array-index-key": "off",
"react/jsx-one-expression-per-line": "off",
"react/react-in-jsx-scope": "off",
"react/prop-types": [0, { "ignore": ["children"] }],
"react/jsx-props-no-spreading": "off",
"react/forbid-prop-types": "off",
"react/state-in-constructor": "off",
"react/jsx-filename-extension": "off",
"react/require-default-props": "off",
"react/no-unescaped-entities": "off",
"react/no-danger": "off",
"default-param-last": "off",
"no-nested-ternary": "off",
"react/function-component-definition": [0, {
"namedComponents": "arrow-function",
"unnamedComponents": "arrow-function"
}],
"jsx-a11y/label-has-associated-control": "off",
"import/order": ["error", {
"newlines-between": "always",
"groups": [["builtin", "external"], "internal", ["parent", "sibling", "index"]],
"pathGroups": [
{
"pattern": "@/**",
"group": "internal"
}
]
}]
}
}