Use prettier (#600)

This commit is contained in:
Brian Ng
2017-06-28 11:41:42 -05:00
committed by Henry Zhu
parent a95f55c468
commit 5180ecdca4
30 changed files with 6800 additions and 4830 deletions

View File

@@ -32,10 +32,14 @@
"chalk": "^1.1.3",
"cross-env": "^5.0.0",
"eslint": "^4.0.0",
"eslint-config-babel": "^7.0.0",
"eslint-config-babel": "^7.0.1",
"eslint-plugin-flowtype": "^2.34.0",
"eslint-plugin-prettier": "^2.1.2",
"flow-bin": "^0.47.0",
"husky": "^0.14.1",
"lint-staged": "^4.0.0",
"nyc": "^11.0.2",
"prettier": "^1.5.2",
"rimraf": "^2.5.4",
"rollup": "^0.42.0",
"rollup-plugin-babel": "3.0.0-alpha.12",
@@ -51,7 +55,7 @@
"changelog": "git log `git describe --tags --abbrev=0`..HEAD --pretty=format:' * %s (%an)' | grep -v 'Merge pull request'",
"clean": "rimraf lib",
"flow": "flow",
"lint": "eslint src bin",
"lint": "eslint src bin test",
"prepublish": "cross-env BABEL_ENV=production yarn run build",
"preversion": "yarn run test && npm run changelog",
"test": "yarn run lint && yarn run flow && yarn run build -- -m && yarn run test-only",
@@ -86,5 +90,11 @@
"Tag: New Feature": ":rocket: New Feature",
"Tag: Polish": ":nail_care: Polish"
}
},
"lint-staged": {
"*.js": [
"eslint --format=codeframe --fix",
"git add"
]
}
}