-
Notifications
You must be signed in to change notification settings - Fork 7
/
.eslintrc.json
47 lines (47 loc) · 1.41 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
{
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"parserOptions": {
"ecmaVersion": 2019,
"project": "./tsconfig.json",
"sourceType": "module"
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"@typescript-eslint/indent": [
"error",
4
],
"linebreak-style": [
"error",
"unix"
],
"quotes": "off",
"@typescript-eslint/quotes": [
"error",
"backtick"
],
"@typescript-eslint/semi": [
"error",
"always"
],
"no-console": ["off"],
"prefer-const": ["error"],
"no-var": ["error"],
"prefer-arrow-callback": ["error"],
"eqeqeq": ["error"],
"@typescript-eslint/require-await": ["error"],
"wrap-iife": ["error"],
"@typescript-eslint/prefer-includes": ["error"],
"@typescript-eslint/prefer-readonly": ["error"],
"@typescript-eslint/prefer-string-starts-ends-with": ["error"],
"@typescript-eslint/type-annotation-spacing": ["error"],
"@typescript-eslint/no-misused-promises": ["error"],
"@typescript-eslint/no-non-null-assertion": ["off"],
"@typescript-eslint/no-var-requires": ["off"]
}
}