This repository has been archived by the owner on Jan 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
54 lines (54 loc) · 1.79 KB
/
index.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
module.exports = {
"parser": "@typescript-eslint/parser",
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"react-app",
"prettier",
"plugin:prettier/recommended",
],
"plugins": [
"@typescript-eslint",
"prettier",
],
"rules": {
"@typescript-eslint/no-duplicate-imports": "error",
"@typescript-eslint/no-empty-function": "warn",
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/no-non-null-assertion": "error",
"@typescript-eslint/no-unnecessary-type-assertion": "warn",
"@typescript-eslint/prefer-for-of": "warn",
"@typescript-eslint/prefer-nullish-coalescing": "warn",
"@typescript-eslint/prefer-optional-chain": "warn",
"@typescript-eslint/prefer-reduce-type-parameter": "warn",
"@typescript-eslint/quotes": ["warn", "single", { allowTemplateLiterals: true, avoidEscape: true }],
"array-callback-return": "error",
"comma-dangle": ["warn", "always-multiline"],
"comma-spacing": "warn",
"default-case": "warn",
"eol-last": "warn",
"eqeqeq": "error",
"indent": ["warn", 2, { "SwitchCase": 1 }],
"jsx-quotes": ["error", "prefer-double"],
"no-alert": "warn",
"no-duplicate-imports": "error",
"no-else-return": "warn",
"no-eval": "error",
"no-lonely-if": "error",
"no-multiple-empty-lines": "warn",
"no-nested-ternary": "error",
"no-self-compare": "error",
"no-trailing-spaces": "error",
"no-undef-init": "error",
"no-unneeded-ternary": "error",
"no-useless-constructor": "warn",
"no-useless-return": "warn",
"no-var": "error",
"prefer-const": "error",
"prefer-numeric-literals": "error",
"prettier/prettier": "warn",
"quotes": "off",
"require-await": "error",
"semi": ["error", "always"],
},
};