Skip to content

Commit

Permalink
Configure prettier
Browse files Browse the repository at this point in the history
A highly consistent auto-formatter that works by parsing the AST and the
pretty printing it.

See: https://prettier.io/
  • Loading branch information
Graham42 committed Aug 3, 2017
1 parent aba27d2 commit 2f42b09
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 13 deletions.
28 changes: 15 additions & 13 deletions .eslintrc
@@ -1,30 +1,32 @@
{
"parser": "babel-eslint",
"plugins": ["babel"],
"plugins": [
"babel",
"prettier"
],
"env": {
"browser": true,
"es6": true
},
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"modules": true
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"modules": true
}
},
"root": true,
"rules": {
"babel/arrow-parens": [2, "always"],
"no-underscore-dangle": 0,
"strict": [2, "global"],
"eqeqeq": [2, "smart"],
"no-undef": 2,
"no-console": 1,
"no-nested-ternary": 2,
"indent": [2, 2],
"quotes": [2, "single"],
"brace-style": [2, "1tbs", { "allowSingleLine": true }],
"object-curly-spacing": [2, "always"],
"eol-last": 2,
"padded-blocks": [2, "never"],
"space-before-function-paren": [2, { "anonymous": "always", "named": "never" }],
"space-before-blocks": [2, "always"]
"prettier/prettier": [
"error",
{
"singleQuote": true
}
]
}
}
2 changes: 2 additions & 0 deletions package.json
Expand Up @@ -39,9 +39,11 @@
"coveralls": "^2.11.12",
"eslint": "^4.3.0",
"eslint-plugin-babel": "^4.1.2",
"eslint-plugin-prettier": "^2.1.2",
"isomorphic-fetch": "^2.1.1",
"nock": "^8.0.0",
"normalizr": "^2.2.1",
"prettier": "^1.5.3",
"rimraf": "^2.5.4",
"tap-spec": "^4.1.1 ",
"tape": "^4.6.0"
Expand Down

0 comments on commit 2f42b09

Please sign in to comment.