Migrating from JSON to flat config #18303
Unanswered
ChrisMBarr
asked this question in
Q&A
Replies: 1 comment 2 replies
-
I am not an expert, and I recently migrated to v9. BTW, shouldn't that be? import js from '@eslint/js';
export default [
js.configs.recommended,
{
// ...
}
] See also: Configuration Files |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I see v9 will push people to use the flat config, so it's time for my app to use it. I can't upgrade to v9 yet since I'm waiting on typescript-eslint support, but I can go ahead and get the config file ready and in place.
I am really struggling with understanding what I need to do here. I find the new flat config syntax verbose and cryptic. I have posted a question on StackOverflow but I feel I need to ask here as well.
I have a monorepo project that has this as my base config for ESlint 8.57.0
and then each application in the monorepo just uses that base config, point it to the TSConfig for the project, and makes some minor tweaks as needed
I have tried to convert to the new flat file config, but it's just confusion and obscure error messages one after another. I am really really lost. I have this as my base config
and then in a specific project I have this
When I run
npx eslint ./ --fix --max-warnings=0
I get this cryptic error message:Beta Was this translation helpful? Give feedback.
All reactions