-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.js
30 lines (30 loc) · 891 Bytes
/
.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
module.exports = {
root: true,
env: {
node: true,
},
// https://github.com/vuejs/eslint-config-typescript
extends: [
"plugin:vue/vue3-recommended",
"plugin:vue/vue3-strongly-recommended",
"plugin:json/recommended",
"eslint:recommended",
"@vue/prettier",
"@vue/typescript/recommended",
],
parserOptions: {
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint/eslint-plugin"],
ecmaFeatures: {
legacyDecorators: true,
},
},
rules: {
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
"vue/no-unused-components": "warn",
"no-unused-vars": "warn",
// https://stackoverflow.com/questions/64529114/eslint-vue-plugin-showing-false-positives-for-vue-comment-directive
"vue/comment-directive": 0,
},
};