-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.cjs
37 lines (36 loc) · 877 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
/* eslint-env node */
require("@rushstack/eslint-patch/modern-module-resolution");
module.exports = {
root: true,
env: {
node: true,
amd: true,
},
rules: {
"max-len": ["warn", { code: 120, ignoreComments: true, ignoreStrings: true }],
"prefer-const": [
"error",
{
destructuring: "all",
ignoreReadBeforeAssign: false,
},
],
"vue/no-unused-vars": [
"warn",
{
ignorePattern: "^_",
},
],
"no-unused-vars": ["warn", { vars: "all", args: "after-used", argsIgnorePattern: "^_" }],
"vue/multi-word-component-names": "off",
},
extends: [
// 这里必须以./开头,否则不会被识别为文件路径
"plugin:vue/vue3-essential",
"eslint:recommended",
],
parserOptions: {
ecmaVersion: "latest",
// parserOptions: { tsconfigRootDir: __dirname }
},
};