-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
51 lines (48 loc) · 1.33 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
{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"plugin:@typescript-eslint/recommended",
"airbnb-base",
"airbnb-typescript/base",
"plugin:json/recommended",
"prettier" // needs to be last to override other plugins
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2021,
"sourceType": "module",
"project": "./tsconfig.json",
"extraFileExtensions": [
".json"
]
},
"plugins": [
"@typescript-eslint"
],
"rules": {
"json/*": ["error", { "allowComments": true }],
"max-classes-per-file": "off",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
"varsIgnorePattern": "^_",
"argsIgnorePattern": "^_",
"destructuredArrayIgnorePattern": "^_",
"ignoreRestSiblings": true
}
],
// normally this is a good rule, but since this property has been exposed, let's not potentially break people
"no-underscore-dangle": "off",
"object-curly-spacing": "error",
"no-return-await": "off",
"@typescript-eslint/return-await": "off",
// airbnb terrible defaults
"no-restricted-syntax": ["error", "ForInStatement", "LabeledStatement", "WithStatement"],
"no-continue": "off",
"import/prefer-default-export": "off"
}
}