-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.eslintrc.json
61 lines (61 loc) · 1.47 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
60
61
{
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 8,
"sourceType": "module",
"project": "./tsconfig.json"
},
"rules": {
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/consistent-type-assertions": "error",
"@typescript-eslint/no-non-null-assertion" : "off",
"@typescript-eslint/no-floating-promises": "warn",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-empty-function": "off",
"eqeqeq": "error",
"no-console": "off",
"no-unused-labels": "off",
"no-var": "error",
"no-trailing-spaces": "error",
"semi": "error",
"strict": "error",
"quotes": ["error", "single"],
"valid-jsdoc": ["error", {
"requireReturn": false,
"requireReturnType": false,
"requireParamType": false,
"prefer": {
"arg": "param",
"argument": "param",
"returns": "return"
},
"preferType": {
"Boolean": "boolean",
"Number": "number",
"String": "string",
"object": "Object"
}
}]
},
"plugins": [
"html",
"@typescript-eslint"
],
"env": {
"browser": true,
"es6": true
},
"globals": {
"customElements": true,
"chai": true,
"it": true,
"describe": true,
"mocha": true,
"hljs": true
}
}