-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.json
57 lines (56 loc) · 1.76 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
{
"env": {
"browser": true,
"es6": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/eslint-recommended"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": [
"@typescript-eslint",
"header",
"promise",
"react",
"react-hooks",
"simple-import-sort"
],
"settings": {
"react": {
"pragma": "React", // Pragma to use, default to "React"
"version": "18.2.0" // React version, default to the latest React stable release
}
},
"rules": {
"@typescript-eslint/no-unused-vars": "error",
"arrow-spacing":["warn",{ "before": true, "after": true }],
"comma-dangle": ["error", "never"],
"header/header": [2, "./header.js"],
"indent": ["error", "tab"],
"no-multiple-empty-lines": ["error", {"max": 1}],
"no-tabs": ["error", { "allowIndentationTabs": true }],
"no-trailing-spaces": ["warn"],
"no-unused-vars": "off",
"object-curly-spacing": ["error", "always"],
"quotes": ["error", "single", { "avoidEscape": true }],
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"semi": [2, "always"],
"simple-import-sort/imports": "error",
"sort-keys": ["error", "asc", {"caseSensitive": true, "natural": false, "minKeys": 2}],
"switch-colon-spacing": ["error", {"after": true, "before": false}]
}
}