-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.json
38 lines (38 loc) · 938 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
36
37
38
{
"env": {
"node": true
},
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"extends": [
"airbnb-base",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"rules": {
"no-underscore-dangle": "off",
"no-bitwise": "warn",
"import/extensions": [
"error",
"ignorePackages",
{
"js": "always",
"mjs": "never",
"jsx": "never"
}
],
"no-shadow": "warn",
"no-constant-condition": ["error", { "checkLoops": false }],
"no-console": "off",
"import/no-named-as-default-member": "off",
"@typescript-eslint/ban-ts-comment": "warn",
"@typescript-eslint/ban-types": "warn",
"@typescript-eslint/no-namespace": ["error", { "allowDeclarations": true }],
"@typescript-eslint/no-empty-function": "warn"
}
}