-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
47 lines (47 loc) · 1005 Bytes
/
.eslintrc.cjs
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 = {
root: true,
env: {
browser: true,
node: true,
},
parser: "vue-eslint-parser",
parserOptions: {
parser: "@typescript-eslint/parser",
},
extends: [
"eslint:recommended",
"@nuxtjs/eslint-config-typescript",
"plugin:vue/recommended",
"plugin:prettier/recommended",
"plugin:tailwindcss/recommended",
],
plugins: ["vue"],
rules: {
semi: [2, "always"],
},
overrides: [
{
files: ["./**/*.*"],
rules: {
"prettier/prettier": [
"error",
{
endOfLine: "auto",
},
],
},
},
{
files: ["pages/**/*.vue", "components/**/*.vue", "./app.vue"],
rules: {
"vue/no-multiple-template-root": "off",
},
},
{
files: ["pages/**/*.vue", "layouts/**/*.vue", "./error.vue"], // Apply to Vue files in the "pages" directory
rules: {
"vue/multi-word-component-names": "off", // Disable the rule
},
},
],
};