Skip to content

Commit

Permalink
chore: Add prettier and 'npm run format' script.
Browse files Browse the repository at this point in the history
  • Loading branch information
carlo-quinonez committed Jan 22, 2020
1 parent ca8c35b commit 6ae7133
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
semi: true,
trailingComma: 'all',
singleQuote: true,
printWidth: 80,
tabWidth: 2,
};
6 changes: 6 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"main": "index.js",
"scripts": {
"start": "node index.js",
"test": "mocha index.test.js"
"test": "mocha index.test.js",
"format": "prettier --write '**/*.js'"
},
"author": "Carlo Quinonez <[email protected]>",
"license": "MIT",
Expand All @@ -22,6 +23,7 @@
},
"devDependencies": {
"ajv": "^6.10.2",
"mocha": "^7.0.0"
"mocha": "^7.0.0",
"prettier": "^1.19.1"
}
}

0 comments on commit 6ae7133

Please sign in to comment.