-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc
More file actions
39 lines (38 loc) · 1.06 KB
/
.eslintrc
File metadata and controls
39 lines (38 loc) · 1.06 KB
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
{
"root": true,
"env": {
"node": true
},
"parserOptions": {
"ecmaVersion": 10,
"parser": "@typescript-eslint/parser"
},
"plugins": [
"@typescript-eslint/eslint-plugin"
],
"extends": [
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
// TypeScript eslint options
"@typescript-eslint/explicit-function-return-type": ["error", {
"allowExpressions": true
}],
"@typescript-eslint/interface-name-prefix": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-non-null-assertion": "off",
// General eslint options
"eol-last": ["error", "always"],
"indent": ["error", 4, {
"SwitchCase": 1
}],
"no-undef": "off",
"quotes": ["error", "double", {
"avoidEscape": true
}],
"semi": ["error", "always"],
"semi-spacing": "error",
"semi-style": ["error", "last"]
}
}