Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
// @ts-check
import antfu from '@antfu/eslint-config'
import withNuxt from './.nuxt/eslint.config.mjs'

export default withNuxt(
// Your custom configs here
{
rules:{
"vue/html-self-closing": "off",
"no-console": ["warn", { allow: ["warn", "error"] }],
}
}
// @ts-expect-error - Type mismatch between FlatConfigComposer versions
antfu({
// ...@antfu/eslint-config options
}),
// ...your other rules
)
5 changes: 5 additions & 0 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ export default defineNuxtConfig({
"@vite-pwa/nuxt",
"@nuxtjs/i18n",
],
eslint: {
config: {
standalone: false,
},
},
i18n: {
defaultLocale: "en",
locales: [{ code: "en", name: "English", file: "en-US.json" }],
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,12 @@
},
"packageManager": "[email protected]",
"devDependencies": {
"@antfu/eslint-config": "^6.7.3",
"@types/chroma-js": "^3.1.1",
"@types/lodash": "^4.17.14",
"@types/luxon": "^3.6.2",
"@types/qrcode": "^1.5.5",
"eslint": "^9",
"husky": "^9.1.7"
}
}
Loading