From 0aa686106e7a2a3d9c7e420b88d208932126d58d Mon Sep 17 00:00:00 2001 From: seek-oss-ci <34733141+seek-oss-ci@users.noreply.github.com> Date: Thu, 25 May 2023 11:01:58 +1000 Subject: [PATCH] Version Packages (#9) Co-authored-by: github-actions[bot] --- .changeset/late-worms-change.md | 25 ------------------------- CHANGELOG.md | 27 +++++++++++++++++++++++++++ package.json | 2 +- 3 files changed, 28 insertions(+), 26 deletions(-) delete mode 100644 .changeset/late-worms-change.md create mode 100644 CHANGELOG.md diff --git a/.changeset/late-worms-change.md b/.changeset/late-worms-change.md deleted file mode 100644 index e65b0c6..0000000 --- a/.changeset/late-worms-change.md +++ /dev/null @@ -1,25 +0,0 @@ ---- -"tsconfig-seek": major ---- - -Default `noUncheckedIndexedAccess` to `true` - -This change sets the `noUncheckedIndexedAccess` compiler option to `true` by default. - -This flags potential issues with indexed access of arrays and records. - -Before: - -```ts -const a: string[] = []; -const b = a[0]; -// ^? const b: string -``` - -After: - -```ts -const a: string[] = []; -const b = a[0]; -// ^? const b: string | undefined -``` diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..d06f2da --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,27 @@ +# tsconfig-seek + +## 2.0.0 + +### Major Changes + +- Default `noUncheckedIndexedAccess` to `true` ([#7](https://github.com/seek-oss/tsconfig-seek/pull/7)) + + This change sets the `noUncheckedIndexedAccess` compiler option to `true` by default. + + This flags potential issues with indexed access of arrays and records. + + Before: + + ```ts + const a: string[] = []; + const b = a[0]; + // ^? const b: string + ``` + + After: + + ```ts + const a: string[] = []; + const b = a[0]; + // ^? const b: string | undefined + ``` diff --git a/package.json b/package.json index f92e1d0..c940b88 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "tsconfig-seek", - "version": "1.0.2", + "version": "2.0.0", "description": "TSLint configuration used by SEEK", "main": "tsconfig.json", "files": [