Socket
Book a DemoInstallSign in
Socket

@aristobyte-ui/typescript-config

Package Overview
Dependencies
Maintainers
1
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aristobyte-ui/typescript-config

Shared TypeScript config presets used across AristoByteUI platform and packages.

latest
Source
npmnpm
Version
1.0.70
Version published
Weekly downloads
2K
208.33%
Maintainers
1
Weekly downloads
 
Created
Source

@aristobyte-ui/typescript-config

TypeScript TurboRepo ESLint License AristoByte UI Node.js >=20.17.0 Yarn >=1.22 NPM >=10.8

Centralized TypeScript configuration presets for the AristoByte UI ecosystem.
Opinionated, consistent, and production-ready.

🚀 Overview

@aristobyte-ui/typescript-config provides shared TypeScript configurations that enforce strict standards across all AristoByte UI packages.

This ensures:

  • 🔒 Consistency across the monorepo ecosystem.
  • Developer Velocity by removing redundant boilerplate.
  • 📦 Scalability with unified upgrades and evolving presets.
  • 🧹 Clean output with correct declaration mapping for distributable packages.

📦 Installation

# Install via Yarn
yarn add -D @aristobyte-ui/typescript-config

# Or via npm
npm install -D @aristobyte-ui/typescript-config

# Or via pnpm
pnpm add -D @aristobyte-ui/typescript-config

🛠 Usage

In your tsconfig.json, extend one of the provided presets.

Base configuration (for libraries):

{
  "extends": "@aristobyte-ui/typescript-config/base",
  "compilerOptions": {
    "outDir": "dist",
    "declarationDir": "dist/types"
  },
  "include": ["src", "index.ts"]
}

React packages:

{
  "extends": "@aristobyte-ui/typescript-config/react",
  "include": ["components", "index.ts"],
  "exclude": ["dist", "node_modules"]
}

Next.js projects:

{
  "extends": "@aristobyte-ui/typescript-config/next",
  "include": ["app", "pages", "components"],
  "exclude": ["dist", "node_modules"]
}

Package-ready builds (library publishing):

{
  "extends": "@aristobyte-ui/typescript-config/package",
  "include": ["src"],
  "exclude": ["dist", "node_modules"]
}

📂 Presets Available

  • base → Strict, modern TypeScript defaults for libraries.
  • react → Extends base with React + JSX optimizations.
  • next → Opinionated config optimized for Next.js projects.
  • package → Publishing-friendly output with declarations and ESNext module resolution.

🔧 Example in a Package

package.json:

{
  "name": "@aristobyte-ui/button",
  "version": "1.0.0",
  "scripts": {
    "build": "tsup"
  },
  "devDependencies": {
    "@aristobyte-ui/typescript-config": "*",
    "typescript": "^5.8.3"
  }
}

tsconfig.json:

{
  "extends": "@aristobyte-ui/typescript-config/react",
  "include": ["components", "index.ts"]
}

📊 Why This Matters

FeatureBenefit
strict: trueEliminates runtime edge cases early
noUncheckedIndexedAccess: trueSafer array/object access
declaration: trueEnsures correct .d.ts output
jsx: react-jsxOptimized for React 17+ and beyond
incrementalFaster rebuilds in monorepo workflows
moduleResolution: NodeNextModern interoperability for ESM/CJS

🏆 Philosophy

At AristoByte UI, we believe configuration should empower, not obstruct.
This package encapsulates our best practices into ready-to-consume presets that evolve alongside the ecosystem.

📜 License

MIT © AristoByte

🛡 Shields Showcase

Keywords

typescript

FAQs

Package last updated on 12 Sep 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts