Ai
1 Star 0 Fork 118

星想事成/vue-cli 高级模板
关闭

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
.eslintrc.js 721 Bytes
一键复制 编辑 原始数据 按行查看 历史
sam-meng 提交于 2020-07-12 15:33 +08:00 . 同步 @vue/cli@4.4.6
module.exports = {
root: true,
env: { node: true },
extends: [
'plugin:vue/strongly-recommended', // 使用严谨模式
'eslint:recommended',
'@vue/prettier', // 结合 .prettierrc.js
],
rules: {
'no-console': 'warn',
'no-debugger': 'warn',
'no-unused-vars': [
'warn',
{ ignoreRestSiblings: true /* 解构剩余变量时不检查 */ },
],
'no-var': 'warn',
'prefer-const': ['warn', { destructuring: 'all' }],
'no-empty': 'warn',
},
parserOptions: {
parser: 'babel-eslint',
},
overrides: [
{
files: [
'**/__tests__/*.{j,t}s?(x)',
'**/tests/unit/**/*.spec.{j,t}s?(x)',
],
env: { jest: true },
},
],
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/freestarAI/vue-cli-template.git
git@gitee.com:freestarAI/vue-cli-template.git
freestarAI
vue-cli-template
vue-cli 高级模板
master

搜索帮助