Skip to content
Snippets Groups Projects
Commit 16410613 authored by Remi  PLANEL's avatar Remi PLANEL
Browse files

update eslint

parent 830a140a
No related branches found
No related tags found
No related merge requests found
Pipeline #128003 waiting for manual action
......@@ -3,6 +3,9 @@
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter"
},
// Enable the ESlint flat config support
"eslint.experimental.useFlatConfig": true,
......@@ -44,5 +47,5 @@
"yaml",
"toml",
"astro",
]
}
],
\ No newline at end of file
import withNuxt from './.nuxt/eslint.config.mjs'
import antfu from '@antfu/eslint-config'
export default antfu({
formatters: true,
unocss: true,
vue: true,
})
export default withNuxt(
// your custom flat configs go here, for example:
// {
// files: ['**/*.ts', '**/*.tsx'],
// rules: {
// 'no-console': 'off' // allow console.log in TypeScript files
// }
// },
// {
// ...
// }
antfu({
// ...@antfu/eslint-config options
}),
)
......@@ -11,7 +11,7 @@ export default defineNuxtConfig({
'nuxt-meilisearch',
'@nuxtjs/plausible',
'@nuxtjs/seo',
'@nuxtjs/eslint-module',
'@nuxt/eslint'
],
app: {
head: {
......@@ -97,7 +97,10 @@ export default defineNuxtConfig({
},
eslint: {
/* module options */
lintOnStart: false
lintOnStart: false,
config: {
stylistic: true // <---
}
}
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment