1 Star 0 Fork 1

李同学打小就聪明 / webpack5

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
.eslintrc.js 716 Bytes
一键复制 编辑 原始数据 按行查看 历史
cong.li 提交于 2021-08-31 09:55 . 'feat:代码规范配置'
module.exports = {
root: true,
env: {
browser: true,
node: true,
es6: true
},
parserOptions: {
parser: 'babel-eslint',
sourceType: 'module'
},
extends: [
'plugin:vue/essential',
'standard'
],
plugins: [
'vue'
],
rules: { // 0-不验证 1-警告 2-错误
'prefer-const': 0, // 不强制使用const去声明变量
'no-var': 2, // 禁止使用var声明变量
eqeqeq: 2, // 强制要求使用 === 和 !==
'no-prototype-builtins': 0, // 允许直接使用Object.prototypes 的内置属性
'array-callback-return': 2, // 强制数组方法的回调函数中有 return 语句
'default-case': 2 // 要求 switch 语句中有 default 分支
}
}
JavaScript
1
https://gitee.com/licong777/webpack5.git
git@gitee.com:licong777/webpack5.git
licong777
webpack5
webpack5
master

搜索帮助