13 Star 189 Fork 37

vuepress-reco/vuepress-theme-reco

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.eslintrc.js 1.06 KB
一键复制 编辑 原始数据 按行查看 历史
recoluan 提交于 2022-06-25 17:44 +08:00 . build: add release bash
module.exports = {
root: true,
extends: 'vuepress',
globals: {
__VUEPRESS_VERSION__: 'readonly',
__VUEPRESS_DEV__: 'readonly',
__VUEPRESS_SSR__: 'readonly',
__VUE_HMR_RUNTIME__: 'readonly',
},
overrides: [
{
files: ['*.ts', '*.vue', '*.tsx'],
extends: 'vuepress-typescript',
parserOptions: {
project: ['tsconfig.eslint.json'],
},
rules: {
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-var-requires': 'off',
'vue/match-component-file-name': [
'error',
{
extensions: ['tsx', 'vue'],
shouldMatchCase: false,
},
],
},
},
{
files: ['**/__tests__/**/*.ts'],
env: {
jest: true,
},
rules: {
'@typescript-eslint/explicit-function-return-type': 'off',
},
},
],
rules: {
'no-undef': [1, { 'defineEmits': true, 'defineProps': true }],
},
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/vuepress-reco/vuepress-theme-reco.git
git@gitee.com:vuepress-reco/vuepress-theme-reco.git
vuepress-reco
vuepress-theme-reco
vuepress-theme-reco
main

搜索帮助