Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(eslint): useFlatConfig is not experimental anymore (#3183)
As [Support for the new ESLint flat config files has improved](https://github.com/microsoft/vscode-eslint?tab=readme-ov-file#version-305---pre-release)
- Loading branch information
aa7fe10
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
something broke in eslint after this commit , do check out this thread LazyVim/LazyVim#3383 (comment)
aa7fe10
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After updating nvim-lspconfig to this commit I am getting errors regarding useFlatConfig, seem like this is also already mentioned in Lazy nvim
![image](https://private-user-images.githubusercontent.com/19706066/335332925-3c131437-94e2-47c0-92f6-f59c3a21278c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyNjYyOTksIm5iZiI6MTczOTI2NTk5OSwicGF0aCI6Ii8xOTcwNjA2Ni8zMzUzMzI5MjUtM2MxMzE0MzctOTRlMi00N2MwLTkyZjYtZjU5YzNhMjEyNzhjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDA5MjYzOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTlmZWU5OWQ5ZDAyYzViNjI5OTJiZTJmYjQ0NzMxZjMwYzg2NjAzNDQxYzNmNjljYzViYTE3ODdiNGNiMDYwYTEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.Lcla6m9BoxXn-6C4T2XTnJVi-d_s77jOFkIAYA6d-t0)
aa7fe10
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Refer to the link i mentioned, it states u need to downgrade your eslint to 4.5.0
Running :MasonInstall this will help
aa7fe10
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Downgrading eslint-lsp to 4.5.0 indeed removes this error, however I am no longer getting any diagnostics from eslint and EslintFixAll no longer works.
aa7fe10
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The VSCode ESLint Language Server is throwing an exception because it can no longer find
.experimental
https://github.com/microsoft/vscode-eslint/blob/main/server/src/eslint.ts#L912-L922
This "fix" must be rolled back at least until the most commonly used server for eslint is fixed.
(burned two days of my life)
A workaround for this right now, for those who find this PR, would be something like this snippet. Everyone else who upgraded lspconfig is just going to suffer.
aa7fe10
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
still no fix?