-
Notifications
You must be signed in to change notification settings - Fork 9
/
.eslintrc.cjs
46 lines (44 loc) · 1.09 KB
/
.eslintrc.cjs
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
/* eslint-env node */
require("@rushstack/eslint-patch/modern-module-resolution");
module.exports = {
root: true,
extends: [
"plugin:vue/recommended",
"eslint:recommended",
'@vue/eslint-config-typescript',
'@vue/eslint-config-prettier/skip-formatting'
],
parserOptions: {
ecmaVersion: "latest",
},
rules: {
/*
* ESLint
*/
// Error prevention
"array-callback-return": "warn",
"consistent-return": "warn",
"no-constructor-return": "warn",
"no-implicit-coercion": "warn",
"no-promise-executor-return": "error",
"no-template-curly-in-string": "warn",
"no-undef-init": "error",
"no-unreachable-loop": "warn",
"require-atomic-updates": "warn",
radix: "warn",
/*
* Typescript
*/
"@typescript-eslint/consistent-type-imports": "warn",
"@typescript-eslint/explicit-function-return-type": [
"warn",
{
allowExpressions: true,
},
],
"@typescript-eslint/member-delimiter-style": "warn",
"@typescript-eslint/method-signature-style": "warn",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/prefer-function-type": "warn",
},
};