- 拆分 FileSystem.vue 为模块化组件架构 - 新增 Markdown Mermaid 图表渲染支持 - 新增 180+ 编程语言代码高亮 - 修复编辑/预览模式切换渲染问题 - 优化亮色/暗色模式主题适配 - 新增 TypeScript 类型定义
36 lines
728 B
JavaScript
36 lines
728 B
JavaScript
module.exports = {
|
|
root: true,
|
|
env: {
|
|
browser: true,
|
|
es2021: true,
|
|
node: true
|
|
},
|
|
extends: [
|
|
'eslint:recommended',
|
|
'plugin:vue/vue3-recommended',
|
|
'plugin:@typescript-eslint/recommended'
|
|
],
|
|
parser: 'vue-eslint-parser',
|
|
parserOptions: {
|
|
ecmaVersion: 'latest',
|
|
parser: '@typescript-eslint/parser',
|
|
sourceType: 'module'
|
|
},
|
|
plugins: [
|
|
'vue',
|
|
'@typescript-eslint'
|
|
],
|
|
rules: {
|
|
// 发现未使用的变量
|
|
'no-unused-vars': 'error',
|
|
'@typescript-eslint/no-unused-vars': 'error',
|
|
|
|
// 禁止变量在声明前使用
|
|
'no-use-before-define': 'error',
|
|
|
|
// Vue 规则
|
|
'vue/multi-word-component-names': 'off',
|
|
'vue/no-unused-vars': 'error'
|
|
}
|
|
}
|