Should I run tsc after oxlint?
#19571
-
|
There are some scripts from my {
"scripts": {
"dev": "rsbuild dev",
"test": "rstest",
"check:format": "oxfmt --check",
"check:lint": "oxlint --type-aware --type-check",
"check:types": "tsc",
"check:style": "stylelint \"./src/**/*.css\" \"./src/styles/**/*.css\"",
"check": "run-s check:* test",
"build": "rsbuild build",
"build:prod": "run-s build sentry:*",
"deploy": "run-s check build",
"deploy:prod": "run-s check build:prod",
"sentry:inject": "sentry-cli sourcemaps inject ./dist --quiet",
"sentry:upload": "sentry-cli sourcemaps upload ./dist --silent",
"knip": "knip",
"rsdoctor": "rsbuild build --env-mode rsdoctor",
"preview": "rsbuild preview"
},
} |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
The answer is it depends! I can se that you're using |
Beta Was this translation helpful? Give feedback.
The answer is it depends!
I can se that you're using
--type-checkand--type-aware- we perform all the same sort of checks that tsc will be doing, so running tsc is unceccessary. that said, if you're inside a monorepo, and are relying on the emitted-output of tsc, it's still necessary to run it!