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
2 changes: 1 addition & 1 deletion .copier-answers.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Changes here will be overwritten by Copier
_commit: 84508d6
_commit: ebda788
_src_path: https://github.com/python-project-templates/base.git
add_docs: true
add_extension: cppjswasm
Expand Down
3 changes: 0 additions & 3 deletions .vscode/settings.json

This file was deleted.

2 changes: 1 addition & 1 deletion docs/wiki/contribute/Build-from-Source.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ make build
| Python | `ruff` | `ruff` | Style |
| Python | `ruff` | `ruff` | Imports |
| C++ | `clang-format` | `clang-format` | Style |
| JavaScript | `prettier` | `prettier` | Style |
| JavaScript | `oxlint` | `oxfmt` | Style |
| Markdown | `mdformat` | `mdformat` | Style |
| Markdown | `codespell` | | Spelling |

Expand Down
5 changes: 5 additions & 0 deletions js/.oxfmtrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"$schema": "./node_modules/oxfmt/configuration_schema.json",
"printWidth": 80,
"sortPackageJson": false
}
11 changes: 11 additions & 0 deletions js/.oxlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"env": {
"browser": true,
"es6": true,
"node": true
},
"rules": {
"unicorn/no-empty-file": "off"
}
}
7 changes: 4 additions & 3 deletions js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@
"build": "npm-run-all build:cpp build:prod",
"clean": "rm -rf dist lib playwright-report ../python_template_cppjswasm/extension",
"dev": "npm-run-all -p start watch",
"lint:js": "prettier --check \"src/**/*.{js,ts,jsx,tsx,css}\" \"tests/**/*.{js,ts,jsx,tsx}\" \"*.mjs\" \"*.json\"",
"lint:js": "oxlint . && oxfmt --check \"src/**/*.{js,ts,jsx,tsx,css}\" \"tests/**/*.{js,ts,jsx,tsx}\" \"*.mjs\" \"*.json\"",
"lint:cpp": "clang-format --dry-run -Werror -style=file:../.clang-format src/cpp/*.cpp",
"lint": "npm-run-all lint:*",
"fix:js": "prettier --write \"src/**/*.{js,ts,jsx,tsx,css}\" \"tests/**/*.{js,ts,jsx,tsx}\" \"*.mjs\" \"*.json\"",
"fix:js": "oxlint --fix . && oxfmt --write \"src/**/*.{js,ts,jsx,tsx,css}\" \"tests/**/*.{js,ts,jsx,tsx}\" \"*.mjs\" \"*.json\"",
"fix:cpp": "clang-format -i -style=file:../.clang-format src/cpp/*.cpp",
"fix": "npm-run-all fix:*",
"preinstall": "npx only-allow pnpm",
Expand All @@ -55,7 +55,8 @@
"http-server": "^14.1.1",
"nodemon": "^3.1.10",
"npm-run-all": "^4.1.5",
"prettier": "^3.9.6",
"oxfmt": "^0.63.0",
"oxlint": "^1.78.0",
"typescript": "^7.0.2"
}
}
Loading
Loading