next lint config?
Unanswered
Havana posted this in #help-forum
HavanaOP
Hi guys.
I'm running nextjs version 14.xx and a node version of 20.10.00.
My
However on running, this just asks me how strict my TS should be, then generates a new
What am i doing wrong here, any help would be appreciated.
I'm running nextjs version 14.xx and a node version of 20.10.00.
My
next lint
seems to act weird. It doesn't pick up any TS errors like anys
for example. I was using .eslintrc.json
but I deleted it, then added a eslint.config.mjs
that looks like:import { FlatCompat } from '@eslint/eslintrc'
const compat = new FlatCompat({
// import.meta.dirname is available after Node.js v20.11.0
baseDirectory: import.meta.url
})
const eslintConfig = [
...compat.config({
extends: ['next/core-web-vitals', 'next/typescript', "prettier"],
}),
]
export default eslintConfig
However on running, this just asks me how strict my TS should be, then generates a new
.eslintrc.json
?.What am i doing wrong here, any help would be appreciated.