Skip to content

Instantly share code, notes, and snippets.

@adyontech
Last active October 4, 2019 11:58
Show Gist options
  • Save adyontech/0cb85ee32c014368d41c8c1f446c528e to your computer and use it in GitHub Desktop.
Save adyontech/0cb85ee32c014368d41c8c1f446c528e to your computer and use it in GitHub Desktop.
Prettier config

.prettierignore

dist
node_modules
coverage
.next
build

.prettierrc

{
  "arrowParens": "avoid",
  "bracketSpacing": true,
  "jsxBracketSameLine": false,
  "jsxSingleQuote": false,
  "printWidth": 80,
  "proseWrap": "always",
  "requirePragma": false,
  "semi": true,
  "singleQuote": false,
  "tabWidth": 2,
  "trailingComma": "all",
  "useTabs": false
}

.eslintrc

{
  "parserOptions": {
    "ecmaVersion": 2018
  },
  "extends": [
    "react-app",
    "plugin:jsx-a11y/recommended",
    "eslint-config-prettier"
  ],
  "plugins": ["jsx-a11y"],
  "rules": {
    "no-console": "off"
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment