Top "Prettier" questions

Prettier is an opinionated code formatter for JavaScript, CSS, HTML, Markdown, and other languages.

ESLint with Prettier issues on Yarn global install

I'm in the process of setting up my ReactJS environment, and I'm following the FrontendMasters course on the topic. After …

eslint yarnpkg prettier
EditorConfig vs. Eslint vs. Prettier: Is it worthwhile to use them all?

I am trying to set up some tools to help maintain consistency in a codebase used by multiple developers. Is …

formatting eslint code-formatting editorconfig prettier
How can I tell Prettier to ignore a package.json file?

I am using prettier-standard because the project uses the standard for linting. Following the prettier pre-commit hook example I am …

javascript node.js reactjs prettier
How to turn off the prettier trailing comma in VS Code?

How to turn off the prettier trailing comma in VS Code? I go to settings. Select none for the prettier …

visual-studio-code prettier trailing
How Do I Run Prettier Only on Files That I Want to Commit?

Using Husky, I've set up my package.json with a precommit hook so that my JavaScript code is formatted using …

javascript git code-formatting pre-commit-hook prettier
Unable to set tab width to 4 in prettier

I installed prettier extension for vscode and configured tab width as 4 spaces but it still indents new lines with 2 spaces. …

visual-studio-code prettier
VSCode Prettier not formatting PHP

So I've set up vscode with Prettier, but it will not format .php files. .html files are working fine with …

php html visual-studio-code eslint prettier
How to disable eslint(prettier/prettier) single quotes error

I have react-native code. I install ESLint. I use it but its show error. While I use single quotes it …

javascript eslint prettier
disable printWidth on prettier

Is there a way to disable the printWidth rule warning in prettier? I want to be able to determine my …

prettier
Prettier/VSCode Eslint weird format/syntax breaking bug

Sometimes when I startup VSCode and I save an JS file, everything gets messed up. example From: To: On save …

visual-studio-code eslint prettier