-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.json
44 lines (44 loc) · 1.13 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
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "prettier"],
"extends": ["airbnb-typescript/base", "plugin:prettier/recommended"],
"parserOptions": {
"project": "./tsconfig.json"
},
"rules": {
"import/extensions": ["off", "never"],
"import/no-extraneous-dependencies": ["off", "never"],
"import/no-unresolved": 0,
"import/prefer-default-export": "off",
"comma-dangle": 0,
"no-unused-vars": ["error", { "vars": "all" }],
"@typescript-eslint/no-unused-vars": [
"error",
{
"vars": "all",
"args": "none",
"ignoreRestSiblings": false
}
],
"@typescript-eslint/naming-convention": [
"error",
{
"selector": "default",
"format": ["camelCase", "UPPER_CASE", "snake_case", "PascalCase"],
"leadingUnderscore": "allow"
}
],
"max-len": [
"error",
{
"ignoreComments": true,
"code": 120,
"tabWidth": 2,
"ignoreStrings": true
}
],
"prettier/prettier": ["error", { "endOfLine": "auto" }],
"operator-linebreak": "off"
}
}