-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
37 lines (37 loc) · 1.19 KB
/
.eslintrc
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
{
"plugins": ["prettier"],
"extends": ["airbnb-base", "airbnb-typescript/base", "plugin:prettier/recommended"],
"parserOptions": {
"project": "./tsconfig.json"
},
"rules": {
"prettier/prettier": "error",
"import/prefer-default-export": "off",
// custom overrides
"no-underscore-dangle": "off",
"no-restricted-syntax": ["error", "LabeledStatement", "WithStatement"],
"@typescript-eslint/no-unused-vars": "warn",
"@typescript-eslint/no-use-before-define": "warn",
"no-param-reassign": "warn",
"no-plusplus": "off",
"radix": "warn",
"no-continue": "off",
"max-classes-per-file": "off",
"@typescript-eslint/lines-between-class-members": "off",
"prefer-object-spread": "warn",
"prefer-destructuring": [
"warn",
{
"VariableDeclarator": {
"array": true,
"object": true
},
"AssignmentExpression": {
"array": false,
"object": false
}
}
],
"class-methods-use-this": "warn"
}
}