Skip to content

Instantly share code, notes, and snippets.

@mofas
Created April 22, 2017 05:11
Show Gist options
  • Select an option

  • Save mofas/95687b7845f76c07d64f094b63adf32b to your computer and use it in GitHub Desktop.

Select an option

Save mofas/95687b7845f76c07d64f094b63adf32b to your computer and use it in GitHub Desktop.
prettier + eslint
{
"parser": "babel-eslint",
"extends": [
"eslint:recommended",
"plugin:import/errors",
"plugin:import/warnings",
"prettier"
],
"plugins": [
"prettier"
],
"rules": {
"prettier/prettier": ["error", {
"trailingComma": "es5",
"singleQuote": true
}]
},
"env": {
"es6": true,
"node": true
}
}
{
"name": "prettier_eslint_example",
"version": "0.0.1",
"publishConfig": {
"registry": "https://appier.us:4873"
},
"devDependencies": {
"babel-eslint": "^7.2.2",
"eslint": "^3.19.0",
"eslint-config-prettier": "^1.7.0",
"eslint-plugin-import": "^2.2.0",
"eslint-plugin-prettier": "^2.0.1",
"prettier": "^1.2.2"
},
"engines": {
"node": ">= 6.0.0"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment