Skip to content

Instantly share code, notes, and snippets.

@n8io
Last active December 15, 2017 19:40
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 n8io/a7bd78689250d61ab537aa48401cb4b9 to your computer and use it in GitHub Desktop.
Save n8io/a7bd78689250d61ab537aa48401cb4b9 to your computer and use it in GitHub Desktop.
Prettier setup (tested w/Atom and prettier-atom plugin)
{
"presets": [ "env" ]
}
// (optional)
# Transpiled ES5
build
dist
{
"env": {
"node": true
},
"extends": [
"airbnb",
"prettier"
]
}
{
"devDependencies": {
...
"babel-preset-env": "^1.6.1",
"eslint": "^4.9.0",
"eslint-config-airbnb": "^16.1.0",
"eslint-config-prettier": "^2.9.0",
"eslint-plugin-import": "^2.7.0",
"eslint-plugin-jsx-a11y": "^6.0.2",
"eslint-plugin-react": "^7.4.0",
...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment