Skip to content

Commit

Permalink
chore: Add prettier (#467)
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyiz4262 authored and iamkun committed Feb 11, 2019
1 parent a7e05e0 commit 0034349
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"test": "TZ=Pacific/Auckland npm run test-tz && TZ=Europe/London npm run test-tz && npm run test-tz && jest",
"test-tz": "jest test/timezone.test --coverage=false",
"lint": "./node_modules/.bin/eslint src/* test/* build/*",
"prettier": "prettier --write \"{src,test,build,docs}/**/*.{js,ts,md}\"",
"babel": "cross-env BABEL_ENV=build babel src --out-dir esm --copy-files",
"build": "cross-env BABEL_ENV=build node build && npm run size",
"sauce": "npx karma start karma.sauce.conf.js",
Expand Down Expand Up @@ -86,6 +87,7 @@
"mockdate": "^2.0.2",
"moment": "^2.22.0",
"pre-commit": "^1.2.2",
"prettier": "^1.16.1",
"rollup": "^0.57.1",
"rollup-plugin-babel": "^4.0.0-beta.4",
"rollup-plugin-uglify": "^3.0.0",
Expand Down
9 changes: 9 additions & 0 deletions prettier.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module.exports = {
useTabs: false,
printWidth: 80,
tabWidth: 2,
singleQuote: true,
trailingComma: 'none',
semi: false,
arrowParens: 'avoid'
}

0 comments on commit 0034349

Please sign in to comment.