Skip to content

Commit

Permalink
add prettier (facebookarchive#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew authored and ianobermiller committed Nov 5, 2018
1 parent a5faad6 commit 20e443c
Show file tree
Hide file tree
Showing 3 changed files with 1,660 additions and 635 deletions.
9 changes: 9 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"useTabs": false,
"printWidth": 80,
"tabWidth": 2,
"singleQuote": true,
"trailingComma": "all",
"bracketSpacing": false,
"jsxBracketSameLine": true
}
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@
"scripts": {
"test": "cross-env CI=1 react-scripts-ts test --env=jsdom",
"test:watch": "react-scripts-ts test --env=jsdom",
"prettier": "prettier --config .prettierrc --write \"{src,example}/**/*.{js,ts,tsx}\"",
"build": "rollup -c",
"start": "rollup -c -w",
"prepare": "yarn run build",
"prepare": "yarn run prettier && yarn run build",
"predeploy": "cd example && yarn install && yarn run build",
"deploy": "gh-pages -d example/build"
},
Expand All @@ -34,6 +35,7 @@
"babel-core": "^6.26.3",
"babel-runtime": "^6.26.0",
"cross-env": "^5.1.4",
"prettier": "^1.14.3",
"gh-pages": "^2.0.1",
"react": "^16.7.0-alpha.0",
"react-dom": "^16.7.0-alpha.0",
Expand Down
Loading

0 comments on commit 20e443c

Please sign in to comment.