This repository has been archived by the owner on Sep 13, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
78 lines (77 loc) · 1.98 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
{
"env": {
"browser": true,
"es2021": true,
"amd": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["react", "@typescript-eslint"],
"rules": {
"@typescript-eslint/no-unused-vars": ["warn", {
"argsIgnorePattern": "^_$"
}],
"object-curly-spacing": [2, "always"],
"indent": ["error", 2],
"no-alert": "error",
"keyword-spacing": "error",
"no-empty": "error",
"prefer-const": "off",
"linebreak-style": ["error", "windows"],
"semi": ["error", "always"],
"no-console": [
"warn", {
"allow": ["debug", "error"]
}
],
"max-len": ["error", {
"code": 100,
"ignorePattern": "^\\s*<[A-Za-z].+>"
}],
"no-multi-spaces": "error",
"space-infix-ops": "error",
"no-await-in-loop": "error",
"space-before-blocks": "error",
"camelcase": "error",
"jsx-quotes": "error",
"quotes": ["error", "double", {
"allowTemplateLiterals": true
}],
"array-bracket-newline": ["error", "consistent"],
"space-in-parens": ["error", "never"],
"array-bracket-spacing": ["error", "never"],
"brace-style": ["error", "1tbs"],
"function-call-argument-newline": ["error", "consistent"],
"max-lines": ["warn", {
"max": 250,
"skipBlankLines": true,
"skipComments": true
}],
"max-params": ["warn", 4],
"max-depth": ["warn", 4],
// React
"react/react-in-jsx-scope": "off",
"react/jsx-tag-spacing": "error",
"react/jsx-boolean-value": "error",
"react/jsx-wrap-multilines": ["error", {
"return": "parens",
"arrow": "ignore"
}],
"react/self-closing-comp": "error",
"react/jsx-no-bind": ["error", {
"allowArrowFunctions": true
}]
}
}