Skip to content

Commit 047898b

Browse files
authored
Include prettier config (#106)
1 parent e3a2b65 commit 047898b

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-6
lines changed

.prettierrc

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"useTabs": true,
3+
"singleQuote": true,
4+
"trailingComma": "none",
5+
"semi": false,
6+
"printWidth": 100
7+
}

package.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
"scripts": {
1010
"build:module": "tsc",
1111
"build": "tsc && pkg -t node14-linux-x64,node14-windows-x64,node14-macos-x64 ./bin.js -o bls_x64",
12-
"build:arm": "tsc && pkg -t node14-linux-arm64,node14-windows-arm64,node14-macos-arm64 ./bin.js -o bls_arm64"
12+
"build:arm": "tsc && pkg -t node14-linux-arm64,node14-windows-arm64,node14-macos-arm64 ./bin.js -o bls_arm64",
13+
"format": "prettier --check .",
14+
"format:fix": "prettier --write ."
1315
},
1416
"files": [
1517
"bin.js",
@@ -56,6 +58,6 @@
5658
"@types/prompts": "^2.0.14",
5759
"@types/terminal-kit": "^1.34.1",
5860
"@types/yargs": "^17.0.15",
59-
"prettier": "^2.7.1"
61+
"prettier": "^3.0.1"
6062
}
6163
}

yarn.lock

+4-4
Original file line numberDiff line numberDiff line change
@@ -1609,10 +1609,10 @@ [email protected]:
16091609
tar-fs "^2.0.0"
16101610
tunnel-agent "^0.6.0"
16111611

1612-
prettier@^2.7.1:
1613-
version "2.7.1"
1614-
resolved "https://registry.npmjs.org/prettier/-/prettier-2.7.1.tgz"
1615-
integrity sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g==
1612+
prettier@^3.0.1:
1613+
version "3.0.1"
1614+
resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.0.1.tgz#65271fc9320ce4913c57747a70ce635b30beaa40"
1615+
integrity sha512-fcOWSnnpCrovBsmFZIGIy9UqK2FaI7Hqax+DIO0A9UxeVoY4iweyaFjS5TavZN97Hfehph0nhsZnjlVKzEQSrQ==
16161616

16171617
process-nextick-args@~2.0.0:
16181618
version "2.0.1"

0 commit comments

Comments
 (0)