Closed grentank closed 6 months ago
For the time being, you'll need to still set `eslint.experimental.useFlatConfig": true' to enable the config file in VS Code. There is a prerelease version that will auto-detect flat config: https://github.com/microsoft/vscode-eslint/issues/1644
We have a lot of documentation about how to use the new config system, start here: https://eslint.org/docs/latest/use/configure/migration-guide
There's also this: https://eslint.org/docs/latest/use/configure/
Note: We do not maintain the VS Code ESLint plugin. For further help, you'll need to work with them: https://github.com/microsoft/vscode-eslint/
Steps to reproduce:
package.json
file withnpm init -y
npm init @eslint/config@latest
This package creates a config
eslint.config.mjs
. Here are some problems:The extension does not lint, nor higlight, nor fix
.js
files"eslint.experimental.useFlatConfig": true,
in settings.json does help, but is it still experimental?npm i -D eslint-config-prettier
compat.extends("airbnb-base", 'prettier'),
and the new config does not work. Eslint still higlights formatting rules even after restarting eslint serverPlease, provide some info on how to use this new eslint config.