-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.eslintrc.js
45 lines (44 loc) · 1.24 KB
/
.eslintrc.js
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
const rulesDirPlugin = require("eslint-plugin-rulesdir");
rulesDirPlugin.RULES_DIR = "eslint/rules";
module.exports = {
root: true,
ignorePatterns: ["dist", "coverage"],
env: {
node: true,
},
parserOptions: {
ecmaVersion: 2020,
parser: "@typescript-eslint/parser",
},
plugins: ["rulesdir", "vue"],
extends: ["plugin:vue/vue3-essential", "eslint:recommended", "@vue/typescript/recommended", "plugin:@intlify/vue-i18n/recommended"],
rules: {
"vue/no-unused-components": "off",
"rulesdir/no-unused-components": "error",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-var-requires": 0,
"@typescript-eslint/ban-ts-comment": 0,
"@typescript-eslint/no-explicit-any": 0,
"no-undef": 0,
"no-useless-escape": 0,
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
"@intlify/vue-i18n/no-dynamic-keys": 0,
"@intlify/vue-i18n/no-unused-keys": [
"warn",
{
extensions: [".js", ".vue"],
},
],
"@intlify/vue-i18n/no-raw-text": [
"warn",
{
ignorePattern: "^[-#:()&|./?,$-%0123456789👋!@-]+$",
},
],
},
settings: {
"vue-i18n": {
localeDir: "./src/locale/*.{json}",
},
},
};