Skip to content

Commit

Permalink
chore: Update eslint configuration and typescript declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
mubaidr committed Jun 8, 2024
1 parent 4793b93 commit 21d402e
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,16 @@ import globals from 'globals'

export default antfu({
stylistic: false,
ignores: ['node_modules', 'dist', '**/*.js', '**/*.d.ts'],
ignores: ['node_modules', 'public', 'dist', 'types', '**/*.js', '**/*.d.ts'],
rules: {
'no-console': 'warn',
'no-restricted-globals': 'warn',
'import/order': 'warn',
'ts/explicit-function-return-type': 'off',
'@typescript-eslint/ban-ts-comment': 'warn',
'@typescript-eslint/explicit-function-return-type': 'warn',
'vue/multi-word-component-names': 'warn',
'eslint-comments/no-unlimited-disable': 'off',
},
globals: {
...globals.browser,
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,15 @@ export default defineConfig({

AutoImport({
imports: ['vue', 'vue-router', 'vue/macros', '@vueuse/core'],
dts: 'src/auto-imports.d.ts',
dts: 'src/types/auto-imports.d.ts',
dirs: ['src/composables/', 'src/stores/', 'src/utils/'],
}),

// https://github.com/antfu/unplugin-vue-components
Components({
dirs: ['src/components'],
// generate `components.d.ts` for ts support with Volar
dts: 'src/components.d.ts',
dts: 'src/types/components.d.ts',
resolvers: [
// auto import icons
IconsResolver({
Expand Down
4 changes: 2 additions & 2 deletions vite.firefox.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,15 @@ export default defineConfig({

AutoImport({
imports: ['vue', 'vue-router', 'vue/macros', '@vueuse/core'],
dts: 'src/auto-imports.d.ts',
dts: 'src/types/auto-imports.d.ts',
dirs: ['src/composables/', 'src/stores/', 'src/utils/'],
}),

// https://github.com/antfu/unplugin-vue-components
Components({
dirs: ['src/components'],
// generate `components.d.ts` for ts support with Volar
dts: 'src/components.d.ts',
dts: 'src/types/components.d.ts',
resolvers: [
// auto import icons
IconsResolver({
Expand Down

0 comments on commit 21d402e

Please sign in to comment.