feat: 添加 JSPage 页面,支持 JavaScript 文件,更新 ESLint 和 TypeScript 配置
Some checks failed
/ build-and-deploy-to-vercel (push) Successful in 1m33s
/ depcheck (push) Successful in 1m7s
/ playwright (push) Failing after 2m35s

This commit is contained in:
严浩
2025-01-03 17:06:47 +08:00
parent f5c0cb8665
commit 181213526e
7 changed files with 24 additions and 6 deletions

View File

@ -27,7 +27,7 @@ export default [
},
...pluginVue.configs['flat/essential'],
...vueTsEslintConfig({ supportedScriptLangs: { ts: true, tsx: true } }),
...vueTsEslintConfig({ supportedScriptLangs: { ts: true, tsx: true, js: true, jsx: true } }),
{
...pluginVitest.configs.recommended,
@ -41,6 +41,14 @@ export default [
rules: {
'vue/multi-word-component-names': 'off',
'@typescript-eslint/no-explicit-any': 'off',
// 'vue/block-lang': [
// 'error',
// {
// script: {
// allowNoLang: true,
// },
// },
// ],
},
},
];