You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This package creates a config eslint.config.mjs. Here are some problems:
Eslint server (VSCode extension) returns an error:
No ESLint configuration (e.g .eslintrc) found for file: /home/grentank/elbrus/temp/temp/eslint.config.mjs
File will not be validated. Consider running 'eslint --init' in the workspace folder temp
Alternatively you can disable ESLint by executing the 'Disable ESLint' command.
The extension does not lint, nor higlight, nor fix .js files
2. The option "eslint.experimental.useFlatConfig": true, in settings.json does help, but is it still experimental?
3. It is impossible to load new configs/plugins in this file. For example, prettier:
npm i -D eslint-config-prettier
add to compat.extends("airbnb-base", 'prettier'), and the new config does not work. Eslint still higlights formatting rules even after restarting eslint server
I dont know how to add plugins or configs in this file. There are no guides on how to apply custom rules to this config. There is no information on how to apply configs or plugins
Please, provide some info on how to use this new eslint config.
The text was updated successfully, but these errors were encountered:
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: microsoft/vscode-eslint#1644
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
files2. The option
"eslint.experimental.useFlatConfig": true,
in settings.json does help, but is it still experimental?3. It is impossible to load new configs/plugins in this file. For example, prettier:
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.
The text was updated successfully, but these errors were encountered: