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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@fundingpips/typescript-config

v2.1.2

Published

Shareable TypeScript configurations for FundingPips projects

Readme

@fundingpips/typescript-config

npm version CI License: MIT

Shareable TypeScript configurations for FundingPips projects. This package provides strict, self-contained TypeScript configurations optimized for different project types.

Features

  • Maximum Type Safety - Inlines strict compiler options for the highest level of type checking
  • 📦 Multiple Presets - Configurations for Next.js, React Native, Node.js, Vite, and libraries
  • 🎯 Consistent Standards - Unified settings across all FundingPips projects
  • Performance Optimized - Incremental builds and smart defaults
  • 🚀 Minimal Config - Works with project-local overrides only where TypeScript requires them

Installation

# npm
npm install --save-dev @fundingpips/typescript-config

# yarn
yarn add -D @fundingpips/typescript-config

# pnpm
pnpm add -D @fundingpips/typescript-config

Usage

Next.js Projects

{
  "extends": "@fundingpips/typescript-config/next"
}

React Native Projects

{
  "extends": "@fundingpips/typescript-config/react-native"
}

Node.js Projects (CommonJS)

{
  "extends": "@fundingpips/typescript-config/node"
}

Node.js Projects (ESM)

{
  "extends": "@fundingpips/typescript-config/node-esm"
}

Vite React Projects

{
  "extends": "@fundingpips/typescript-config/vite"
}

Library Projects

{
  "extends": "@fundingpips/typescript-config/library"
}

Base Configuration (Advanced)

For custom configurations, extend the base:

{
  "extends": "@fundingpips/typescript-config/base",
  "compilerOptions": {
    // Your custom options
  }
}

Available Configurations

| Configuration | Description | Use Case | | --------------- | -------------------- | ---------------------------------- | | /next | Next.js applications | SSR/SSG React apps with App Router | | /react-native | React Native apps | Mobile applications | | /node | Node.js CommonJS | Traditional Node.js services | | /node-esm | Node.js ES Modules | Modern Node.js with ESM | | /vite | Vite React apps | SPA React applications | | /library | Libraries | Publishable packages | | /base | Base configuration | Custom setups |

Features by Configuration

All Configurations Include

  • ✓ Strict type checking (via inlined strict options)
  • ✓ JSON module imports
  • ✓ ES module interop
  • ✓ Incremental compilation
  • ✓ Source maps

Configuration-Specific Features

Next.js (/next)

  • JSX preserve mode for Next.js processing
  • DOM library types
  • Next.js plugin support
  • Optimized for App Router
  • Inherits the shared ES2022 target

React Native (/react-native)

  • React Native JSX transform
  • Mobile-optimized library selection
  • Jest types included
  • Support for .monicon files

Node.js (/node, /node-esm)

  • Node.js type definitions
  • Compiled output to dist/
  • Declaration files generation
  • CommonJS or ESM modules

Vite (/vite)

  • Vite client types
  • React JSX runtime
  • Hot module replacement support
  • Build optimization settings

Library (/library)

  • Declaration file generation
  • Multiple module format support
  • Stripped internal APIs
  • Composite project support

Strictness Settings

All configurations include the strictest TypeScript settings for maximum type safety:

// Core strict settings
strict: true;
noImplicitAny: true;
strictNullChecks: true;
strictFunctionTypes: true;
strictBindCallApply: true;
strictPropertyInitialization: true;
noImplicitThis: true;
alwaysStrict: true;

// Additional strictness
allowUnusedLabels: false;
allowUnreachableCode: false;
exactOptionalPropertyTypes: true;
noFallthroughCasesInSwitch: true;
noImplicitOverride: true;
noImplicitReturns: true;
noPropertyAccessFromIndexSignature: true;
noUncheckedIndexedAccess: true;
noUnusedLocals: true;
noUnusedParameters: true;

Path Aliases

Path aliases are intentionally not configured by default. They encode a project layout and import convention, so they belong in the consumer project's tsconfig.json.

If a project uses @/* for its local src directory, declare it explicitly:

{
  "extends": "@fundingpips/typescript-config/next",
  "compilerOptions": {
    "paths": {
      "@/*": ["${configDir}/src/*"]
    }
  }
}

Migration Guide

From Custom tsconfig

  1. Install the package:
pnpm add -D @fundingpips/typescript-config
  1. Update your tsconfig.json:
{
  "extends": "@fundingpips/typescript-config/next",
  "compilerOptions": {
    // Only add overrides if absolutely necessary
  }
}
  1. Remove redundant options that are now inherited

Common Overrides

If you need to override settings:

{
  "extends": "@fundingpips/typescript-config/next",
  "compilerOptions": {
    // Allow JavaScript files (not recommended)
    "allowJs": true,

    // Project-local import aliases
    "paths": {
      "@/*": ["${configDir}/src/*"],
      "@components/*": ["${configDir}/src/components/*"]
    }
  }
}

Troubleshooting

No inputs were found

This package does not ship include or exclude values. TypeScript resolves those paths relative to the file that declares them, so shared configs cannot define them safely. Add project-local values in your tsconfig.json:

{
  "extends": "@fundingpips/typescript-config/next",
  "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
  "exclude": ["node_modules"]
}

"Cannot find module" errors

This package does not define import aliases. Declare aliases in the consumer tsconfig.json:

{
  "extends": "@fundingpips/typescript-config/next",
  "compilerOptions": {
    "paths": {
      "@/*": ["${configDir}/src/*"],
      "@components/*": ["${configDir}/src/components/*"]
    }
  }
}

React Native specific issues

For React Native projects with custom file extensions:

{
  "extends": "@fundingpips/typescript-config/react-native",
  "include": ["src", "index.js", "custom.d.ts"]
}

Node.js module resolution

For Node.js projects, ensure your package.json has the correct type:

// For ESM
{
  "type": "module"
}

// For CommonJS (default)
{
  "type": "commonjs"
}

Dependencies

This package is self-contained and does not depend on external tsconfig base packages at runtime. The shared presets inline the strict compiler options directly so consumers do not need resolver support for nested extends.

Development uses:

  • typescript - Validates all shipped configurations
  • oxfmt - Formats JSON, Markdown, and JavaScript/TypeScript config files
  • husky and lint-staged - Run formatting on staged files

Development

Testing

# Validate all configurations
pnpm test

# Validate a specific configuration
pnpm test:config next

# Format code
pnpm format

# Check formatting
pnpm format:check

Project Structure

├── bases/              # TypeScript configuration presets
│   ├── base.json      # Base configuration (all others extend this)
│   ├── next.json      # Next.js configuration
│   ├── react-native.json
│   ├── node.json
│   ├── node-esm.json
│   ├── vite.json
│   └── library.json
├── scripts/           # Validation scripts
│   ├── validate-all.sh    # Validates all configs
│   └── validate-config.sh # Validates single config
└── .github/workflows/ # CI/CD pipelines
    ├── ci.yml        # Test on push/PR
    └── publish.yml   # Publish to npm on release

Contributing

Contributions are welcome! Please read our contributing guidelines before submitting PRs.

License

MIT © FundingPips

Support

For issues and questions, please open an issue.


Made with ❤️ by the FundingPips team