-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy path.eslintrc
49 lines (49 loc) · 1.46 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
38
39
40
41
42
43
44
45
46
47
48
49
{
"extends": ["wesbos/typescript"],
"env": {
"jest": true
},
"root": true,
"plugins": ["jest"],
"rules": {
"no-console": "off",
"prettier/prettier": [
"error",
{
"trailingComma": "es5",
"singleQuote": true,
"printWidth": 100,
"tabWidth": 2
}
],
"no-plusplus": "off",
"no-shadow": "off",
"@typescript-eslint/no-shadow": "off",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-unsafe-return": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/no-unsafe-argument": "off",
"@typescript-eslint/naming-convention": [
"error",
{
"selector": "variableLike",
"format": ["camelCase", "PascalCase", "snake_case", "UPPER_CASE"],
"leadingUnderscore": "allow",
"trailingUnderscore": "allow"
}
],
// valid case of class method overloads in typescript
"no-dupe-class-members": "off",
"@typescript-eslint/ban-ts-comment": "off",
"no-use-before-define": "off",
"@typescript-eslint/no-use-before-define": "off",
// webpack packages should put in devDependencies
"import/no-extraneous-dependencies": "off",
"class-methods-use-this": "off",
"@typescript-eslint/restrict-template-expressions": "off",
"import/no-cycle": "off"
}
}