Prettier-vscode: Use prettier-eslint And prettier-stylelint

Created on 18 Jan 2018  路  6Comments  路  Source: prettier/prettier-vscode

I set VSCode:

prettier.eslintIntegration: true
prettier.stylelintIntegration: true

Should I use NPM to install in my project? Or Prettier-VSCode has already include them?

npm install --save-dev prettier-eslint
npm install prettier-stylelint --save-dev
locked

All 6 comments

They're built into the extension so you don't need to install them.

Thank you for your reply.
But I found it didn't work in css file, and I got a notice:
No configuration provided for dd:\Project\HClientNew\css\Site.css::\Project\HClientNew\css\Site.css
I don't know what to do.

Maybe you _must_ have to provide a stylelintrc file.

/cc @hugomrdias

I can't configure that too and what is worst i can't find good instructions 馃槙
I enable "prettier.stylelintIntegration": true, in VSCode settings.json but what now?

  1. Do i need to install the stylelint?
  2. From where should i take settings? from here? https://stylelint.io/user-guide/example-config
  3. Where should i put settings from stylelint?
  4. Can i put that in VSCode settings.json? (i would like to keep this settings globally, not only per project)

Can anyone help with this? or someone have any step by step guide maybe ?

See documentation on linting integration: https://github.com/prettier/prettier-vscode#vs-code-eslint-and-tslint-integration

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