-
Notifications
You must be signed in to change notification settings - Fork 173
/
.eslintrc.json
44 lines (44 loc) · 1.23 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
{
"env": {
"es6": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"prettier"
],
"plugins": ["@typescript-eslint", "prefer-arrow", "unused-imports", "prettier", "import"],
"parser": "@typescript-eslint/parser",
"root": true,
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"rules": {
"import/extensions": ["error", "always"],
"prettier/prettier": "error",
"linebreak-style": ["error", "unix"],
"quotes": [
"error",
"single",
{
"allowTemplateLiterals": true,
"avoidEscape": true
}
],
"semi": ["error", "never"],
// TODO: remove this rule when all the code is fully migrated to TS, atm it just produces a lot of noise
"@typescript-eslint/ban-ts-comment": "off",
// TODO: remove this rule when all the code is fully migrated to TS, atm it just produces a lot of noise
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/no-non-null-assertion": "warn",
"@typescript-eslint/consistent-type-imports": "error"
},
"globals": {
"expect": true,
"it": true
}
}