-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
35 lines (35 loc) · 779 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
31
32
33
34
35
module.exports = {
env: {
browser: true,
es2021: true,
node: true,
},
extends: [
// 'plugin:vue/essential',
"standard",
"plugin:vue/vue3-recommended",
],
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
// ecmaVersion: 6,
// sourceType: 'module',
// ecmaFeatures: {
// modules: true
// },
// requireConfigFile: false,
// parser: '@babel/eslint-parser'
},
plugins: ["vue", "prettier"],
rules: {
"vue/multi-word-component-names": [
"error",
{
ignores: ["index"], // 需要忽略的组件名
},
],
"vue/html-closing-bracket-spacing":["error"],
"no-debugger": process.env.NODE_ENV === "production" ? "error" : "off",
"no-console": "off",
},
};