-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.json
35 lines (35 loc) · 942 Bytes
/
.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
{
"root": true,
"plugins": ["@typescript-eslint", "import"],
"extends": ["eslint:recommended", "airbnb-base"],
"parser": "@typescript-eslint/parser",
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
}
},
"rules": {
"import/prefer-default-export": "off",
"@typescript-eslint/no-unused-vars": "error",
"no-extra-semi": 0,
"semi": 2,
"indent": ["error", 2],
"quotes": [
"error",
"single",
{
"allowTemplateLiterals": false,
"avoidEscape": true
}
],
"camelcase": 0, //'warn',
"no-console": 1,
"no-debugger": 1,
"no-plusplus": 0,
"no-useless-constructor": "off", // TS has some issues with this, so we use their check
"@typescript-eslint/no-useless-constructor": "error",
"import/extensions": 0,
"import/no-unresolved": 0 // TS decides this on its own
},
"ignorePatterns": ["dist/*"]
}