This repository has been archived by the owner on Feb 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
56 lines (55 loc) · 1.51 KB
/
.eslintrc.js
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
module.exports = {
"env": {
"browser": true,
"es6": true,
"node": true,
//"jest": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"rules": {
// ESLint core rules
"arrow-parens": "error",
"eol-last": "error",
"eqeqeq": ["error", "smart"],
"indent": 0, //required by @typescript-eslint/indent
"key-spacing": "error",
"keyword-spacing": "error",
"linebreak-style": ["error", "unix"],
"no-cond-assign": 0,
"no-constant-condition": 0,
"no-multi-spaces": "error",
"no-trailing-spaces": "error",
"no-unused-vars": 0, //required by @typescript-eslint/no-unused-vars
"object-curly-spacing": ["error", "always"],
"prefer-const": "error",
"quotes": ["error", "single"],
"semi": ["error", "always"],
"space-in-parens": ["error", "never"],
"strict": "error",
// @typescript-eslint rules
"@typescript-eslint/indent": ["error", 2],
"@typescript-eslint/no-type-alias": ["error", {
"allowAliases": "in-unions-and-intersections"
}],
"@typescript-eslint/no-use-before-define": ["error", {
"functions": false, "classes": false
}],
},
// "overrides": [
// {
// "files": ["dist/**/*"],
// "rules": {
// "@typescript-eslint/camelcase": 0,
// "@typescript-eslint/indent": 0,
// "@typescript-eslint/no-empty-interface": 0,
// }
// }
// ]
};