-
-
Notifications
You must be signed in to change notification settings - Fork 295
Add lint:tsc package script #9652
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -34,6 +34,7 @@ scripts/coverage | |
| !.yarn/versions | ||
|
|
||
| # typescript | ||
| **/.tsc-lint-cache/ | ||
| packages/*/*.tsbuildinfo | ||
|
|
||
| # AI | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| { | ||
| "extends": ["./tsconfig.json", "../../tsconfig.packages.lint.json"], | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These per-package config files work a bit differently than the per-package |
||
| "compilerOptions": { | ||
| "outDir": "./.tsc-lint-cache", | ||
| "tsBuildInfoFile": "./.tsc-lint-cache/tsconfig.tsbuildinfo" | ||
| }, | ||
| "references": [ | ||
| { | ||
| "path": "../messenger/tsconfig.lint.json" | ||
| } | ||
| ] | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| { | ||
| "extends": ["./tsconfig.json", "../../tsconfig.packages.lint.json"], | ||
| "compilerOptions": { | ||
| "outDir": "./.tsc-lint-cache", | ||
| "tsBuildInfoFile": "./.tsc-lint-cache/tsconfig.tsbuildinfo" | ||
| }, | ||
| "references": [] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| { | ||
| "extends": ["./tsconfig.json", "../../tsconfig.packages.lint.json"], | ||
| "compilerOptions": { | ||
| "outDir": "./.tsc-lint-cache", | ||
| "tsBuildInfoFile": "./.tsc-lint-cache/tsconfig.tsbuildinfo" | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| { | ||
| "extends": ["./tsconfig.json", "../../tsconfig.packages.lint.json"], | ||
| "compilerOptions": { | ||
| "outDir": "./.tsc-lint-cache", | ||
| "tsBuildInfoFile": "./.tsc-lint-cache/tsconfig.tsbuildinfo" | ||
| }, | ||
| "references": [] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -44,7 +44,7 @@ describe('create-package/cli', () => { | |
| beforeEach(() => { | ||
| // yargs calls process.exit() with 1 on failure and sometimes 0 on success. | ||
| // We have to intercept it. | ||
| jest.spyOn(process, 'exit').mockImplementation((code?: number) => { | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixing existing type error in this file, which only showed up in my editor. |
||
| jest.spyOn(process, 'exit').mockImplementation((code) => { | ||
| if (code === 1) { | ||
| throw new Error('exit: 1'); | ||
| } else { | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
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.
In typechecking this file
tsctold me that it interpretedknipas an ESM-only module but it interpreted this file as CommonJS. Renaming this file cleared the type error (although it did mean I had to update how we callknipinpackage.json, becauseknipwon't look forknip.config.mtsby default).