Skip to content

Commit

Permalink
add package.json prettier script, alias format script to prettier scr…
Browse files Browse the repository at this point in the history
…ipt to match with other packages in the lume repo, format
  • Loading branch information
trusktr committed Oct 14, 2023
1 parent 6eab3a1 commit a339aed
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script src="lib/kiwi.js"></script>
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,12 @@
"build": "tsc && tsc -t es6 --outDir tmp/es && rollup -c",
"clean": "rimraf lib/ es/ tmp/",
"test": "npm run lint && mocha test/main.cjs",
"format": "prettier . --write",
"format": "npm run prettier",
"prettier": "prettier . --write",
"lint": "prettier . --check",
"// TODO cov script not currently collecting coverage information although it runs": "",
"cov": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -R test/main.cjs",
"doc": "jsdoc2md -f tmp/kiwi.js -m none -g none > docs/Kiwi.md && node scripts/docs-update-headings.js && prettier docs/Kiwi.md --write",
"lint": "prettier . --check",
"bench": "node bench/main.cjs",
"version": "npm run clean && npm run build && npm test && npm run bench && git add .",
"release:patch": "npm version patch -m 'v%s' && npm publish && git push --follow-tags",
Expand Down
5 changes: 4 additions & 1 deletion src/maptype.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,10 @@ class Pair<T, U> {
* @param first The first item of the pair.
* @param second The second item of the pair.
*/
constructor(public first: T, public second: U) {}
constructor(
public first: T,
public second: U,
) {}

/**
* Create a copy of the pair.
Expand Down

0 comments on commit a339aed

Please sign in to comment.