-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patheslint.config.mjs
More file actions
44 lines (37 loc) · 870 Bytes
/
eslint.config.mjs
File metadata and controls
44 lines (37 loc) · 870 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
38
39
40
41
42
43
44
import prettierConfig from "@vue/eslint-config-prettier"
import pluginVue from "eslint-plugin-vue"
import globals from "globals"
import parser from "vue-eslint-parser"
export default [
...pluginVue.configs['flat/recommended'],
{
languageOptions: {
globals: {
...globals.node,
},
parser: parser,
ecmaVersion: 2022,
sourceType: "module",
},
rules: {
"no-console": "error",
"no-debugger": "error",
"prettier/prettier": ["warn", {
endOfLine: "auto",
}],
"vue/multi-word-component-names": "off",
"vue/valid-v-slot": ["error", {
allowModifiers: true,
}],
},
},
{
files: ["**/__tests__/*.{j,t}s?(x)", "**/tests/unit/**/*.spec.{j,t}s?(x)"],
languageOptions: {
globals: {
...globals.jest,
},
},
},
prettierConfig,
]