-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.js
More file actions
37 lines (30 loc) · 865 Bytes
/
Copy patheslint.config.js
File metadata and controls
37 lines (30 loc) · 865 Bytes
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
// eslint.config.js
import js from "@eslint/js";
import pluginVue from "eslint-plugin-vue";
import prettierConfig from "@vue/eslint-config-prettier";
export default [
{
ignores: ["node_modules/", "dist/", "build/", "*.min.js", "coverage/"],
},
js.configs.recommended,
...pluginVue.configs["flat/recommended"],
prettierConfig,
{
files: ["**/*.vue", "**/*.js"],
languageOptions: {
ecmaVersion: "latest",
sourceType: "module",
},
rules: {
"no-console": "warn",
"no-debugger": "warn",
"no-unused-vars": "warn",
"vue/multi-word-component-names": "off",
"vue/component-name-in-template-casing": ["error", "PascalCase"],
"vue/no-mutating-props": "error",
"vue/require-default-prop": "off",
"vue/no-unused-components": "warn",
"linebreak-style": "off",
},
},
];