-
Notifications
You must be signed in to change notification settings - Fork 20
/
.eslintrc.json
43 lines (43 loc) · 1.23 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
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"plugins": ["@typescript-eslint", "no-only-tests"],
"extends": [
"prettier",
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"@typescript-eslint/naming-convention": "warn",
"curly": "warn",
"eqeqeq": "warn",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-explicit-any": "off",
"no-constant-condition": ["error", {"checkLoops": false}],
"no-empty": "off",
"@typescript-eslint/no-empty-function": "off",
"semi": "off",
"no-console": "error",
"no-only-tests/no-only-tests": "error"
},
"overrides": [
{
"files": ["**/*.test.ts", "**/test/**"],
"rules": {
"no-console": "off"
}
},
{
"files": "**/apis/*/*.ts",
"rules": {
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-empty-interface": "off"
}
}
],
"ignorePatterns": ["out", "dist", "**/*.d.ts"]
}