Prettier-vscode: You have legacy settings in your VS Code config

Created on 11 Nov 2019  路  4Comments  路  Source: prettier/prettier-vscode

Suddenly prettier stopped working with error:

You have legacy settings in your VS Code config. They are being ignored Would you like to migrate them to '.prettierrc'?.

Install/reinstall doesn't help.

In project i only have prettier.config.js:
module.exports = { printWidth: 140, singleQuote: true, jsxSingleQuote: true, semi: false }

UPDATE
I was able to partially solve this by installing prettier as dependency and updating prettier.config.js to .prettierrc:

{
  "printWidth": 140,
  "singleQuote": true,
  "jsxSingleQuote": true,
  "semi": false
}

Problem now is that with following project structure:

src
package.json

I get the same error if i try to "pretty" anything inside folders dist/src, when top level "pretting" works fine.

locked

Most helpful comment

@ntotten thanks, also deleted all prettier options from vscode settings (how did they get there?), now it's fine.

All 4 comments

That error doesn't stop it from working it just is telling you that somewhere you have legacy configuration settings. See: https://github.com/prettier/prettier-vscode/blob/master/README.md#error-messages

Can you provide a same project to help repro the issue? I am able to run everything correctly when I have package.json at the root and have subfolders with source.

@ntotten thanks, also deleted all prettier options from vscode settings (how did they get there?), now it's fine.

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings