-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
.eslintrc.cjs
50 lines (46 loc) · 1.03 KB
/
.eslintrc.cjs
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
/* eslint-disable unicorn/no-empty-file */
/* eslint-disable unicorn/prefer-module */
module.exports = {
root: true,
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint", "prefer-let", "import", "promise", "unicorn"],
extends: [
"prettier",
"plugin:@typescript-eslint/recommended",
"plugin:import/errors",
"plugin:import/typescript",
"plugin:import/warnings",
"plugin:promise/recommended",
"plugin:unicorn/recommended",
],
settings: {
"import/resolver": { typescript: {} },
},
rules: {
"@typescript-eslint/explicit-module-boundary-types": "off",
"no-unused-vars": "off",
"no-var": "off",
"prefer-const": "off",
"prefer-let/prefer-let": 2,
"unicorn/prevent-abbreviations": "off",
"import/order": [
"error",
{
alphabetize: {
order: "asc",
},
groups: [
"type",
"builtin",
"external",
"internal",
"parent",
["sibling", "index"],
],
"newlines-between": "always",
pathGroups: [],
pathGroupsExcludedImportTypes: [],
},
],
},
};