Skip to content

Commit

Permalink
chore: Add nuxt/eslint package
Browse files Browse the repository at this point in the history
  • Loading branch information
riceball-tw committed Jan 1, 2025
1 parent f3fa384 commit a1ade79
Show file tree
Hide file tree
Showing 5 changed files with 1,370 additions and 13 deletions.
4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
// Required in vscode-eslint < v3.0.10 only
"eslint.useFlatConfig": true
}
6 changes: 6 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// @ts-check
import withNuxt from './.nuxt/eslint.config.mjs'

export default withNuxt(
// Your custom configs here
)
3 changes: 2 additions & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ export default defineNuxtConfig({
modules: [
'@nuxtjs/tailwindcss',
'shadcn-nuxt',
'@nuxtjs/color-mode'
'@nuxtjs/color-mode',
'@nuxt/eslint'
],
shadcn: {
/**
Expand Down
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,17 @@
"dev": "nuxt dev",
"generate": "nuxt generate",
"preview": "nuxt preview",
"postinstall": "nuxt prepare"
"postinstall": "nuxt prepare",
"lint": "eslint .",
"lint:fix": "eslint . --fix"
},
"dependencies": {
"@nuxt/eslint": "0.7.4",
"@nuxtjs/color-mode": "3.5.2",
"@vueuse/core": "^12.2.0",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"eslint": "^8.57.0 || ^9.0.0",
"lucide-vue-next": "^0.469.0",
"nuxt": "^3.15.0",
"radix-vue": "^1.9.12",
Expand Down
Loading

0 comments on commit a1ade79

Please sign in to comment.