Skip to content

Instantly share code, notes, and snippets.

@kjendrzyca
Created August 7, 2017 19:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kjendrzyca/3a3f0e5ce8ddc8038b12d0654757f5ac to your computer and use it in GitHub Desktop.
Save kjendrzyca/3a3f0e5ce8ddc8038b12d0654757f5ac to your computer and use it in GitHub Desktop.
eslint-prettier
  1. do this:
yarn add prettier --dev
yarn add --dev prettier eslint-plugin-prettier
yarn add --dev eslint-config-prettier

// .eslintrc
{
  "extends": [
    "react-app",
    "prettier"
  ],
  "plugins": [
    "prettier"
  ],
  "rules": {
    "prettier/prettier": ["error", {
      "semi": false,
      "singleQuote": true,
      "trailingComma": "all",
      "bracketSpacing": false
    }]
  }
}
  1. profit!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment