-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
47 lines (47 loc) · 1.53 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,
browser: true,
es2022: true,
},
extends: [
"eslint:recommended",
"plugin:vue/vue3-essential",
"plugin:vue/vue3-recommended",
"plugin:vue/vue3-strongly-recommended",
"plugin:@typescript-eslint/recommended",
],
overrides: [],
parser: "vue-eslint-parser",
parserOptions: {
parser: "@typescript-eslint/parser",
ecmaVersion: "latest",
sourceType: "module",
},
plugins: ["vue", "@typescript-eslint"],
rules: {
"no-extra-parens": "error",
"vue/html-indent": "error",
"vue/require-typed-ref": "error",
"vue/require-macro-variable-name": "error",
"vue/prefer-true-attribute-shorthand": "error",
"vue/no-useless-mustaches": "error",
"vue/no-unused-refs": "error",
"vue/no-unused-properties": "error",
"vue/no-required-prop-with-default": "error",
"vue/match-component-import-name": "error",
"vue/block-order": ["error", {order: ["template", "script", "style"]}],
"vue/define-macros-order": "error",
"vue/define-emits-declaration": "error",
"vue/define-props-declaration": "error",
"vue/no-use-v-else-with-v-for": "error",
"vue/padding-line-between-blocks": "error",
"vue/require-explicit-emits": "error",
"vue/max-attributes-per-line": "error",
"vue/first-attribute-linebreak": "error",
"vue/html-closing-bracket-newline": "error",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/consistent-type-imports": "error",
}
}