sindresorhus

tsconfig

Shared TypeScript config for my projects

by sindresorhus

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 11mo ago
See all on GitHub →
fregante

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 · 11mo ago
fregante

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
fregante

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 · 11mo ago
fregante

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 · 11mo 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 (11mo ago). Open PRs: 0, open issues: 4. Last activity: 11mo ago. Community health: 71%. Top contributors: sindresorhus, fregante, EdJoPaTo, felixfbecker, Rokt33r, mgenware, zanminkian, janriemer.