-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintrc
107 lines (107 loc) · 3.03 KB
/
.eslintrc
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
{
"env": {
"es2017": true,
"es2020": true,
"es6": true,
"node": true
},
"extends": ["eslint:recommended", "plugin:import/recommended", "plugin:regexp/recommended", "prettier"],
"overrides": [
{
"env": {
"jest/globals": true
},
"extends": ["plugin:jest/recommended", "plugin:jest/style"],
"files": ["test/*.test.ts"],
"plugins": ["jest"]
},
{
"extends": [
"plugin:@typescript-eslint/recommended-type-checked",
"plugin:@typescript-eslint/stylistic-type-checked",
"plugin:import/typescript"
],
"files": ["**/*.ts"]
}
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"project": "./tsconfig.eslint.json",
"sourceType": "module"
},
"plugins": ["@typescript-eslint", "regexp", "eslint-plugin-tsdoc"],
"rules": {
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_"
}
],
"curly": "error",
"dot-notation": "error",
"eqeqeq": "error",
"import/order": [
"error",
{
"alphabetize": {
"caseInsensitive": true,
"order": "asc"
},
"groups": ["builtin", "external", "internal", "parent", "sibling", "index"],
"newlines-between": "always"
}
],
"no-else-return": "error",
"no-empty": [
"error",
{
"allowEmptyCatch": true
}
],
"no-extra-bind": "error",
"no-labels": "error",
"no-lone-blocks": "error",
"no-loop-func": "error",
"no-new-func": "error",
"no-new-object": "error",
"no-new-wrappers": "error",
"no-param-reassign": "error",
"no-redeclare": "error",
"no-template-curly-in-string": "error",
"no-unreachable": "error",
"no-useless-constructor": "error",
"prefer-arrow-callback": "error",
"prefer-exponentiation-operator": "error",
"prefer-template": "error",
"quotes": [
"error",
"double",
{
"avoidEscape": true
}
],
"regexp/no-super-linear-backtracking": "warn",
"require-atomic-updates": "error",
"require-await": "error",
"sort-imports": [
"error",
{
"ignoreCase": true,
"ignoreDeclarationSort": true
}
],
"tsdoc/syntax": "warn"
},
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
},
"import/resolver": {
"typescript": {
"alwaysTryTypes": true
}
}
}
}