How to use @unocss/eslint-config in withNuxt() #409
Unanswered
chuckntaylor
asked this question in
Q&A
Replies: 1 comment
-
I was able to fix this by installing // @ts-check
import antfu from '@antfu/eslint-config'
import withNuxt from './.nuxt/eslint.config.mjs'
export default withNuxt(
antfu({
unocss: true,
})
)
// Your custom configs here However, I would still be very much interested in knowing how I might have gone about this otherwise. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Last night I decided to take the plunge and update eslint to utilize the new flat configuration. After a bit of trial and error, it seemed easiest to use the Nuxt eslint module. I am now trying to get the @unocss/eslint-config running again.
In their docs, it says for the flat configuration:
How might I adapt this to the
export default withNuxt()
inside the generatedeslint.config.mjs
?I have tried
But I get the following error:
Beta Was this translation helpful? Give feedback.
All reactions