Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ts-config): add multi-config structure #281

Merged
merged 7 commits into from
Feb 2, 2022

Conversation

favna
Copy link
Member

@favna favna commented Feb 2, 2022

There are now several new subconfigs:

  • extra-strict which adds:
{
  "allowUnreachableCode": false,
  "allowUnusedLabels": false,
  "exactOptionalPropertyTypes": false,
  "noImplicitOverride": true
}
  • without-decorators which adds:
{
  "emitDecoratorMetadata": false,
  "experimentalDecorators": false
}
  • extra-strict-without-decorators which combines the above two.
    The example usage for extra-strict is:
{
  "extends": "@sapphire/ts-config/extra-strict"
}

@favna favna force-pushed the feat/tsconfig-multiple-configs branch from 12f4a8c to cca3b40 Compare February 2, 2022 13:38
There are now several new subconfigs:

- `extra-strict` which adds:
```json
{
  "allowUnreachableCode": false,
  "allowUnusedLabels": false,
  "exactOptionalPropertyTypes": false,
  "noImplicitOverride": true
}
```
- `without-decorators` which adds:
```json
{
  "emitDecoratorMetadata": false,
  "experimentalDecorators": false
}
```
- `extra-strict-without-decorators` which combines the above two.
The example usage for `extra-strict` is:
```json
{
  "extends": "@sapphire/ts-config/extra-strict"
}
```
@favna favna force-pushed the feat/tsconfig-multiple-configs branch from caa6388 to d6c00b7 Compare February 2, 2022 13:46
vladfrangu
vladfrangu previously approved these changes Feb 2, 2022
@favna favna merged commit b5191d7 into main Feb 2, 2022
@favna favna deleted the feat/tsconfig-multiple-configs branch February 2, 2022 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants