feat: 添加 JSPage 页面,支持 JavaScript 文件,更新 ESLint 和 TypeScript 配置
This commit is contained in:
@ -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,
|
||||
// },
|
||||
// },
|
||||
// ],
|
||||
},
|
||||
},
|
||||
];
|
||||
|
Reference in New Issue
Block a user