初始化

This commit is contained in:
陈昱达
2025-06-05 13:57:58 +08:00
commit 979fde4c85
92 changed files with 17729 additions and 0 deletions

27
.eslintrc.js Normal file
View File

@@ -0,0 +1,27 @@
const { endsWith } = require("core-js/core/string")
module.exports = {
root: true,
env: {
node: true
},
extends: ['plugin:vue/essential', '@vue/prettier'],
rules: {
//'off'或'0':关闭 'warn'或'1':警告 "error"或者"2":报错
// 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'error',
'no-console': 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'error',
'prettier/prettier': ['error',
{
singleQuote: true, //单引号
semi: false, //分号
printWidth: 120, //一行的字符数如果超过会进行换行默认为80
trailingComma: 'none', //是否使用尾逗号,有三个可选值"<none|es5|all>"
endOfLine: 'auto' //结尾是 \n \r \n\r auto win 和 mac 不一致
}
]
},
parserOptions: {
parser: 'babel-eslint'
}
}