Licence
LGPL-3.0-only
Version
8.5.15
Deps
0
Size
11 kB
Vulns
0
Weekly
2.8K
@xylabs/tsconfig-dom
Typescript Base Config used throughout XY Labs TypeScript/JavaScript libraries and react projects
Install
Using npm:
npm install -D {{name}} @xylabs/tsconfig
Using yarn:
yarn add -D {{name}} @xylabs/tsconfig
Using pnpm:
pnpm add -D {{name}} @xylabs/tsconfig
Using bun:
bun add -D {{name}} @xylabs/tsconfig
Usage
Extend this config in your project's tsconfig.json:
{
"extends": "@xylabs/tsconfig-dom",
"compilerOptions": {
"outDir": "./dist"
},
"include": ["src"]
}
This extends @xylabs/tsconfig and adds DOM and DOM.Iterable to the lib array, making browser APIs like window, document, and DOM iterables available.
For React projects, use @xylabs/tsconfig-react which extends this config with JSX support.
License
See the LICENSE file for license rights and limitations (LGPL-3.0-only).