-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
64 lines (64 loc) · 1.39 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/* http://www.javashuo.com/article/p-hykaiaac-k.html */
module.exports = {
root: true,
globals: {
__APP_VERSION: true,
__URL_API_VERSION: true,
__URL_BASE: true,
__URL_API_BASE: true,
__URL_WS_BASE: true,
__URL_STATIC_DIR: true,
TEMPLATE_PLACEHOLDER: true,
APP_ROOT_URL: true,
ROOT_URL: true,
APP_ENTRY_NAME: true,
URL_PREFIX: true,
defineProps: true,
defineEmits: true
},
env: {
browser: true,
node: true
},
extends: [
/* https://eslint.vuejs.org/user-guide/#bundle-configurations */
"plugin:vue/vue3-recommended",
/* https://vueschool.io/articles/vuejs-tutorials/eslint-and-prettier-with-vite-and-vue-js-3/ */
"prettier"
],
parserOptions: {
ecmaVersion: 2020,
sourceType: "module",
ecmaFeatures: {
jsx: true,
modules: true
}
},
rules: {
/* "linebreak-style": [ "error", "unix" ], */
// "vue/no-multiple-template-root": "off",
// "vue/no-mutating-props": "off",
"vue/require-default-prop": "off",
quotes: [
"error",
"double",
{
allowTemplateLiterals: true
}
],
"comma-dangle": [
"error",
{
objects: "only-multiline",
arrays: "never",
imports: "never",
exports: "never",
functions: "never"
}
],
semi: ["error", "always"],
"no-undef": "error",
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off"
}
};