-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintrc.js
57 lines (57 loc) · 1.45 KB
/
.eslintrc.js
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
/* eslint-env node */
module.exports = {
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:prettier/recommended",
],
parser: "@typescript-eslint/parser",
parserOptions: {
project: ["./tsconfig.eslint.json"],
},
plugins: [
"prefer-arrow-functions",
"@typescript-eslint",
"simple-import-sort",
"sort-keys-fix",
"typescript-sort-keys",
],
root: true,
rules: {
"@typescript-eslint/array-type": ["warn", { default: "array" }],
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/no-unused-vars": ["warn", { argsIgnorePattern: "^_" }],
curly: "warn",
"no-return-await": "warn",
"prefer-arrow-functions/prefer-arrow-functions": [
"warn",
{
disallowPrototype: true,
returnStyle: "unchanged",
},
],
"prettier/prettier": ["error", { endOfLine: "lf" }],
"simple-import-sort/exports": "warn",
"simple-import-sort/imports": [
"warn",
{
groups: [
["^.*\\u0000$"],
["^\\u0000"],
["^@?\\w"],
["^"],
["^\\."],
["method[\\dABCDE]"],
],
},
],
"sort-keys-fix/sort-keys-fix": [
"warn",
"asc",
{ caseSensitive: false, natural: true },
],
"typescript-sort-keys/interface": "warn",
"typescript-sort-keys/string-enum": "warn",
},
};