mirror of
https://github.com/Megghy/vtsuru.live.git
synced 2025-12-06 18:36:55 +08:00
重构多个组件以优化代码格式和可读性,删除不必要的文件,更新类型定义,添加数据分析路由
This commit is contained in:
28
eslint.config.mjs
Normal file
28
eslint.config.mjs
Normal file
@@ -0,0 +1,28 @@
|
||||
import oxlint from 'eslint-plugin-oxlint';
|
||||
import vue from 'eslint-plugin-vue';
|
||||
import ts from 'typescript-eslint';
|
||||
|
||||
// `VueVine()` 返回一个 ESLint flat config
|
||||
import VueVine from '@vue-vine/eslint-config'
|
||||
|
||||
export default [
|
||||
{
|
||||
languageOptions: {
|
||||
ecmaVersion: 'latest',
|
||||
},
|
||||
},
|
||||
...vue.configs['flat/recommended'],
|
||||
{
|
||||
// files: ['*.vue', '**/*.vue'],
|
||||
languageOptions: {
|
||||
parserOptions: {
|
||||
parser: ts.parser,
|
||||
},
|
||||
},
|
||||
rules: {
|
||||
"vue/no-mutating-props": "off",
|
||||
},
|
||||
},
|
||||
...VueVine(),
|
||||
...oxlint.configs['flat/recommended'], // oxlint should be the last one
|
||||
]
|
||||
Reference in New Issue
Block a user