npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

baldrick-tsconfig-es2021

v0.5.0

Published

Shared basic Typescript config for ES2021

Downloads

13

Readme

baldrick-tsconfig-es2021

Shared basic TypeScript config for ES2021

This is not an official base. It should support Node.js 14 and above, but should provide ES2021 support for ES modules.

It includes:

  • allowSyntheticDefaultImports is activated (true) to provide backwards compatibility, Node.js allows you to import most CommonJS packages with a default import. This flag tells TypeScript that it's okay to use import on CommonJS modules (Sindre Sorhus)
  • declaration is activated (true) and generate .d.ts files for every TypeScript or JavaScript file inside your project.
  • esModuleInterop is activated (true) which should result in better support for import of dependencies regardless whether they are ES or commonjs.
  • forceConsistentCasingInFileNames is activated (true) and TypeScript will issue an error if a program tries to include a file by a casing different from the casing on disk.
  • moduleDetection is set to force which ensures that every non-declaration file is treated as a module.
  • newLine is set to LF (unix).
  • noEmitOnError is activated (true) and this will not emit compiler output files like JavaScript source code, source-maps or declarations if any errors were reported.
  • noFallthroughCasesInSwitch is activated (true) and you get report errors for fallthrough cases in switch statements.
  • noImplicitOverride is activated (true) and you can ensure that the sub-classes never go out of sync, by ensuring that functions which override include the keyword override.
  • noImplicitReturns is activated (true) and TypeScript will check all code paths in a function to ensure they return a value.
  • noPropertyAccessFromIndexSignature is activated (true) and will raise an error when the unknown field uses dot syntax instead of indexed syntax.
  • noUncheckedIndexedAccess is activated (true) and this will add undefined to any un-declared field in the type.
  • noUnusedLocals is activated (true) and you get report errors on unused local variables.
  • noUnusedParameters is activated (true) and you get report errors on unused parameters in functions.
  • resolveJsonModule is deactivated (false) as TypeScript does not support resolving JSON files by default.
  • skipLibCheck is activated (true) and skip type checking of declaration files.
  • strict is activated (true) and enables a wide range of type checking behavior that results in stronger guarantees of program correctness.
  • useDefineForClassFields is activated (true) and switches to the upcoming standard version of class fields runtime behavior.

Install

$ npm install --save-dev baldrick-tsconfig-es2021

Usage

tsconfig.json

{
	"extends": "baldrick-tsconfig-es2021"
}

Other

This project was strongly inspired by Sindre Sorhus tsconfig