-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
51 lines (51 loc) · 1.63 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
module.exports = {
parser: "@typescript-eslint/parser",
parserOptions: {
project: "tsconfig.json",
sourceType: "module",
},
plugins: ["@typescript-eslint/eslint-plugin", "prettier"],
extends: ["plugin:vue/vue3-recommended", "plugin:@typescript-eslint/recommended", "prettier"],
ignorePatterns: [".eslintrc.js"],
rules: {
"@typescript-eslint/no-non-null-assertion": "off",
"getter-return": "error",
"no-await-in-loop": "error",
"no-cond-assign": "error",
"no-dupe-class-members": "error",
"no-setter-return": "error",
"no-sparse-arrays": "error",
"consistent-return": "error",
eqeqeq: ["error", "smart"],
"no-else-return": "error",
"no-nested-ternary": "error",
"prefer-const": "error",
radix: "error",
"no-dupe-args": "error",
"no-constant-condition": "error",
"no-dupe-keys": "error",
"no-fallthrough": "error",
"no-unreachable": "error",
"no-implied-eval": "error",
"no-useless-return": "error",
"no-var": "error",
"require-await": "error",
yoda: "error",
"prefer-arrow-callback": "error",
"one-var": ["error", "never"],
"space-infix-ops": "error",
"no-new-wrappers": "error",
"no-mixed-operators": "error",
"brace-style": "error",
curly: "error",
"no-multi-assign": "error",
"max-len": [
"error",
{
ignoreStrings: true,
ignoreTemplateLiterals: true,
code: 121,
},
],
},
};