优化
This commit is contained in:
39
monisuo-admin/eslint.config.mjs
Normal file
39
monisuo-admin/eslint.config.mjs
Normal file
@@ -0,0 +1,39 @@
|
||||
import antfu from '@antfu/eslint-config'
|
||||
import pluginQuery from '@tanstack/eslint-plugin-query'
|
||||
|
||||
export default antfu({
|
||||
type: 'app',
|
||||
vue: {
|
||||
overrides: {
|
||||
'vue/block-lang': ['warn', {
|
||||
script: { lang: ['ts', 'tsx'] },
|
||||
}],
|
||||
},
|
||||
},
|
||||
typescript: true,
|
||||
formatters: {
|
||||
css: true,
|
||||
html: true,
|
||||
markdown: 'prettier',
|
||||
},
|
||||
|
||||
ignores: [
|
||||
'**/build/**',
|
||||
'**/components/ui/**',
|
||||
],
|
||||
settings: {
|
||||
'import/core-modules': ['vue-router/auto-routes'],
|
||||
},
|
||||
globals: {
|
||||
definePage: 'readonly',
|
||||
},
|
||||
|
||||
imports: {
|
||||
overrides: {
|
||||
'perfectionist/sort-imports': ['error', {
|
||||
tsconfig: { rootDir: '.' },
|
||||
}],
|
||||
},
|
||||
},
|
||||
...pluginQuery.configs['flat/recommended'],
|
||||
})
|
||||
Reference in New Issue
Block a user