-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.json
59 lines (59 loc) · 1.69 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{
"env": {
"browser": true,
"node": true,
"es6": true
},
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "headers", "@html-eslint"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"overrides": [
{
"files": ["*.html"],
"parser": "@html-eslint/parser",
"extends": ["plugin:@html-eslint/recommended"],
"rules": {
"headers/header-format": "off"
}
}
],
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 11,
"allowImportExportEverywhere": true
},
"rules": {
"no-warning-comments": ["error", { "terms": ["todo"], "location": "start" }],
"no-console": 0,
"curly": ["error"],
"no-empty": [2, { "allowEmptyCatch": true }],
"no-unused-vars": "off", // The base rule has been disabled due to the possibility of reporting false positives.
"@typescript-eslint/no-unused-vars": ["error", { "args": "none" }],
"no-useless-escape": 0,
"eqeqeq": ["error", "smart"],
"@typescript-eslint/ban-types": [
"error",
{
"types": {
"Function": false
},
"extendDefaults": true
}
],
"headers/header-format": [
"error",
{
"source": "file",
"path": ".eslint-header"
}
],
"@html-eslint/indent": ["error", 4]
},
"globals": {
"Symbol": "readonly"
}
}