-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.json
38 lines (38 loc) · 1019 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,
"browser": true
},
"extends": [
"eslint:recommended",
"plugin:prettier/recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": ["@typescript-eslint", "prettier"],
"rules": {
"@typescript-eslint/no-extra-semi": ["off"],
"eqeqeq": "error",
"func-style": ["error", "declaration"],
"linebreak-style": ["error", "windows"],
"lines-between-class-members": "error",
"no-compare-neg-zero": "error",
"no-dupe-args": "error",
"no-duplicate-case": "error",
"no-duplicate-imports": "error",
"no-else-return": "error",
"no-eval": "error",
"no-ex-assign": "error",
"prefer-destructuring": "warn",
"prettier/prettier": "error",
"quotes": ["error", "single"],
"require-await": "error",
"semi": ["error", "never"],
"sort-imports": "error",
"object-shorthand": "error"
}
}