-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.json
More file actions
58 lines (57 loc) · 1.77 KB
/
Copy path.eslintrc.json
File metadata and controls
58 lines (57 loc) · 1.77 KB
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
{
"extends": ["eslint:recommended", "prettier"],
"ignorePatterns": ["out", "dist", "**/*.d.ts"],
"env": {
"browser": true,
"node": true,
"es6": true
},
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"project": "./tsconfig.eslint.json"
},
"plugins": ["@typescript-eslint", "import", "jsdoc"],
"rules": {
"@typescript-eslint/naming-convention": "error",
"@typescript-eslint/semi": "error",
"@typescript-eslint/require-await": "error",
"@typescript-eslint/no-floating-promises": "error",
"@typescript-eslint/no-misused-promises": "error",
"@typescript-eslint/switch-exhaustiveness-check": "error",
"import/order": [
"error",
{
"alphabetize": {
"order": "asc",
"caseInsensitive": false
},
"newlines-between": "always"
}
],
"import/no-default-export": "error",
"import/no-duplicates": "error",
"curly": "error",
"eqeqeq": "error",
"no-throw-literal": "error",
"jsdoc/check-access": "error",
"jsdoc/check-alignment": "error",
"jsdoc/check-indentation": "error",
"jsdoc/check-param-names": "error",
"jsdoc/check-values": "error",
"jsdoc/check-tag-names": "error",
"jsdoc/check-types": "error",
"jsdoc/require-description": "error"
},
"overrides": [
{
// TS handles undefined variables already. So we don't need to check for them.
"files": ["*.ts"],
"rules": {
"no-undef": "off"
}
}
]
}