/
.eslintrc.json
54 lines (54 loc) · 1.52 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
48
49
50
51
52
53
54
{
"env": {
"browser": true,
"es2021": true
},
"extends": ["standard", "plugin:prettier/recommended", "plugin:@typescript-eslint/recommended"],
"parserOptions": {
"parser": "@typescript-eslint/parser",
"ecmaVersion": "latest",
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"plugins": ["@typescript-eslint", "prettier", "simple-import-sort"],
"rules": {
"no-console": "off",
"no-debugger": "off",
"no-shadow": "off",
"no-unused-vars": "off",
"no-return-assign": "off",
"no-param-reassign": "off",
"no-await-in-loop": "error",
"no-use-before-define": "off",
"no-underscore-dangle": "off",
"no-plusplus": [
"error",
{
"allowForLoopAfterthoughts": true
}
],
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
"@typescript-eslint/no-shadow": "error",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-use-before-define": "error",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/consistent-type-imports": [
"error",
{
"disallowTypeAnnotations": false
}
],
"default-case": "off",
"spaced-comment": "off",
"require-await": "error",
"consistent-return": "off",
"prettier/prettier": "error",
"object-curly-newline": "off",
"prefer-promise-reject-errors": "off"
}
}