1 Star 0 Fork 2

peter_99 / MRControlSystem

forked from 刘6六! / MRControlSystem 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.eslintrc.js 1.12 KB
一键复制 编辑 原始数据 按行查看 历史
liuyinliang 提交于 2020-12-03 15:04 . 完整
module.exports = {
root: true,
parser: 'babel-eslint',
parserOptions: {
"ecmaVersion": 6, //指定ECMAScript支持的版本,6为ES6
"sourceType": "module", //指定来源的类型,有两种”script”或”module”
"ecmaFeatures": {
"jsx": false//检测JSX
},
},
env: {
browser: true,
node: true,
commonjs: true,
es6: true
},
extends: 'standard',
// 此项是用来提供插件的,插件名称省略了eslint-plugin-,下面这个配置是用来规范html的
plugins: [
'html'
],
// add your custom rules here
//it is base on https://github.com/vuejs/eslint-config-vue
rules: {
// 缩进
"indent": [
"error",
4
],
// 使用es6语法定义变量
"no-var": 2,
// 定义过的变量必须使用
'no-unused-vars': [
'warn',
{
vars: 'all',
args: 'none',
caughtErrors: 'none',
ignoreRestSiblings: true
}
],
},
globals: {}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/peter_99/mrcontrol-system.git
git@gitee.com:peter_99/mrcontrol-system.git
peter_99
mrcontrol-system
MRControlSystem
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891