-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy patheslint.config.mjs
More file actions
37 lines (33 loc) · 877 Bytes
/
eslint.config.mjs
File metadata and controls
37 lines (33 loc) · 877 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
import vueEslintParser from "vue-eslint-parser";
export default [
{
files: ["**/*.js", "**/*.vue"],
languageOptions: {
parser: vueEslintParser, // must be the imported parser object
parserOptions: {
ecmaVersion: 2022,
sourceType: "module",
},
globals: {
before: "readonly",
defineProps: "readonly",
defineEmits: "readonly",
defineExpose: "readonly",
withDefaults: "readonly",
},
},
ignores: [
"dist",
"node_modules",
"output.js",
"tests/e2e/reports",
"tests/unit/coverage",
"tests/unit/reports",
],
rules: {
"no-console": process.env.NODE_ENV === "production" ? "error" : "off",
"no-debugger": process.env.NODE_ENV === "production" ? "error" : "off",
"vue/multi-word-component-names": "off",
},
},
];