-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.json
123 lines (123 loc) · 4.22 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
{
"env": {
"browser": true,
"es6": true,
"node": true
},
"extends": [
"airbnb-typescript/base",
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018,
"sourceType": "module",
"project": "tsconfig.json"
},
"plugins": [
"@typescript-eslint",
"import"
],
"settings": {
"import/resolver": {
"node": {
"paths": ["src"]
}
}
},
"rules": {
"array-bracket-spacing": ["error"],
"arrow-parens": ["error", "as-needed"],
"block-spacing": ["error"],
"comma-spacing": ["error"],
"dot-location": ["error", "property"],
"eol-last": ["error"],
"eqeqeq": ["error"],
"key-spacing": ["error"],
"indent": "off",
"linebreak-style": ["error", "unix"],
"max-len": [
"warn",
{
"code": 120,
"ignoreTemplateLiterals": true,
"ignoreStrings": true,
"ignoreComments": true
}
],
"no-else-return": ["warn"],
"no-eq-null": ["error"],
"no-extra-bind": ["error"],
"no-multi-spaces": ["error"],
"no-multi-str": ["error"],
"no-multiple-empty-lines": ["error", { "max": 1 }],
"no-param-reassign": ["error"],
"no-return-assign": ["error"],
"no-trailing-spaces": ["error"],
"no-undef-init": ["error"],
"no-unsafe-optional-chaining": ["error"],
"no-unused-vars": "off",
"no-useless-return": ["error"],
"object-curly-newline": ["error", { "multiline": true }],
"object-curly-spacing": ["error", "always"],
"operator-linebreak": ["error", "before"],
"space-infix-ops": ["error", { "int32Hint": false }],
"yoda": ["error"],
"@typescript-eslint/no-non-null-assertion": ["off"],
"@typescript-eslint/dot-notation": ["error"],
"@typescript-eslint/comma-spacing": ["error"],
"@typescript-eslint/ban-ts-comment": ["off"],
"@typescript-eslint/explicit-module-boundary-types": ["off"],
"@typescript-eslint/no-namespace": ["off"],
"@typescript-eslint/no-floating-promises": ["error", { "ignoreIIFE": true }],
"@typescript-eslint/quotes": ["error", "double"],
"@typescript-eslint/semi": ["error", "always"],
"@typescript-eslint/no-use-before-define": ["error", { "typedefs": false }],
"@typescript-eslint/require-await": ["error"],
"@typescript-eslint/type-annotation-spacing": ["error", {"after": true}],
"@typescript-eslint/prefer-includes": ["error"],
"@typescript-eslint/no-misused-new": ["error"],
"@typescript-eslint/no-for-in-array": ["error"],
"@typescript-eslint/no-explicit-any": ["error", {"ignoreRestArgs": true}],
"@typescript-eslint/no-redeclare": ["off"],
"@typescript-eslint/prefer-nullish-coalescing": ["error"],
"@typescript-eslint/no-shadow": ["error"],
"@typescript-eslint/array-type": ["error", {"default": "array"}],
"@typescript-eslint/member-delimiter-style": ["error", {
"multiline": { "delimiter": "none" },
"singleline": { "delimiter": "semi", "requireLast": false }
}],
"@typescript-eslint/indent": ["error", 4, {
"ignoredNodes": [
"JSXAttribute"
],
"SwitchCase": 1
}],
"import/no-default-export": ["error"],
"import/order": ["error"],
"@typescript-eslint/no-unused-vars": [
"warn",
{
"vars": "all",
"args": "none"
}
],
"no-plusplus": [
"error",
{
"allowForLoopAfterthoughts": true
}
],
"import/no-extraneous-dependencies": "error",
"import/prefer-default-export": "off",
"space-in-parens": ["error"]
}
}