Skip to content

Commit a339aed

Browse files
committed
add package.json prettier script, alias format script to prettier script to match with other packages in the lume repo, format
1 parent 6eab3a1 commit a339aed

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html xmlns="http://www.w3.org/1999/xhtml">
33
<head>
44
<script src="lib/kiwi.js"></script>

package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,12 @@
4444
"build": "tsc && tsc -t es6 --outDir tmp/es && rollup -c",
4545
"clean": "rimraf lib/ es/ tmp/",
4646
"test": "npm run lint && mocha test/main.cjs",
47-
"format": "prettier . --write",
47+
"format": "npm run prettier",
48+
"prettier": "prettier . --write",
49+
"lint": "prettier . --check",
4850
"// TODO cov script not currently collecting coverage information although it runs": "",
4951
"cov": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -R test/main.cjs",
5052
"doc": "jsdoc2md -f tmp/kiwi.js -m none -g none > docs/Kiwi.md && node scripts/docs-update-headings.js && prettier docs/Kiwi.md --write",
51-
"lint": "prettier . --check",
5253
"bench": "node bench/main.cjs",
5354
"version": "npm run clean && npm run build && npm test && npm run bench && git add .",
5455
"release:patch": "npm version patch -m 'v%s' && npm publish && git push --follow-tags",

src/maptype.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,10 @@ class Pair<T, U> {
137137
* @param first The first item of the pair.
138138
* @param second The second item of the pair.
139139
*/
140-
constructor(public first: T, public second: U) {}
140+
constructor(
141+
public first: T,
142+
public second: U,
143+
) {}
141144

142145
/**
143146
* Create a copy of the pair.

0 commit comments

Comments
 (0)