1 Star 0 Fork 18

爷夜夜野/xh-admin-frontend

forked from sunxh/xh-admin-frontend 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
eslint.config.js 1.07 KB
一键复制 编辑 原始数据 按行查看 历史
sunxh 提交于 2024-10-30 20:10 +08:00 . refactor(project): 升级eslint至9.x版本
import pluginVue from 'eslint-plugin-vue'
import vueTsEslintConfig from '@vue/eslint-config-typescript'
import pluginVitest from '@vitest/eslint-plugin'
import skipFormatting from '@vue/eslint-config-prettier/skip-formatting'
import eslintConfigPrettier from 'eslint-config-prettier'
export default [
{
name: 'app/files-to-lint',
files: ['**/*.{ts,mts,tsx,vue}'],
},
{
name: 'app/files-to-ignore',
ignores: ['**/dist/**', '**/dist-ssr/**', '**/coverage/**', '**/node_modules/**', '**/.idea/**', '**/cache/**'],
},
...pluginVue.configs['flat/essential'],
...vueTsEslintConfig(),
eslintConfigPrettier,
{
...pluginVitest.configs.recommended,
files: ['src/**/__tests__/*'],
},
skipFormatting,
{
languageOptions: {
parserOptions: {
ecmaFeatures: {
jsx: true,
},
},
globals: {
}
},
rules: {
'vue/block-lang': 'off',
'vue/multi-word-component-names': 'off',
'@typescript-eslint/no-explicit-any': 0,
quotes: ['error', 'single', { allowTemplateLiterals: true }]
}
}
]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/shn_207/xh-admin-frontend.git
git@gitee.com:shn_207/xh-admin-frontend.git
shn_207
xh-admin-frontend
xh-admin-frontend
main

搜索帮助