-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
67 lines (67 loc) · 1.71 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
{
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:import/recommended",
"plugin:import/typescript",
"plugin:jest/style",
"plugin:node/recommended",
"plugin:promise/recommended",
"prettier"
],
"ignorePatterns": [
"**/*.d.ts",
"**/*.test.js",
"**/*.test.jsx",
"**/*.test.ts",
"**/*.test.tsx"
],
"overrides": [],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"tsconfigRootDir": ".",
"project": ["./tsconfig.json"]
},
"plugins": ["@typescript-eslint"],
"root": true,
"rules": {
"@typescript-eslint/no-inferrable-types": ["off"],
"@typescript-eslint/no-unnecessary-type-assertions": ["off"],
"@typescript-eslint/no-unsafe-assignment": ["error"],
"@typescript-eslint/no-unsafe-return": ["error"],
"@typescript-eslint/no-unused-vars": [
"error",
{
"args": "all",
"argsIgnorePattern": "^_",
"vars": "all",
"varsIgnorePattern": "^_"
}
],
"@typescript-eslint/restrict-template-expressions": ["error"],
"@typescript-eslint/switch-exhaustiveness-check": ["error"],
"import/export": ["warn"],
"import/namespace": ["warn"],
"jest/no-disabled-tests": ["warn"],
"no-global-assign": ["warn"],
"node/no-missing-import": ["off"],
"node/no-unpublished-import": ["warn"],
"node/no-extraneous-import": ["off"],
"node/no-unsupported-features/es-syntax": ["off"]
},
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
},
"import/resolver": {
"typescript": {
"alwaysTryTypes": true,
"project": ["./tsconfig.json"]
}
},
"node": {
"tryExtensions": [".ts", ".tsx", ".js", ".jsx", ".json", ".node"]
}
}
}