Skip to content

Commit

Permalink
fix(eslint): useFlatConfig revert to experimental (#3184)
Browse files Browse the repository at this point in the history
  • Loading branch information
saifulapm authored May 31, 2024
1 parent 7cb90cf commit 69fc138
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lua/lspconfig/server_configurations/eslint.lua
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ return {
validate = 'on',
packageManager = nil,
useESLintClass = false,
useFlatConfig = false,
experimental = {
useFlatConfig = false,
},
codeActionOnSave = {
enable = false,
mode = 'all',
Expand Down Expand Up @@ -117,7 +119,7 @@ return {
or vim.fn.filereadable(new_root_dir .. '/eslint.config.mts') == 1
or vim.fn.filereadable(new_root_dir .. '/eslint.config.cts') == 1
then
config.settings.useFlatConfig = true
config.settings.experimental.useFlatConfig = true
end

-- Support Yarn2 (PnP) projects
Expand Down

1 comment on commit 69fc138

@damianveltkamp
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the revert, after updating nvim-lspconfig everything now works as expected again 🙏🏼

Please sign in to comment.