-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
62 lines (62 loc) · 1.95 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
55
56
57
58
59
60
61
62
{
"env": {
"node": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": [
"prettier",
"import",
"@typescript-eslint",
"unicorn"
],
"parser": "@typescript-eslint/parser",
"rules": {
"@typescript-eslint/no-explicit-any": "error",
"prettier/prettier": ["error", { "endOfLine": "auto" }],
"arrow-parens": ["error", "as-needed"],
"space-in-parens": ["error", "never"],
"no-promise-executor-return": "error",
"object-curly-spacing": ["error", "always"],
"computed-property-spacing": ["error", "never"],
"array-bracket-spacing": ["error", "never"],
"space-unary-ops": "error",
"comma-spacing": ["error", { "before": false, "after": true }],
"comma-style": ["error", "last"],
"space-infix-ops": ["error", { "int32Hint": false }],
"keyword-spacing": ["error", { "before": true }],
"prefer-arrow-callback": "error",
"no-sequences": "error",
"quote-props": ["error", "as-needed"],
"jsx-quotes": ["error", "prefer-double"],
"no-console": "error",
"no-multi-spaces": "error",
"padded-blocks": ["error", "never"],
"arrow-spacing": ["error", { "before": true, "after": true }],
"key-spacing": ["error", { "beforeColon": false }],
"no-multiple-empty-lines": ["error", { "max": 1, "maxEOF": 1 }],
"no-await-in-loop": "error",
"no-spaced-func": "error",
"comma-dangle": ["error", "never"],
"no-trailing-spaces": "error",
"indent": ["error", 2, { "SwitchCase": 1 }],
"linebreak-style": ["error", "unix"],
"quotes": ["error", "single"],
"semi": ["error", "never"],
"unicorn/filename-case": ["error",{"case": "camelCase"}],
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "error"
},
"ignorePatterns": ["node_modules/"]
}