-
Notifications
You must be signed in to change notification settings - Fork 23
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
Refactoring common tsconfig #9507
Changes from 3 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 |
---|---|---|
@@ -1,25 +1,9 @@ | ||
{ | ||
// You can see the full details at https://github.com/sindresorhus/tsconfig/blob/main/tsconfig.json | ||
// Note: `strict: true` enables many flags that aren’t explicitly listed in that file | ||
"extends": "@sindresorhus/tsconfig", | ||
"extends": "../../tsconfig.base.json", | ||
"compilerOptions": { | ||
"sourceMap": true, | ||
"module": "esnext", | ||
"target": "es2023", | ||
"moduleResolution": "bundler", | ||
"resolveJsonModule": true, | ||
"baseUrl": ".", | ||
"outDir": null, | ||
"declaration": false, | ||
|
||
// TODO: Drop these lines to make TS stricter https://github.com/pixiebrix/pixiebrix-extension/issues/775 | ||
"strictFunctionTypes": false, | ||
"noPropertyAccessFromIndexSignature": false, | ||
"noImplicitReturns": false, | ||
"noUnusedParameters": false, | ||
"paths": { | ||
"@/*": ["src/*"] | ||
} | ||
}, | ||
"exclude": ["node_modules"] | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
// You can see the full details at https://github.com/sindresorhus/tsconfig/blob/main/tsconfig.json | ||
// Note: `strict: true` enables many flags that aren’t explicitly listed in that file | ||
"extends": "@sindresorhus/tsconfig", | ||
"compilerOptions": { | ||
"sourceMap": true, | ||
"module": "esnext", | ||
"target": "es2023", | ||
"moduleResolution": "bundler", | ||
"resolveJsonModule": true, | ||
"baseUrl": ".", | ||
"outDir": null, | ||
"declaration": false, | ||
|
||
// TODO: Drop these lines to make TS stricter https://github.com/pixiebrix/pixiebrix-extension/issues/775 | ||
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. NIT: we should consider making some of these stricter in the base config (would require discussion of style) 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. They've been on my radar for post strictNullChecks |
||
"strictFunctionTypes": false, | ||
"noPropertyAccessFromIndexSignature": false, | ||
"noImplicitReturns": false, | ||
"noUnusedParameters": false | ||
}, | ||
"exclude": ["node_modules"] | ||
} |
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.
We might want to consider just copying the relevant config values to make them more explicit. We override a fair bit of these anyways