Ai
1 Star 0 Fork 0

WallE/webpack5-multiple

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
.eslintrc.js 2.10 KB
一键复制 编辑 原始数据 按行查看 历史
WallE 提交于 2021-03-18 15:36 +08:00 . add
module.exports = {
root: true,
env: {
es6: true, // 启用 ES6 语法支持以及新的 ES6 全局变量或类型
node: true, // Node.js 全局变量和 Node.js 作用域
browser: true // 浏览器全局变量
},
extends: [
'plugin:vue/strongly-recommended',
'@vue/standard'
],
parserOptions: {
parser: 'babel-eslint'
},
globals: {
WxLogin: true
},
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
camelcase: 0,
'no-tabs': 'off',
eqeqeq: 'off',
'vue/order-in-components': ['error', {
order: [
'el',
'name',
'parent',
'functional', ['delimiters', 'comments'],
['components', 'directives', 'filters'],
'extends',
'mixins',
'inheritAttrs',
'model', ['props', 'propsData'],
'data',
'computed',
'watch',
'LIFECYCLE_HOOKS',
'methods', ['template', 'render'],
'renderError'
]
}],
// "vue/html-indent": "off",
'vue/max-attributes-per-line': ['error', {
singleline: 3,
multiline: {
max: 1,
allowFirstLine: true
}
}],
'vue/attributes-order': ['error', {
order: [
'DEFINITION',
'LIST_RENDERING',
'CONDITIONALS',
'RENDER_MODIFIERS',
'GLOBAL',
'UNIQUE',
'TWO_WAY_BINDING',
'OTHER_DIRECTIVES',
'OTHER_ATTR',
'EVENTS',
'CONTENT'
],
alphabetical: false
}],
'vue/singleline-html-element-content-newline': ['error', {
ignoreWhenNoAttributes: true,
ignoreWhenEmpty: true,
ignores: ['pre', 'textarea', 'span', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'el-button', 'p', 'i']
}],
'vue/html-closing-bracket-newline': ['error', {
singleline: 'never',
multiline: 'never'
}]
},
overrides: [
{
files: [
'**/__tests__/*.{j,t}s?(x)',
'**/tests/unit/**/*.spec.{j,t}s?(x)'
],
env: {
jest: true
}
}
]
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wangchangran/webpack5-multiple.git
git@gitee.com:wangchangran/webpack5-multiple.git
wangchangran
webpack5-multiple
webpack5-multiple
master

搜索帮助