Skip to content
Search

Eslint-config-prettier

lastmod 2022-04-11created 2022-04-112 edits

A config that disables ESLint rules that conflict with prettier

Installation

Install eslint-config-prettier:

npm install --save-dev eslint-config-prettier

Then, add "prettier" to the "extends" array in your .eslintrc.* file. Make sure to put it last, so it gets the chance to override other configs.

{
  "extends": [
    "some-other-config-you-use",
    "prettier"
  ]
}

See also

Favorite site

author Zer0 sitemap