Skip to content

Commit

Permalink
web: Check TS types with 'lint'
Browse files Browse the repository at this point in the history
  • Loading branch information
Dinnerbone committed May 28, 2024
1 parent c7566d5 commit 885c443
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"demo": "npm run preview --workspace ruffle-demo",
"test": "npm test --workspaces --if-present",
"docs": "npm run docs --workspaces --if-present",
"lint": "eslint . && stylelint **.css",
"lint": "npm run checkTypes --workspaces --if-present && eslint . && stylelint **.css",
"format": "eslint . --fix && stylelint --fix **.css",
"version-seal": "cross-env ENABLE_VERSION_SEAL=true node packages/core/tools/set_version.js"
}
Expand Down
3 changes: 2 additions & 1 deletion web/packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"build": "tsc --build --force",
"postbuild": "node tools/set_version.js && node tools/bundle_texts.js",
"docs": "typedoc",
"test": "cross-env TS_NODE_COMPILER_OPTIONS={\\\"module\\\":\\\"commonjs\\\"} mocha"
"test": "cross-env TS_NODE_COMPILER_OPTIONS={\\\"module\\\":\\\"commonjs\\\"} mocha",
"checkTypes": "tsc --noemit"
},
"dependencies": {
"jszip": "^3.10.1",
Expand Down
3 changes: 2 additions & 1 deletion web/packages/demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"dev": "vite",
"build": "tsc && vite build",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview"
"preview": "vite preview",
"checkTypes": "tsc --noemit"
},
"dependencies": {
"react": "^18.3.1",
Expand Down
3 changes: 2 additions & 1 deletion web/packages/extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"build": "tsc -p jsconfig.json && npm run build:generic && npm run build:firefox",
"build:generic": "webpack --env generic && node tools/inject_plugin_polyfill.js && node tools/zip.js dist/ruffle_extension.zip",
"build:firefox": "webpack --env firefox && node tools/inject_plugin_polyfill.js && node tools/zip.js dist/firefox_unsigned.xpi && npm run sign-firefox",
"sign-firefox": "node tools/submit_xpi.js dist/firefox_unsigned.xpi ../../../reproducible-source.zip"
"sign-firefox": "node tools/submit_xpi.js dist/firefox_unsigned.xpi ../../../reproducible-source.zip",
"checkTypes": "tsc --noemit"
},
"dependencies": {
"ruffle-core": "^0.1.0"
Expand Down
3 changes: 2 additions & 1 deletion web/packages/selfhosted/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"scripts": {
"build": "webpack",
"serve": "webpack-dev-server",
"test": "wdio run wdio.conf.ts"
"test": "wdio run wdio.conf.ts",
"checkTypes": "tsc --noemit"
},
"dependencies": {
"ruffle-core": "^0.1.0"
Expand Down

0 comments on commit 885c443

Please sign in to comment.