Skip to content

Commit

Permalink
chore: refine linting configuration
Browse files Browse the repository at this point in the history
- Update lint-staged to target specific file extensions (js,ts,vue,jsx,tsx) for better performance
- Configure ESLint to ignore Docker-related files (Dockerfile, docker-compose.yml)
  • Loading branch information
hegedus-mark committed Dec 12, 2024
1 parent 50014de commit d6c4255
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
5 changes: 5 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,9 @@ export default antfu({
quotes: 'single',
},
vue: true,

ignores: [ // We might don't want it to check docker
'docker-compose.yml',
'Dockerfile',
],
})
2 changes: 1 addition & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
export default defineNuxtConfig({
compatibilityDate: '2024-11-01',
modules: ['@nuxtjs/tailwindcss'],
devtools: { enabled: true }
devtools: { enabled: true },
})
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@
"pre-commit": "pnpm dlx lint-staged"
},
"lint-staged": {
"*": "eslint --fix"
"*.{js,ts,vue,jsx,tsx}": "eslint --fix"
}
}
1 change: 0 additions & 1 deletion tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,3 @@ export default {
},
plugins: [],
}

0 comments on commit d6c4255

Please sign in to comment.