Top "Prettier" questions

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

VSCode failed to load plugin cannot find module 'eslint-plugin-prettier'

I'm installing eslint and Prettier in my project and trying to get automatic code formatting to work through VSCode. When …

visual-studio-code eslint prettier eslintrc
What's the difference between prettier-eslint, eslint-plugin-prettier and eslint-config-prettier?

I want to use Prettier and ESLint together, but I experienced some conflicts just by using them one after another. …

javascript ecmascript-6 eslint code-formatting prettier
Missing return type on function - in react (typescript) code

In my App.tsx i got this: Missing return type on function.eslint(@typescript-eslint/explicit-function-return-type) And in my main class …

reactjs typescript eslint prettier
Trailing comma after last line in object

I'm using Prettier in VS Code. I noticed that when using format on save, Prettier adds trailing commas on the …

javascript visual-studio-code prettier
Module build failed: Error: No parser and no file path given, couldn't infer a parser in nuxtjs

Module build failed: Error: No parser and no file path given, couldn't infer a parser. at normalize (/home/nayan/dd_…

vue.js vuejs2 vue-component prettier
Prettier is not indenting as specified

Prettier continues to format my code incorrectly. I desire 4 spaces for tabs (second picture) but it ignores the editor settings …

typescript visual-studio-code prettier
ESLint couldn't find the config "prettier" to extend from

I am trying to format my code using eslint but when I run npm run lint -f I get this …

eslint prettier prettier-eslint
How to ignore node_modules from prettier

Using pretty-quick for beautification purpose Prettier configuration and Eslint rules are affecting the node_modules. So, want to skip it. …

javascript lint prettier
Prettier react/jsx-max-props-per-line format with VSCode

I use Prettier in JavaScript project with React. All my component props is formated in 1 line : <Icon icon="arrow-left" …

javascript reactjs eslint prettier
How to configure Vue CLI 4 with ESLint + Prettier + Airbnb rules + TypeScript + Vetur?

When creating a new project with Vue CLI v4.0.5 with checking the options for TypeScript and Linter / Formatter, you are …

typescript vue.js eslint vue-cli prettier