Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LSP-ESLint should support eslint.config.js-files #4341

Open
4lph4-Ph4un opened this issue Feb 21, 2024 · 2 comments
Open

LSP-ESLint should support eslint.config.js-files #4341

4lph4-Ph4un opened this issue Feb 21, 2024 · 2 comments

Comments

@4lph4-Ph4un
Copy link

The newer versions of ESLint read configurations from eslint.config.js-files and many new JavaScript/TypeScript-projects already define their configurations this way. This file should be added to the files lsp-mode searches for configuration when initializing the client!

More about this here: https://eslint.org/docs/latest/use/configure/configuration-files-new
Note that the disclaimer is outdated and nowadays you can just use the file without specifying any of the flags on the disclaimer. The flat-config is on by default!

Apart from this there will be coming support for eslint.config.cjs and eslint.config.mjs on the next major release for ESLint:
eslint/eslint#17909

@diegotsutsumi
Copy link

Is there any current workaround for using eslint.config.js and have lsp-mode work for eslint backend?

@diegotsutsumi
Copy link

As of today vscode-eslint is in version 2.4.4, this repository (lsp-mode) is using version 2.2.2 , it could be that an upgrade here solves the issue.

I can't upgrade it directly cause it's pulling from a compiled version from a non-official binary repo. I tried to hack an upgrade but spacemacs wouldn't recognize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants