Restore ESLint and Prettier auto-formatting and CI linting (#1457)

* Restore ESLint and Prettier autoformatting

* Fix formatting and lints in web files

* Hacky fix to eslint crash

* Fix remaining lints

* Add lint-fix script

---------

Co-authored-by: 0hypercube <0hypercube@gmail.com>
This commit is contained in:
Keavon Chambers
2023-11-16 13:12:47 -08:00
committed by GitHub
co-authored by 0hypercube
parent 9784d31edb
commit a6ca43bb2d
63 changed files with 5869 additions and 351 deletions
+12 -1
View File
@@ -8,6 +8,8 @@
"scripts": {
"start": "npm run build-wasm && concurrently -k -n \"VITE,RUST\" \"vite\" \"npm run watch:wasm\" || (npm run print-building-help && exit 1)",
"profiling": "npm run build-wasm-profiling && concurrently -k -n \"VITE,RUST\" \"vite\" \"npm run watch:wasm-profiling\" || (npm run print-building-help && exit 1)",
"lint": "eslint .",
"lint-fix": "eslint . --fix",
"build": "npm run build-wasm-prod && vite build || (npm run print-building-help && exit 1)",
"build-wasm": "wasm-pack build ./wasm --dev --target=web",
"build-wasm-profiling": "wasm-pack build ./wasm --profiling --target=web",
@@ -29,14 +31,23 @@
"devDependencies": {
"@sveltejs/vite-plugin-svelte": "^2.4.2",
"@types/node": "^18.16.2",
"@typescript-eslint/eslint-plugin": "^6.11.0",
"@typescript-eslint/parser": "^6.11.0",
"buffer": "^5.7.1",
"concurrently": "^8.0.1",
"eslint-config-prettier": "^9.0.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-prettier": "^5.0.1",
"eslint-plugin-svelte": "^2.35.0",
"postcss": "^8.4.23",
"prettier": "^3.1.0",
"prettier-plugin-svelte": "^3.1.0",
"process": "^0.11.10",
"rollup-plugin-license": "^3.2.0",
"sass": "^1.62.1",
"svelte-preprocess": "^5.0.3",
"svelte": "^3.58.0",
"svelte-preprocess": "^5.0.3",
"ts-node": "^10.9.1",
"typescript": "^5.0.4",
"vite": "^4.4.5"