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": [