-
Notifications
You must be signed in to change notification settings - Fork 7.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(typescript): Use consistent typescript configs - N8N-4552 #4049
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Builds fine, runs fine, only minor comments.
-
Let's remove all tsx references?
"src/**/*.tsx"
"tests/**/*.tsx",
, etc. -
useUnknownInCatchVariables
Comment to enable in future? -
Settings like
strictNullChecks
,noImplicitAny
, etc. are part ofstrict
, which is enabled everywhere except cli. Maybe a comment to remove these settings that are part ofstrict
once we havestrict
all over? -
If we only need
emitDecoratorMetadata
andexperimentalDecorators
for TypeORM and for your router refactorings in cli, should we set them there only? -
"outDir": "dist"
is repeated in all packages. This is not inheritable?
Ideally if @alexgrozav can check the tsconfig for the FE packages.
0ec10d5
to
4047c67
Compare
Done ✔️
enabled it globally, and disabled it on projects that needed it. So now the flag is under a
I tried moving those to the
Done ✔️
unfortunately not. |
4047c67
to
ff85b07
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rebuilt, retested, all good.
-
Do we need to build the tests? If I remove them from tsconfig, the test command runs fine, maybe ts-jest transpiles them on the fly.
-
When saving the tsconfigs locally, they are getting autoformatted with Prettier. If you can please format them and set up the extension
dangmai.workspace-default-settings
so your editor uses.vscode/settings.default.json
to do this automatically in future.
Let's wait for Alex but otherwise LGTM. Thanks for cleaning this up.
exactly,
I'll send another PR where I enable prettier & prettier-eslint on everything. Will reformat all JSON files in there as well.
|
Perfect, let's remove them all then from tsconfigs, to reduce build time and published package size. |
ff85b07
to
d521ac2
Compare
done. also, ran prettier on all the tsconfigs. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
d521ac2
to
bbd1d64
Compare
make all packages inherit tsconfig from the root tsconfig skips building tests. reformat all tsconfigs with prettier.
bbd1d64
to
0056f79
Compare
Got released with |
…#4049) fix(typescript): Use consistent typescript configs make all packages inherit tsconfig from the root tsconfig skips building tests. reformat all tsconfigs with prettier.
make all packages inherit tsconfig from the root tsconfig.
Ticket: N8N-4537