-
-
Notifications
You must be signed in to change notification settings - Fork 163
/
Copy path.eslintrc.json
101 lines (101 loc) · 2.93 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
{
"$schema": "https://json.schemastore.org/eslintrc",
"extends": ["airbnb", "prettier"],
"plugins": ["json", "prettier"],
"env": {
"es2020": true
},
"rules": {
"prettier/prettier": [
"error",
{
"singleQuote": true,
"endOfLine": "auto"
}
],
"no-nested-ternary": "off",
"no-param-reassign": "off",
"no-await-in-loop": "off",
"no-continue": "off",
"no-plusplus": "off",
"no-bitwise": "off",
"no-empty": "off",
"consistent-return": "off",
"no-promise-executor-return": "off",
"class-methods-use-this": "off",
"import/no-cycle": "off",
"unused-imports/no-unused-imports": "error",
"unused-imports/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_|[pP]rops$"
}
],
"@typescript-eslint/return-await": "off"
},
"overrides": [
{
"files": ["**/*.ts", "**/*.mts", "**/*.tsx"],
"parser": "@typescript-eslint/parser",
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"airbnb",
"airbnb-typescript",
"prettier"
],
"parserOptions": {
"project": ["./tsconfig.json"]
},
"plugins": ["@typescript-eslint", "unused-imports", "prettier"],
"rules": {
"prettier/prettier": [
"error",
{
"singleQuote": true,
"endOfLine": "auto"
}
],
"import/extensions": "off",
"@typescript-eslint/comma-dangle": "off",
"import/prefer-default-export": "off",
"import/order": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/no-shadow": "off",
"@typescript-eslint/no-unused-expressions": "off",
"@typescript-eslint/consistent-type-imports": "off",
"no-nested-ternary": "off",
"no-param-reassign": "off",
"no-await-in-loop": "off",
"no-continue": "off",
"no-plusplus": "off",
"no-bitwise": "off",
"no-empty": "off",
"consistent-return": "off",
"no-promise-executor-return": "off",
"class-methods-use-this": "off",
"import/no-cycle": "off",
"unused-imports/no-unused-imports": "error",
"unused-imports/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_|[pP]rops$"
}
],
"@typescript-eslint/return-await": "off",
"guard-for-in": "off",
"no-restricted-syntax": "off",
"@typescript-eslint/no-explicit-any": "off",
"max-classes-per-file": "off",
"no-underscore-dangle": "off",
"@typescript-eslint/naming-convention": "off",
"no-alert": "off",
"@typescript-eslint/ban-types": "off",
"import/no-extraneous-dependencies": "off",
"react/jsx-no-bind": "off",
"react/react-in-jsx-scope": "off"
}
}
]
}