Skip to content

Commit

Permalink
feat(prettier): add prettier-standard, close #47
Browse files Browse the repository at this point in the history
  • Loading branch information
bahmutov committed Jul 9, 2017
1 parent 8280018 commit 3db5349
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -27,7 +27,7 @@ Answer a few questions and you should be all set.
* Default `.npmrc` and `.gitignore` files
* Git hooks and message validation using [pre-git](https://github.com/bahmutov/pre-git)
* Linting and auto formatting using [standard](http://standardjs.com/) and
[standard-format](https://github.com/maxogden/standard-format) using `npm run lint`
[prettier-standard](https://github.com/sheerun/prettier-standard#readme) using `npm run lint`
* Showing open Git issues via
[git-issues](https://github.com/softwarescales/git-issues) using `npm run issues`
* Unit testing with [Mocha](http://mochajs.org/) using `npm run unit`
Expand Down
3 changes: 3 additions & 0 deletions app/defaults.js
@@ -1,3 +1,4 @@
// default package.json object
const defaults = {
version: '1.0.0',
main: 'src/',
Expand All @@ -11,6 +12,8 @@ const defaults = {
deps: 'deps-ok && dependency-check --no-dev .',
issues: 'git-issues',
license: 'license-checker --production --onlyunknown --csv',
pretty: "prettier-standard 'src/*.js'",
prelint: 'npm run pretty',
lint: 'standard --verbose --fix src/*.js',
pretest: 'npm run lint',
secure: 'nsp check',
Expand Down

0 comments on commit 3db5349

Please sign in to comment.