-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
107 lines (107 loc) · 2.98 KB
/
.eslintrc.json
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
{
"root": true,
"parser": "@typescript-eslint/parser",
"extends": [
"airbnb-typescript/base",
"plugin:@typescript-eslint/recommended",
"prettier",
"plugin:prettier/recommended"
],
"plugins": ["import"],
"rules": {
"@typescript-eslint/explicit-function-return-type": [
"error",
{
"allowTypedFunctionExpressions": false,
"allowHigherOrderFunctions": false,
"allowDirectConstAssertionInArrowFunctions": false
}
],
"@typescript-eslint/typedef": [
"error",
{
"arrowParameter": true,
"memberVariableDeclaration": true,
"parameter": true,
"propertyDeclaration": true
}
],
"padding-line-between-statements": [
"error",
{ "blankLine": "always", "prev": "class", "next": "export" },
{ "blankLine": "always", "prev": "*", "next": "return" },
{ "blankLine": "always", "prev": ["const", "let", "var"], "next": "*"},
{ "blankLine": "any", "prev": ["const", "let", "var"], "next": ["const", "let", "var"]},
{ "blankLine": "always", "prev": "directive", "next": "*" },
{ "blankLine": "any", "prev": "directive", "next": "directive" },
{ "blankLine": "always", "prev": ["case", "default"], "next": "*" },
{ "blankLine": "always", "prev": "*", "next": ["if", "switch", "for", "while"] }
],
"class-methods-use-this": "off",
"no-param-reassign": ["error", { "props": false }],
"import/order": [
"error",
{
"newlines-between": "always",
"alphabetize":{
"order": "asc",
"caseInsensitive": true
}
}
],
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": ["**/__tests__/**/*"]
}
],
"import/prefer-default-export": "off",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["error", {
"argsIgnorePattern": "^_"
}],
"@typescript-eslint/explicit-member-accessibility": ["error", {
"accessibility": "no-public"
}],
"@typescript-eslint/member-ordering": ["error", {
"default": [
"signature",
"field",
"constructor",
"method"
]}
],
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/unbound-method": ["error"],
"@typescript-eslint/array-type": ["error", {
"default": "array-simple"
}],
"no-continue": "off",
"no-shadow": "off",
"@typescript-eslint/no-shadow": ["error"],
"no-restricted-syntax": "off",
"no-await-in-loop": "off",
"curly": "error",
"no-unreachable": "error",
"no-console": "error",
"@typescript-eslint/no-unnecessary-condition": ["warn"]
},
"parserOptions": {
"ecmaVersion": 2021,
"sourceType": "module",
"project": "tsconfig.json"
},
"env": {
"node": true,
"browser": false,
"es2022": true,
"jest": true
},
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".ts"]
}
}
}
}