49 Star 266 Fork 69

lin-cms / lin-cms-vue

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.eslintrc.js 1.80 KB
一键复制 编辑 原始数据 按行查看 历史
一飞同学 提交于 2022-03-20 22:20 . Upgrade 3.2 (#542)
module.exports = {
root: true,
env: {
browser: true,
es6: true,
node: true,
jest: true,
},
plugins: ['vue', 'vuejs-accessibility'],
extends: ['plugin:vue/vue3-essential', '@vue/airbnb'],
rules: {
'vue/script-setup-uses-vars': 'off',
'vue/custom-event-name-casing': 'off',
'vuejs-accessibility/rule-name': 'off',
'vue/no-deprecated-slot-attribute': 'off',
'vue/experimental-script-setup-vars': 'off',
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-shadow': 0,
'no-plusplus': 0, // 禁止使用++,--
'guard-for-in': 0,
'no-extra-semi': 0, // 和prettier冲突
'import/extensions': 0, // import不需要写文件扩展名
semi: ['error', 'never'], // 无分号
'import/no-unresolved': 0,
'no-restricted-syntax': 0,
'no-underscore-dangle': 0, // 无下划线
'no-restricted-syntax': 0,
'consistent-return': 'off',
'max-len': ['error', { code: 200 }],
'no-use-before-define': 'off',
'no-prototype-builtins': 'off',
'class-methods-use-this': 'off',
'template-curly-spacing': 'off',
'arrow-parens': ['error', 'as-needed'],
'vue/multi-word-component-names': 'off',
'comma-dangle': ['error', 'only-multiline'],
'no-param-reassign': ['error', { props: false }],
'vuejs-accessibility/click-events-have-key-events': 'off',
'import/no-extraneous-dependencies': ['error', { devDependencies: ['script/**/*.js'] }],
indent: [
'warn',
2,
{
ignoredNodes: ['TemplateLiteral'],
SwitchCase: 1,
},
],
'object-curly-newline': [
'error',
{
ImportDeclaration: 'never',
},
],
},
parserOptions: {
parser: '@babel/eslint-parser',
},
}
JavaScript
1
https://gitee.com/lin-cms/lin-cms-vue.git
git@gitee.com:lin-cms/lin-cms-vue.git
lin-cms
lin-cms-vue
lin-cms-vue
vue-next

搜索帮助