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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@alleyinteractive/tsconfig

v0.1.1

Published

Shared Typescript Configuration

Downloads

649

Readme

Alley Typescript Configuration

A preset of a Typescript configuration that you can use in your project's tsconfig.json file.

Installation

$ npm install @alleyinteractive/tsconfig --save-dev

Usage

If you've installed @alleyinteractive/tsconfig locally within your project, extend it from your project's tsconfig.json file:

{
  "extends": "@alleyinteractive/tsconfig/base.json"
}

The configuration can be extended with any additional option, including overriding the base configuration. Out of the box, the configuration includes some common best practices for Typescript projects and projects in the monorepo, including:

  • allowJs: true - Allows JavaScript files to be included in the project by default.
  • declaration: true - Generates .d.ts files for each .ts file.
  • declarationMap: true - Generates .d.ts.map files for each .d.ts file.
  • esModuleInterop: true - Allows interoperability between CommonJS and ES modules.
  • forceConsistentCasingInFileNames: true - Ensures that all file names are consistent.
  • inlineSources: true - Includes the source code in the source map.
  • isolatedModules: true - Ensures that each file can be safely transpiled without relying on other imports.
  • jsx: react-jsx - Emit .js files with the JSX changed to _jsx calls
  • module: esnext - See module for more information.
  • moduleResolution: node - See moduleResolution for more information.
  • noImplicitAny: true - Ensures that all variables have an explicit type.
  • noUnusedLocals: true - Ensures that all variables are used.
  • noUnusedParameters: true - Ensures that all parameters are used.
  • outDir: build - The output directory for the transpiled files.
  • preserveWatchOutput: true - Ensures that the output is cleared before each build.
  • resolveJsonModule: true - Allows importing JSON files as modules.
  • skipLibCheck: true - Skips type checking of .d.ts files.
  • sourceMap: true - Generates source maps for the transpiled files.
  • strict: true - Enables all strict type checking options.
  • target: esnext - See target for more information.

Read more about the TSConfig.json file here.

Extending the Configuration

You can extend the configuration with any additional options. For example, if you want to disallow JavaScript files in your project, you can add the following to your tsconfig.json file:

{
  "extends": "@alleyinteractive/tsconfig/base.json",
  "compilerOptions": {
	"allowJs": false
  }
}

Changelog

0.1.0 – Initial release

Development Process

This package is developed as part of the Alley Scripts project on GitHub. The project is organized as a monorepo using npm workspaces and individual packages are published to npm under the @alleyinteractive organization.

Contributing

You can contribute to this project in several ways:

Releases

This project adheres to the Semantic Versioning 2.0.0 specification. All major, minor, and patch releases are published to npm and tagged in the repo. We will maintain separate branches for each minor release (e.g. block-editor-tools/0.1) to manage patch releases while keeping future development in the main branch.

Maintainers

This project is actively maintained by Alley Interactive. Like what you see? Come work with us.

Alley logo