-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.json
46 lines (46 loc) · 1.47 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
{
"env": {
"es2021": true,
"node": true
},
"overrides": [{
"files": ["*.ts", "*.tsx"],
"excludedFiles": "*.test.js"
}],
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module",
"project": "./tsconfig.json"
},
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking"
],
"rules": {
"@typescript-eslint/no-unused-vars": ["warn", { "argsIgnorePattern": "^_" }],
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-unsafe-argument": "off",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-floating-promises": "error",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/restrict-template-expressions": "off",
"require-await": "off",
"dot-notation": "warn",
"no-extra-semi": "warn",
"no-var": "warn",
"no-empty": "warn",
"no-cond-assign": ["error", "always"],
"no-unused-vars": "off",
"prefer-const": "warn",
"semi": ["warn", "never"],
"semi-spacing": ["warn", { "before": false, "after": true }],
"quotes": ["warn", "single"],
"linebreak-style": ["warn", "unix"]
}
}