-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.js
47 lines (47 loc) · 1.31 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
module.exports = {
env: {
node: true,
es2021: true,
},
extends: [
"eslint:recommended",
"plugin:import/recommended",
"plugin:vue/base",
"plugin:vue/vue3-recommended",
"plugin:@typescript-eslint/recommended",
],
parser: "vue-eslint-parser",
parserOptions: {
ecmaVersion: 12,
parser: "@typescript-eslint/parser",
sourceType: "module",
},
plugins: [
"vue",
"@typescript-eslint",
"import",
"prettier"
],
rules: {
"import/order": [
"error",
{ groups: ["builtin", "external", "internal", "parent", "sibling", "index", "object"] },
],
"no-console": process.env.NODE_ENV === "production" ? 2 : 0,
"vue/singleline-html-element-content-newline": 0,
"vue/multiline-html-element-content-newline": 0,
"vue/max-attributes-per-line": ["error", { singleline: 3, multiline: 1 }],
"vue/attribute-hyphenation": ["warn", "always", { ignore: ["custom-prop"] }],
"@typescript-eslint/explicit-module-boundary-types": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/no-empty-function": 0,
"no-unused-vars": 0,
"@typescript-eslint/no-unused-vars": [
"warn",
{ args: "after-used", argsIgnorePattern: "^_", varsIgnorePattern: "^_" },
],
},
settings: {
"import/resolver": { typescript: {} },
}
}