@aetherjs/ts-config
Version:
Standard Typescript config for Aether-Development projects.
80 lines (61 loc) • 1.94 kB
Markdown
<div align="center">
<img src="https://raw.githubusercontent.com/aether-development/.github/d75ee364dfd4683e01baedc97256f536bb40f0a9/assets/AetherDevelopmentLogo.png" width="546" alt="aether-framework" />
# @aetherjs/ts-config
**Typescript configuration for <u>Aether Development</u> projects.**
[](https://github.com/aether-development/utilities/blob/main/LICENSE.md)
[](https://www.npmjs.com/package/@aetherjs/ts-config)
</div>
## Installation
Install the package with one of the following commands below.
```yaml
# For NPM
npm install --save-dev @aetherjs/ts-config
# For PNPM
pnpm add -D @aetherjs/ts-config
# For YARN
yarn add -D @aetherjs/ts-config
# For Bun
bun add -D @aetherjs/ts-config
```
## Usage
Add the following to your `tsconfig.json` file.
```json
{
"extends": "@aetherjs/ts-config"
}
```
_Below is a copy of the base configuration for easy viewing._
```json
{
"compileOnSave": true,
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"alwaysStrict": true,
"declaration": true,
"declarationMap": true,
"esModuleInterop": true,
"importHelpers": false,
"incremental": true,
"lib": ["esnext"],
"module": "Node16",
"moduleResolution": "Node16",
"newLine": "lf",
"noEmitHelpers": false,
"noFallthroughCasesInSwitch": true,
"noImplicitReturns": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"preserveConstEnums": true,
"pretty": true,
"removeComments": false,
"resolveJsonModule": true,
"sourceMap": true,
"strict": true,
"target": "ES2020",
"useDefineForClassFields": true,
"types": ["bun-types"]
}
}
```
---
_This package was inspired by [@sapphire/ts-config](https://github.com/sapphiredev/utilities/tree/main/packages/ts-config)_