1 Star 0 Fork 68

侯宇杰/VuePress

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.eslintrc.js 865 Bytes
一键复制 编辑 原始数据 按行查看 历史
meteorlxy 提交于 2019-12-03 19:11 . build: use vue recommend eslint config
module.exports = {
root: true,
extends: [
'plugin:vue-libs/recommended',
'plugin:vue/recommended'
],
rules: {
indent: ['error', 2, { MemberExpression: 'off' }],
'no-undef': ['error'],
'operator-linebreak': ['error', 'before'],
'vue/match-component-file-name': [
'error',
{
extensions: ['js', 'vue'],
shouldMatchCase: false
}
]
},
overrides: [
{
files: ['*.ts'],
extends: [
'plugin:@typescript-eslint/recommended'
],
parser: 'vue-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser'
},
rules: {
'no-useless-constructor': 'off'
}
},
{
files: [
'**/__tests__/**/*.spec.js',
'**/__tests__/**/*.spec.ts'
],
extends: ['plugin:jest/recommended']
}
]
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/Continue-views/VuePress.git
git@gitee.com:Continue-views/VuePress.git
Continue-views
VuePress
VuePress
master

搜索帮助