1 Star 0 Fork 0

yoyo0403/magnetW

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.eslintrc.js 1.02 KB
一键复制 编辑 原始数据 按行查看 历史
xiandanin 提交于 2019-12-25 21:41 . 增加几项新的设置
// https://eslint.org/docs/user-guide/configuring
module.exports = {
root: true,
parserOptions: {
'parser': 'babel-eslint',
'ecmaVersion': 2017,
'sourceType': 'module'
},
env: {
node: true,
browser: true,
},
extends: [
// https://github.com/vuejs/eslint-plugin-vue#priority-a-essential-error-prevention
// consider switching to `plugin:vue/strongly-recommended` or `plugin:vue/recommended` for stricter rules.
'plugin:vue/essential',
// https://github.com/standard/standard/blob/master/docs/RULES-en.md
'standard'
],
globals: {
__static: true
},
plugins: [
'vue'
],
// add your custom rules here
rules: {
// 关闭缩进检查
'indent': 0,
'vue/require-v-for-key': 'off',
'no-unused-vars': 'off',
'vue/no-unused-components': 'off',
'vue/valid-v-for': 'warn',
// allow async-await
'generator-star-spacing': 'off',
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/yoyo0403/magnetW.git
git@gitee.com:yoyo0403/magnetW.git
yoyo0403
magnetW
magnetW
master

搜索帮助