Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 1 addition & 11 deletions .github/workflows/formatting.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actionsx/prettier@v2
with:
args: --config "${{ github.workspace }}/.prettierrc.toml" --write "**/*.{js,mjs,cjs,jsx,ts,tsx}"
# Prettier has no diff view so we must make one ourselves
# https://github.com/prettier/prettier/issues/6885
- run: |
git diff
if [[ -n "$(git status --porcelain)" ]]; then
exit 1
fi
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Install dependencies
Expand Down
5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,8 @@ repos:
exclude_types:
- json
- javascript
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.1.0
hooks:
- id: prettier
files: ".*\\.(js|mjs|cjs|jsx|ts|tsx)$"
12 changes: 6 additions & 6 deletions extensions/wasm_bindgen/rules_js/test/hello_world_wasm_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ const main = async function (typ, dir) {
};

["bundler", "web", "deno", "nomodules", "nodejs"].forEach((typ) => {
main(typ, process.argv.length > 2 ? process.argv[2] : "").catch(function (
err,
) {
console.error(err);
process.exit(1);
});
main(typ, process.argv.length > 2 ? process.argv[2] : "").catch(
function (err) {
console.error(err);
process.exit(1);
},
);
});