@xylabs/tsconfig-react
v7.7.15
Published
Typescript Base Config used throughout XY Labs TypeScript/JavaScript libraries and react projects
Readme
@xylabs/tsconfig-react
Typescript Base Config used throughout XY Labs TypeScript/JavaScript libraries and react projects
Install
Using npm:
npm install -D {{name}} @xylabs/tsconfig-dom @xylabs/tsconfigUsing yarn:
yarn add -D {{name}} @xylabs/tsconfig-dom @xylabs/tsconfigUsing pnpm:
pnpm add -D {{name}} @xylabs/tsconfig-dom @xylabs/tsconfigUsage
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).
