sourcecred/backend/package.json
William Chargin d48e8e7f26
Add prettier to backend (#33)
Summary:
Follows the lead of #18.

Test Plan:
Verify that non-pretty files abort the commit:
```shell
$ echo 'const x = 1  +  1;' >foo.js
$ git add foo.js
$ git commit -m yikes
husky > npm run -s precommit (node v8.9.4)

 ❯ Running tasks for **/*.js
   ✖ prettier --list-different
     → foo.js
✖ prettier --list-different found some errors. Please fix them and try committing again.
foo.js

husky > pre-commit hook failed (add --no-verify to bypass)
```

wchargin-branch: backend-prettier
2018-02-26 16:42:53 -08:00

29 lines
685 B
JSON

{
"name": "sourcecred-backend",
"version": "0.1.0",
"description": "Backend for SourceCred",
"main": "index.js",
"repository": "https://github.com/SourceCred/SourceCred",
"author": "dandelionmane,wchargin",
"license": "MIT",
"private": true,
"dependencies": {
"@octokit/rest": "octokit/rest.js"
},
"devDependencies": {
"flow": "^0.2.3",
"flow-bin": "^0.66.0",
"husky": "^0.14.3",
"lint-staged": "^7.0.0",
"prettier": "^1.10.2"
},
"scripts": {
"precommit": "npm run lint-staged",
"lint-staged": "lint-staged",
"prettify": "prettier --write '**/*.js'"
},
"lint-staged": {
"**/*.js": "prettier --list-different"
}
}