GitShow/sindresorhus/tsconfig
sindresorhus

tsconfig

Shared TypeScript config for my projects

by sindresorhus
confignpm-packagetsconfigtypescript
Star on GitHubFork
377 stars32 forks8 contributorsQuiet · 9mo agoSince 2018v8.1.0MIT

Meet the team

See all 8 on GitHub →
sindresorhus
sindresorhus58 contributions
fregante
fregante7 contributions
EdJoPaTo
EdJoPaTo2 contributions
felixfbecker
felixfbecker1 contribution
Rokt33r
Rokt33r1 contribution
mgenware
mgenware1 contribution
zanminkian
zanminkian1 contribution
janriemer
janriemer1 contribution

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

4 of 6 standards met

Community profile →
71
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template

Recent PRs & issues

Quiet · 4 discussions · Last activity 9mo ago
See all on GitHub →
fregante
module: PreserveOpenIssue

https://www.typescriptlang.org/docs/handbook/release-notes/typescript-5-4.html#support-for-require-calls-in---moduleresolution-bundler-and---module-preserve I think this is the right config to finally get TS out of the way More info in https://github.com/microsoft/TypeScript/pull/56785

fregante · 9mo ago
fregante
Consider `allowImportingTsExtensions`OpenIssue

https://www.typescriptlang.org/tsconfig/#allowImportingTsExtensions Required for: Which is required by This is unrelated/unaffected by #29 I don't know what are the consequences of allowing imports though. Also XO currently enforces extensions:

fregante · 1y ago

Recent fixes

View closed PRs →
zckrs
Enable rewriteRelativeImportExtensions optionMergedPR

To stop import in typescript files https://www.typescriptlang.org/tsconfig/#rewriteRelativeImportExtensions

zckrs · 2mo ago
fregante
`verbatimModuleSyntax` conflicts with `@typescript-eslint/consistent-type-imports`ClosedIssue

is not enabled in this config, but I wanted to open an issue to document it in case you or anyone thinks about adding it. Given the comparison table with the lint rule in https://typescript-eslint.io/rules/consistent-type-imports/#comparison-with-importsnotusedasvalues--verbatimmodulesyntax (particularly the auto-fix ability) I think it's best to _not_ enable . Particularly noteworthy: Because there are some differences, using both this rule and verbatimModuleSyntax at the same time can lead to conflicting errors. As such we recommend that you only ever use one or the other -- never both.

fregante · 9mo ago
fregante
`resolveJsonModule: true`ClosedIssue

May be time? Import attributes are live: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import/with#browser_compatibility Node.js 20.10 (Release date: 2023-11-22) Chrome 123 (Release date: 2024-03-19) Safari 17.2 (Release date: 2023-12-11) Firefox 138 (Release date: 2025-04-29) Some useful info: https://www.typescriptlang.org/docs/handbook/modules/reference.html#the-module-compiler-option

fregante · 9mo ago
Structured data for AI agents

Repository: sindresorhus/tsconfig. Description: Shared TypeScript config for my projects Stars: 377, Forks: 32. License: MIT. Topics: config, npm-package, tsconfig, typescript. Latest release: v8.1.0 (9mo ago). Open PRs: 0, open issues: 4. Last activity: 9mo ago. Community health: 71%. Top contributors: sindresorhus, fregante, EdJoPaTo, felixfbecker, Rokt33r, mgenware, zanminkian, janriemer.

·@ofershap

Replace github.com with gitshow.dev