npm.io
8.5.15 • Published 11h ago

@xylabs/tsconfig-react

Licence
LGPL-3.0-only
Version
8.5.15
Deps
0
Size
11 kB
Vulns
0
Weekly
2.3K

logo

@xylabs/tsconfig-react

npm license

Typescript Base Config used throughout XY Labs TypeScript/JavaScript libraries and react projects

Install

Using npm:

npm install -D {{name}} @xylabs/tsconfig-dom @xylabs/tsconfig

Using yarn:

yarn add -D {{name}} @xylabs/tsconfig-dom @xylabs/tsconfig

Using pnpm:

pnpm add -D {{name}} @xylabs/tsconfig-dom @xylabs/tsconfig

Using bun:

bun add -D {{name}} @xylabs/tsconfig-dom @xylabs/tsconfig

Usage

Extend this config in your project's tsconfig.json:

{
  "extends": "@xylabs/tsconfig-react",
  "compilerOptions": {
    "outDir": "./dist"
  },
  "include": ["src"]
}

This extends @xylabs/tsconfig-dom and adds "jsx": "react-jsx", enabling React 18+ JSX transform without needing to import React in every file.

License

See the LICENSE file for license rights and limitations (LGPL-3.0-only).

Credits

Made with and by XY Labs

Keywords