mirror of
https://github.com/zclzone/vue-naive-admin.git
synced 2025-12-28 20:10:22 +08:00
chore: eslint 替换为 @antfu/eslint-config,集成 lint-staged 和 simple-git-hooks
This commit is contained in:
28
eslint.config.js
Normal file
28
eslint.config.js
Normal file
@@ -0,0 +1,28 @@
|
||||
import antfu from '@antfu/eslint-config'
|
||||
|
||||
export default antfu({
|
||||
unocss: true,
|
||||
formatters: true,
|
||||
stylistic: true,
|
||||
rules: {
|
||||
'n/prefer-global/process': 'off',
|
||||
'no-undef': 'error',
|
||||
'no-fallthrough': 'off',
|
||||
'vue/block-order': 'off',
|
||||
},
|
||||
languageOptions: {
|
||||
globals: {
|
||||
h: 'readonly',
|
||||
provide: 'readonly',
|
||||
inject: 'readonly',
|
||||
markRaw: 'readonly',
|
||||
defineAsyncComponent: 'readonly',
|
||||
nextTick: 'readonly',
|
||||
useRoute: 'readonly',
|
||||
useRouter: 'readonly',
|
||||
Message: 'readonly',
|
||||
Modal: 'readonly',
|
||||
NProgress: 'readonly',
|
||||
},
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user