-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
52 lines (52 loc) · 1.57 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
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "prettier", "node"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:jest/recommended"
],
"parserOptions": {
"project": "tsconfig.json",
"sourceType": "module",
"tsconfigRootDir": "."
},
"env": {
"node": true,
"mocha": true,
"es6": true,
"es2017": true
},
"rules": {
"node/no-unsupported-features/node-builtins": "off",
"node/no-unsupported-features/es-builtins": ["warn", { "version": ">=14.16.0" }],
"linebreak-style": "off",
"arrow-parens": "off",
"object-curly-newline": "off",
"no-mixed-operators": "off",
"arrow-body-style": "off",
"function-paren-newline": "off",
"no-plusplus": "off",
"space-before-function-paren": 0,
"no-console": "warn",
"no-alert": "error",
"prefer-destructuring": "off",
"no-duplicate-imports": ["error", { "includeExports": true }],
"max-classes-per-file": ["error", 1],
"no-multiple-empty-lines": "error",
"comma-dangle": 0,
"max-len": ["error", { "code": 140, "ignoreComments": true, "ignoreUrls": true, "ignoreStrings": true }],
"no-unused-vars": ["warn", { "argsIgnorePattern": "next" }],
"@typescript-eslint/restrict-template-expressions": ["warn", { "allowNumber": true, "allowNullish": true, "allowAny": true }],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/unbound-method": [
"error",
{
"ignoreStatic": true
}
]
}
}