Skip to content

Commit a443747

Browse files
committed
migrate prettier into pre-commit
1 parent b4c56a1 commit a443747

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,8 @@ repos:
3737
exclude_types:
3838
- json
3939
- javascript
40+
- repo: https://github.com/pre-commit/mirrors-prettier
41+
rev: v3.1.0
42+
hooks:
43+
- id: prettier
44+
files: ".*\\.(js|mjs|cjs|jsx|ts|tsx)$"

extensions/wasm_bindgen/rules_js/test/hello_world_wasm_test.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ const main = async function (typ, dir) {
2121
};
2222

2323
["bundler", "web", "deno", "nomodules", "nodejs"].forEach((typ) => {
24-
main(typ, process.argv.length > 2 ? process.argv[2] : "").catch(function (
25-
err,
26-
) {
27-
console.error(err);
28-
process.exit(1);
29-
});
24+
main(typ, process.argv.length > 2 ? process.argv[2] : "").catch(
25+
function (err) {
26+
console.error(err);
27+
process.exit(1);
28+
},
29+
);
3030
});

0 commit comments

Comments
 (0)