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
| const { defineConfig } = require("eslint-define-config");
| module.exports = defineConfig({
| root: true,
| env: {
| browser: true,
| node: true,
| es6: true,
| },
| parser: "vue-eslint-parser",
| parserOptions: {
| ecmaVersion: "latest",
| sourceType: "module",
| },
| extends: ["plugin:vue/recommended", "plugin:prettier/recommended"],
| plugins: ["vue"],
| rules: {
| "vue/script-setup-uses-vars": "error",
| "vue/custom-event-name-casing": "off",
| "no-use-before-define": "off",
| "no-unused-vars": [
| "error",
| {
| argsIgnorePattern: "^_",
| varsIgnorePattern: "^_",
| },
| ],
| "space-before-function-paren": "off",
| "vue/attributes-order": "off",
| "vue/one-component-per-file": "off",
| "vue/html-closing-bracket-newline": "off",
| "vue/max-attributes-per-line": "off",
| "vue/multiline-html-element-content-newline": "off",
| "vue/singleline-html-element-content-newline": "off",
| "vue/attribute-hyphenation": "off",
| "vue/require-default-prop": "off",
| "vue/html-self-closing": [
| "error",
| {
| html: {
| void: "always",
| normal: "never",
| component: "always",
| },
| svg: "always",
| math: "always",
| },
| ],
| "vue/multi-word-component-names": "off",
| "vue/component-definition-name-casing": "off",
| },
| ignorePatterns: ["*.sh", "node_modules", "*.md", "*.woff", "*.ttf", ".vscode", ".idea", "dist", "/public", "/docs", ".husky", ".local", "/bin", "Dockerfile"],
| });
|
|