Skip to content

Commit

Permalink
add prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
leannaweller committed Nov 24, 2017
1 parent fe6cafa commit df050b8
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
15 changes: 15 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"printWidth": 100,
"singleQuote": true,
"trailingComma": "es5",
"useTabs": true,
"proseWrap": false,
"overrides": [{
"files": "*.md",
"options": {
"printWidth": 70,
"useTabs": false,
"trailingComma": "none"
}
}]
}
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
"jest": "^21.2.1",
"keymirror": "^0.1.1",
"lint-staged": "^4.3.0",
"prettier": "~1.8.1",
"prettier": "^1.8.2",
"raf": "^3.4.0",
"react": "^16.0.0",
"react-dom": "^16.0.0",
Expand All @@ -132,7 +132,7 @@
},
"scripts": {
"pretest": "npm run lint",
"test": "npm run test:jest",
"test": "npm run test:jest && npm run format:md",
"test:jest": "jest",
"test:watch": "jest --watch",
"test:coverage": "jest --coverage",
Expand All @@ -154,7 +154,8 @@
"test:browser:customised": "node test/browser.js examples/customised/styleguide/index.html",
"test:browser:sections": "node test/browser.js examples/sections/styleguide/index.html",
"danger": "danger",
"precommit": "lint-staged"
"precommit": "lint-staged",
"format:md": "prettier --write '**/*.md'"
},
"release": {
"analyzeCommits": "semantic-release-tamia/analyzeCommits",
Expand Down

0 comments on commit df050b8

Please sign in to comment.