-
Notifications
You must be signed in to change notification settings - Fork 7
/
.eslintrc.json
48 lines (48 loc) · 1.04 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
{
"parser": "@typescript-eslint/parser",
"extends": [
"airbnb-base",
"plugin:@typescript-eslint/recommended",
"prettier/@typescript-eslint",
"plugin:prettier/recommended"
],
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"rules": {
"import/extensions": ["off"],
"@typescript-eslint/no-unused-vars": [
"error",
{ "argsIgnorePattern": "^_" }
],
"@typescript-eslint/ban-ts-comment": [
"error",
{ "ts-expect-error": "allow-with-description" }
],
"no-unused-expressions": "off",
"@typescript-eslint/no-unused-expressions": "error",
"no-param-reassign": ["error", { "props": false }],
"no-console": [
"error",
{
"allow": ["warn", "error", "info"]
}
]
},
"overrides": [
{
"files": ["scripts/**/*.js"],
"rules": {
"@typescript-eslint/no-var-requires": "off"
}
}
],
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".ts", ".d.ts"]
}
}
}
}