-
Notifications
You must be signed in to change notification settings - Fork 10
/
.eslintrc
112 lines (99 loc) · 2.49 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
108
109
110
111
112
{
"env": {
"es6": true,
"node": true,
"mocha": true
},
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module"
},
"plugins": ["deprecation", "jsdoc", "prettier"],
"extends": ["eslint:recommended"],
"ignorePatterns": ["src/migrations/sample-migration.ts"],
"rules": {
"arrow-parens": ["error", "always"],
"eqeqeq": ["error", "smart"],
"no-mixed-spaces-and-tabs": ["error", "smart-tabs"],
"no-trailing-spaces": ["error"],
"no-unused-vars": [
"warn",
{ "vars": "all", "varsIgnorePattern": "extend|should", "args": "none" }
],
"quotes": ["error", "single", { "avoidEscape": true }],
"linebreak-style": ["error", "unix"],
"semi": ["error", "always"],
"comma-dangle": ["error", "never"],
"no-useless-escape": ["warn"],
"no-console": ["warn"],
"no-await-in-loop": ["warn"],
"no-new-wrappers": ["warn"],
"no-template-curly-in-string": ["warn"],
"no-var": ["error"],
"prefer-const": ["error"],
"require-await": ["warn"],
"callback-return": ["warn"],
"no-new-require": ["warn"],
"no-path-concat": ["warn"],
"prefer-destructuring": [
"error",
{
"object": false,
"array": true
}
],
"prefer-numeric-literals": ["error"],
"prefer-rest-params": ["warn"],
"prefer-spread": ["warn"],
"prefer-template": ["error"],
"template-curly-spacing": ["error"],
"rest-spread-spacing": ["error"],
"prefer-arrow-callback": ["error"],
"jsdoc/no-undefined-types": 1,
"no-throw-literal": ["error"],
"prefer-promise-reject-errors": ["error"],
"no-else-return": ["error"],
"guard-for-in": ["error"],
// "arrow-body-style": ["warn", "as-needed"],
// "handle-callback-err": ["warn"],
// "no-shadow": ["warn"],
"prettier/prettier": ["error"]
},
"globals": {},
"overrides": [
{
"files": ["**/*.ts"],
"parser": "@typescript-eslint/parser",
"plugins": [
"deprecation",
"jsdoc",
"prettier",
"@typescript-eslint"
],
"extends": [
"eslint:recommended",
"prettier",
"plugin:@typescript-eslint/recommended",
"plugin:import/recommended",
"plugin:import/typescript"
],
"rules": {
"@typescript-eslint/ban-types": ["warn"],
"@typescript-eslint/no-empty-interface": ["warn"],
"import/order": ["error", {
"groups": [
["builtin"],
["external"],
["internal", "parent", "sibling"]
],
"newlines-between": "always",
"alphabetize": {
"order": "asc",
"caseInsensitive": true
}
}],
"import/no-unresolved": ["off"]
}
}
]
}