代码拉取完成,页面将自动刷新
module.exports = {
root: true,
env: {
node: true,
},
extends: [
'plugin:vue/strongly-recommended',
'@vue/standard',
],
parserOptions: {
parser: 'babel-eslint',
},
rules: {
// enUS: all rules docs https://eslint.org/docs/rules/
// zhCN: 所有规则文档 https://eslint.bootcss.com/docs/rules/
// 基础规则 全部 ES 项目通用
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'quote-props': 'off',
// 结尾必须有逗号(主要缓解增加一行对象属性,导致 git 变更记录是两行的情况)
'comma-dangle': ['error', 'always-multiline'],
// 逗号必须在一行的结尾
'comma-style': ['error', 'last'],
// 禁止混合使用不同的操作符 'error','off'
'no-mixed-operators': 'off',
// 禁止未使用过的变量 default: ['error', { vars: 'local' }]
'no-unused-vars': ['off'],
/* vue 项目专用 */
'vue/require-default-prop': 'warn',
'vue/singleline-html-element-content-newline': ['off'],
'vue/max-attributes-per-line': [
2,
{
'singleline': 5,
'multiline': {
'max': 1,
'allowFirstLine': false,
},
},
],
// bug fix
'template-curly-spacing': 'off',
indent: 'off',
},
overrides: [
{
files: [
'**/__tests__/*.{j,t}s?(x)',
'**/tests/unit/**/*.spec.{j,t}s?(x)',
],
env: {
jest: true,
},
},
],
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。