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

Anticipate TypeScript v5 changes #161

Merged
merged 5 commits into from
Mar 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
116 changes: 18 additions & 98 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,20 +104,6 @@ Add to your `tsconfig.json`:
```json
"extends": "@tsconfig/esm/tsconfig.json"
```
### Next.js + Strictest <kbd><a href="./bases/next-strictest.json">tsconfig.json</a></kbd>

Install:

```sh
npm install --save-dev @tsconfig/next-strictest
yarn add --dev @tsconfig/next-strictest
```

Add to your `tsconfig.json`:

```json
"extends": "@tsconfig/next-strictest/tsconfig.json"
```
### Next.js <kbd><a href="./bases/next.json">tsconfig.json</a></kbd>

Install:
Expand All @@ -132,34 +118,6 @@ Add to your `tsconfig.json`:
```json
"extends": "@tsconfig/next/tsconfig.json"
```
### Node LTS + ESM + Strictest <kbd><a href="./bases/node-lts-strictest-esm.combined.json">tsconfig.json</a></kbd>

Install:

```sh
npm install --save-dev @tsconfig/node-lts-strictest-esm
yarn add --dev @tsconfig/node-lts-strictest-esm
```

Add to your `tsconfig.json`:

```json
"extends": "@tsconfig/node-lts-strictest-esm/tsconfig.json"
```
### Node LTS + Strictest <kbd><a href="./bases/node-lts-strictest.combined.json">tsconfig.json</a></kbd>

Install:

```sh
npm install --save-dev @tsconfig/node-lts-strictest
yarn add --dev @tsconfig/node-lts-strictest
```

Add to your `tsconfig.json`:

```json
"extends": "@tsconfig/node-lts-strictest/tsconfig.json"
```
### Node LTS <kbd><a href="./bases/node-lts.json">tsconfig.json</a></kbd>

Install:
Expand Down Expand Up @@ -216,34 +174,6 @@ Add to your `tsconfig.json`:
```json
"extends": "@tsconfig/node14/tsconfig.json"
```
### Node 16 + ESM + Strictest <kbd><a href="./bases/node16-strictest-esm.combined.json">tsconfig.json</a></kbd>

Install:

```sh
npm install --save-dev @tsconfig/node16-strictest-esm
yarn add --dev @tsconfig/node16-strictest-esm
```

Add to your `tsconfig.json`:

```json
"extends": "@tsconfig/node16-strictest-esm/tsconfig.json"
```
### Node 16 + Strictest <kbd><a href="./bases/node16-strictest.combined.json">tsconfig.json</a></kbd>

Install:

```sh
npm install --save-dev @tsconfig/node16-strictest
yarn add --dev @tsconfig/node16-strictest
```

Add to your `tsconfig.json`:

```json
"extends": "@tsconfig/node16-strictest/tsconfig.json"
```
### Node 16 <kbd><a href="./bases/node16.json">tsconfig.json</a></kbd>

Install:
Expand Down Expand Up @@ -272,34 +202,6 @@ Add to your `tsconfig.json`:
```json
"extends": "@tsconfig/node17/tsconfig.json"
```
### Node 18 + ESM + Strictest <kbd><a href="./bases/node18-strictest-esm.combined.json">tsconfig.json</a></kbd>

Install:

```sh
npm install --save-dev @tsconfig/node18-strictest-esm
yarn add --dev @tsconfig/node18-strictest-esm
```

Add to your `tsconfig.json`:

```json
"extends": "@tsconfig/node18-strictest-esm/tsconfig.json"
```
### Node 18 + Strictest <kbd><a href="./bases/node18-strictest.combined.json">tsconfig.json</a></kbd>

Install:

```sh
npm install --save-dev @tsconfig/node18-strictest
yarn add --dev @tsconfig/node18-strictest
```

Add to your `tsconfig.json`:

```json
"extends": "@tsconfig/node18-strictest/tsconfig.json"
```
### Node 18 <kbd><a href="./bases/node18.json">tsconfig.json</a></kbd>

Install:
Expand Down Expand Up @@ -417,6 +319,24 @@ Add to your `tsconfig.json`:

<!-- /AUTO -->

### What about combined configs?

Because of previous limitations in the config extension system of TypeScript,
this repo used to provide combined configs from a few common bases (like Node + ESM,
Node + Strictest and so on).

This issue is now moot since TypeScript v5.0.0, which provides the [ability to
extend from multiple configs at once](https://devblogs.microsoft.com/typescript/announcing-typescript-5-0-rc/#supporting-multiple-configuration-files-in-extends). For instance, if you want
to start from a Node 18 + Strictest base config, you can install both
`@tsconfig/node18` and `@tsconfig/strictest` packages and extend those configs like so:

```jsonc
// tsconfig.json
{
"extends": ["@tsconfig/strictest/tsconfig", "@tsconfig/node18/tsconfig"]
}
```

### Contributing

```sh
Expand Down
31 changes: 0 additions & 31 deletions bases/next-strictest.json

This file was deleted.

31 changes: 0 additions & 31 deletions bases/node-lts-strictest-esm.combined.json

This file was deleted.

31 changes: 0 additions & 31 deletions bases/node-lts-strictest.combined.json

This file was deleted.

30 changes: 0 additions & 30 deletions bases/node16-strictest-esm.combined.json

This file was deleted.

30 changes: 0 additions & 30 deletions bases/node16-strictest.combined.json

This file was deleted.

30 changes: 0 additions & 30 deletions bases/node18-strictest-esm.combined.json

This file was deleted.

30 changes: 0 additions & 30 deletions bases/node18-strictest.combined.json

This file was deleted.

5 changes: 3 additions & 2 deletions bases/strictest.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@
"noUnusedLocals": true,
"noUnusedParameters": true,

"importsNotUsedAsValues": "error",
"verbatimModuleSyntax": true,
"checkJs": true,

"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true
},
"$schema": "https://json.schemastore.org/tsconfig",
"display": "Strictest"
"display": "Strictest",
"_version": "2.0.0"
}
Loading