-
Notifications
You must be signed in to change notification settings - Fork 9
/
.eslintrc.cjs
69 lines (69 loc) · 1.68 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
module.exports = {
root: true,
env: {
commonjs: true,
es6: true,
node: true,
jest: true,
},
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"plugin:jest/recommended",
"plugin:jest/style",
"prettier",
],
settings: {
react: {
version: "detect",
},
},
parser: "@typescript-eslint/parser",
ignorePatterns: ["dist", "node_modules"],
plugins: ["@typescript-eslint", "jest"],
rules: {
"@typescript-eslint/explicit-module-boundary-types": "off",
"lines-between-class-members": ["error", "always", { "exceptAfterSingleLine": true }],
"no-console": "error",
"no-nested-ternary": "error",
"prefer-template": "error",
"prettier/prettier": [
"error",
{
tabWidth: 2,
endOfLine: "auto",
semi: false,
trailingComma: "all",
},
],
"id-length": [
"error",
{ max: 40, properties: "never", exceptions: ["$", "_"] },
],
"@typescript-eslint/triple-slash-reference": [
"error",
{ path: "always", types: "always", lib: "always" },
],
"@typescript-eslint/no-unused-vars": [
"error",
{
argsIgnorePattern: "^_",
caughtErrors: "all",
},
],
"@typescript-eslint/no-explicit-any": ["off"],
"@typescript-eslint/ban-types": ["off"],
"sort-imports": [
"error",
{
ignoreCase: false,
ignoreDeclarationSort: true,
ignoreMemberSort: false,
memberSyntaxSortOrder: ["none", "all", "multiple", "single"],
allowSeparatedGroups: false
},
],
},
}