1 Star 0 Fork 1

wlizm / TinyShop-UniApp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.eslintrc.js 879 Bytes
一键复制 编辑 原始数据 按行查看 历史
luoxiaochuan 提交于 2020-04-24 15:06 . chore: 添加 eslint 配置等优化
module.exports = {
env: {
browser: true,
es6: true,
node: true
},
extends: ['eslint:recommended', 'plugin:vue/essential'],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
uni: true
},
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
parser: 'babel-eslint'
},
plugins: ['vue'],
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-var': 'error',
'no-dupe-args': 2,
'no-dupe-keys': 2,
'no-duplicate-case': 2,
'no-empty': 2,
'no-func-assign': 2,
'valid-jsdoc': 1,
'comma-dangle': [2, 'never'],
eqeqeq: ['error', 'always'],
quotes: ['error', 'single']
},
root: true,
extends: ['eslint:recommended', 'plugin:vue/essential', '@vue/standard']
};
1
https://gitee.com/wlizm/TinyShop-UniApp.git
git@gitee.com:wlizm/TinyShop-UniApp.git
wlizm
TinyShop-UniApp
TinyShop-UniApp
base

搜索帮助