diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..05dbccf --- /dev/null +++ b/.prettierrc @@ -0,0 +1,7 @@ +{ + "useTabs": true, + "singleQuote": true, + "trailingComma": "none", + "semi": false, + "printWidth": 100 +} diff --git a/package.json b/package.json index a3072a4..9e09fc1 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,9 @@ "scripts": { "build:module": "tsc", "build": "tsc && pkg -t node14-linux-x64,node14-windows-x64,node14-macos-x64 ./bin.js -o bls_x64", - "build:arm": "tsc && pkg -t node14-linux-arm64,node14-windows-arm64,node14-macos-arm64 ./bin.js -o bls_arm64" + "build:arm": "tsc && pkg -t node14-linux-arm64,node14-windows-arm64,node14-macos-arm64 ./bin.js -o bls_arm64", + "format": "prettier --check .", + "format:fix": "prettier --write ." }, "files": [ "bin.js", @@ -56,6 +58,6 @@ "@types/prompts": "^2.0.14", "@types/terminal-kit": "^1.34.1", "@types/yargs": "^17.0.15", - "prettier": "^2.7.1" + "prettier": "^3.0.1" } } diff --git a/yarn.lock b/yarn.lock index e4ec587..3fea248 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1609,10 +1609,10 @@ prebuild-install@6.1.4: tar-fs "^2.0.0" tunnel-agent "^0.6.0" -prettier@^2.7.1: - version "2.7.1" - resolved "https://registry.npmjs.org/prettier/-/prettier-2.7.1.tgz" - integrity sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g== +prettier@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.0.1.tgz#65271fc9320ce4913c57747a70ce635b30beaa40" + integrity sha512-fcOWSnnpCrovBsmFZIGIy9UqK2FaI7Hqax+DIO0A9UxeVoY4iweyaFjS5TavZN97Hfehph0nhsZnjlVKzEQSrQ== process-nextick-args@~2.0.0: version "2.0.1"