Skip to content

Commit

Permalink
Merge branch 'main' into no-unnecessary-type-assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaKGoldberg committed Mar 17, 2024
2 parents 60133ea + 3856c67 commit 69f2cca
Show file tree
Hide file tree
Showing 299 changed files with 8,564 additions and 4,813 deletions.
459 changes: 0 additions & 459 deletions .eslintrc.js

This file was deleted.

1 change: 1 addition & 0 deletions .gitattributes
Expand Up @@ -9,3 +9,4 @@
# force github to treat out custom jest snapshot extension as normal jest snapshots
*.shot linguist-language=Jest-Snapshot
*.shot linguist-generated
packages/scope-manager/src/lib/**/* linguist-generated
344 changes: 172 additions & 172 deletions .yarn/releases/yarn-3.8.0.cjs → .yarn/releases/yarn-3.8.1.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .yarnrc.yml
@@ -1,2 +1,2 @@
yarnPath: .yarn/releases/yarn-3.8.0.cjs
yarnPath: .yarn/releases/yarn-3.8.1.cjs
nodeLinker: node-modules
32 changes: 32 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,35 @@
## 7.2.0 (2024-03-11)


### 🚀 Features

- support TS 5.4 ([#8630](https://github.com/typescript-eslint/typescript-eslint/pull/8630))
- **eslint-plugin:** [prefer-string-starts-ends-with] add allowSingleElementEquality option ([#8374](https://github.com/typescript-eslint/typescript-eslint/pull/8374))

### 🩹 Fixes

- **eslint-plugin:** expose *-type-checked-only configs for extension ([#8600](https://github.com/typescript-eslint/typescript-eslint/pull/8600))
- **eslint-plugin:** [member-ordering] report alphabetical sorting for all groups instead of just the first failing group ([#8263](https://github.com/typescript-eslint/typescript-eslint/pull/8263))
- **eslint-plugin:** [no-var-requires, no-require-imports] support template literal ([#8408](https://github.com/typescript-eslint/typescript-eslint/pull/8408))
- **eslint-plugin:** [no-useless-template-literals] detect TemplateLiteral ([#8575](https://github.com/typescript-eslint/typescript-eslint/pull/8575))
- **eslint-plugin:** [no-unnecessary-condition] handle union array and tuple type ([#8592](https://github.com/typescript-eslint/typescript-eslint/pull/8592))
- **eslint-plugin:** [prefer-find] support ternary branches in prefer-find ([#8421](https://github.com/typescript-eslint/typescript-eslint/pull/8421))
- **typescript-eslint:** set `sourceType: "module"` in base shared config ([#8622](https://github.com/typescript-eslint/typescript-eslint/pull/8622))
- **typescript-eslint:** export `ConfigWithExtends` type ([#8621](https://github.com/typescript-eslint/typescript-eslint/pull/8621))

### ❤️ Thank You

- Arka Pratim Chaudhuri @arka1002
- auvred @auvred
- Chris Plummer
- Fotis Papadogeorgopoulos @fpapado
- Josh Goldberg ✨
- Kirk Waiblinger @kirkwaiblinger
- Wayne Zhang
- YeonJuan @yeonjuan

You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning) and [releases](https://main--typescript-eslint.netlify.app/users/releases) on our website.

## 7.1.1 (2024-03-04)


Expand Down
1 change: 1 addition & 0 deletions CONTRIBUTORS.md
Expand Up @@ -90,6 +90,7 @@ Thanks goes to these wonderful people:
<td align="center"><a href="https://github.com/pablobirukov"><img src="https://avatars.githubusercontent.com/u/1861546?v=4&size=100" width="100px;" alt=""/><br /><sub><b>Pavel Birukov </b></sub></a></td>
<td align="center"><a href="https://github.com/mightyiam"><img src="https://avatars.githubusercontent.com/u/635591?v=4&size=100" width="100px;" alt=""/><br /><sub><b>Shahar "Dawn" Or</b></sub></a></td>
<td align="center"><a href="https://github.com/kirkwaiblinger"><img src="https://avatars.githubusercontent.com/u/53019676?v=4&size=100" width="100px;" alt=""/><br /><sub><b>kirkwaiblinger</b></sub></a></td>
</tr>
</table>

<!-- markdownlint-restore -->
Expand Down
2 changes: 1 addition & 1 deletion docs/contributing/Pull_Requests.mdx
Expand Up @@ -51,7 +51,7 @@ Within the body of your PR, make sure you reference the issue that you have work

Must be one of the following:

<!-- Keep this synchronized with /.github/workflows/semantic-pr-titles.yml -->
{/* Keep this synchronized with /.github/workflows/semantic-pr-titles.yml */}

- `docs` - if you only change documentation, and not shipped code
- `feat` - for any new functionality additions
Expand Down
Expand Up @@ -94,7 +94,7 @@ We generally start the process of supporting a new TypeScript version just after
1. Once all PRs needed for the RC update PR are merged, merge the RC update PR
1. Once TypeScript releases the stable X.Y version, create and merge a PR with a title like `chore: bump TypeScript from X.YRC to X.Y` and the following changes:
- In the root `package.json`, remove `|| X.Y.1-rc2` from the `dependency` on `typescript`, and bump its `<` version to the next version of TypeScript
- In the root `package.json`, change the `devDependency` on `typescript` to `~X.Y.3`
- In the root `package.json`, change the `resolutions` on `typescript` to `X.Y.3`
- Rename and update `patches/typescript*` to the new TypeScript version
- Any other changes made necessary due to changes in TypeScript between the RC version and stable version
1. Send a PR that updates this documentation page to point to your newer issues and PRs
Expand Down
2 changes: 1 addition & 1 deletion docs/packages/Parser.mdx
Expand Up @@ -90,7 +90,7 @@ More details can be found in the [TypeScript handbook's JSX docs](https://www.ty

**NOTE:** this setting does not affect known file types (`.js`, `.mjs`, `.cjs`, `.jsx`, `.ts`, `.mts`, `.cts`, `.tsx`, `.json`) because the TypeScript compiler has its own internal handling for known file extensions.

<!-- https://github.com/microsoft/TypeScript/blob/d6e483b8dabd8fd37c00954c3f2184bb7f1eb90c/src/compiler/utilities.ts#L6281-L6285 -->
{/* https://github.com/microsoft/TypeScript/blob/d6e483b8dabd8fd37c00954c3f2184bb7f1eb90c/src/compiler/utilities.ts#L6281-L6285 */}

The exact behavior is as follows:

Expand Down
20 changes: 10 additions & 10 deletions nx.json
Expand Up @@ -3,10 +3,6 @@
"nxCloudAccessToken": "YjIzMmMxMWItMjhiMS00NWY2LTk1NWYtYWU3YWQ0YjE4YjBlfHJlYWQ=",
"release": {
"changelog": {
"git": {
"commit": true,
"tag": true
},
"workspaceChangelog": {
"createRelease": "github",
"renderer": "tools/release/changelog-renderer"
Expand All @@ -16,10 +12,7 @@
}
},
"version": {
"generatorOptions": {
"currentVersionResolver": "git-tag",
"specifierSource": "conventional-commits"
}
"conventionalCommits": true
}
},
"targetDefaults": {
Expand All @@ -31,6 +24,7 @@
"test": {
"inputs": [
"default",
"^production",
"{workspaceRoot}/jest.config.js",
"{workspaceRoot}/jest.config.base.js"
],
Expand All @@ -40,6 +34,7 @@
"@nx/jest:jest": {
"inputs": [
"default",
"^production",
"{workspaceRoot}/jest.config.js",
"{workspaceRoot}/jest.config.base.js"
],
Expand All @@ -63,7 +58,6 @@
"{workspaceRoot}/eslint.config.js",
"{workspaceRoot}/eslint.config.mjs",
"{workspaceRoot}/yarn.lock",
"{workspaceRoot}/.eslintignore",
{
"dependentTasksOutputFiles": "**/*.js",
"transitive": false
Expand All @@ -86,6 +80,12 @@
"runtime": "yarn -v"
}
],
"production": ["default", "!{projectRoot}/src/test-setup.[jt]s"]
"production": [
"default",
"!{projectRoot}/**/?(*.)+(spec|test).[jt]s?(x)?(.snap)",
"!{projectRoot}/tsconfig.spec.json",
"!{projectRoot}/jest.config.[jt]s",
"!{projectRoot}/src/test-setup.[jt]s"
]
}
}
24 changes: 12 additions & 12 deletions package.json
Expand Up @@ -55,16 +55,16 @@
"devDependencies": {
"@actions/core": "^1.10.0",
"@actions/github": "^6.0.0",
"@babel/code-frame": "^7.22.13",
"@babel/core": "^7.23.3",
"@babel/eslint-parser": "^7.23.3",
"@babel/parser": "^7.23.3",
"@babel/types": "^7.23.3",
"@babel/code-frame": "^7.23.5",
"@babel/core": "^7.24.0",
"@babel/eslint-parser": "^7.23.10",
"@babel/parser": "^7.24.0",
"@babel/types": "^7.24.0",
"@eslint/eslintrc": "^2.1.4",
"@eslint/js": "^8.56.0",
"@nx/eslint": "18.0.5",
"@nx/jest": "18.0.5",
"@nx/workspace": "18.0.5",
"@nx/eslint": "18.0.8",
"@nx/jest": "18.0.8",
"@nx/workspace": "18.0.8",
"@swc/core": "^1.4.0",
"@swc/jest": "^0.2.26",
"@types/babel__code-frame": "^7.0.3",
Expand Down Expand Up @@ -110,15 +110,15 @@
"markdownlint-cli": "^0.39.0",
"ncp": "^2.0.0",
"netlify": "^13.1.9",
"nx": "18.0.5",
"nx": "18.0.8",
"prettier": "3.2.5",
"pretty-format": "^29.6.2",
"raw-loader": "^4.0.2",
"rimraf": "^5.0.1",
"tmp": "^0.2.1",
"ts-node": "10.7.0",
"tsx": "^4.6.2",
"typescript": ">=4.7.4 <5.4.0",
"typescript": ">=4.7.4 <5.5.0",
"typescript-eslint": "workspace:^",
"yargs": "17.7.2"
},
Expand All @@ -140,8 +140,8 @@
"pretty-format": "^29",
"react-split-pane@^0.1.92": "patch:react-split-pane@npm%3A0.1.92#./.yarn/patches/react-split-pane-npm-0.1.92-93dbf51dff.patch",
"tsx": "^4.6.2",
"typescript": "5.3.3",
"typescript": "5.4.2",
"@nx/eslint@17.3.1": "patch:@nx/eslint@npm%3A17.3.1#./.yarn/patches/@nx-eslint-npm-17.3.1-a2f85d8c50.patch"
},
"packageManager": "yarn@3.8.0"
"packageManager": "yarn@3.8.1"
}
21 changes: 21 additions & 0 deletions packages/ast-spec/CHANGELOG.md
@@ -1,3 +1,24 @@
## 7.2.0 (2024-03-11)


### 🚀 Features

- support TS 5.4


### ❤️ Thank You

- Arka Pratim Chaudhuri
- auvred
- Chris Plummer
- Fotis Papadogeorgopoulos
- Josh Goldberg ✨
- Kirk Waiblinger
- Wayne Zhang
- YeonJuan

You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning) and [releases](https://main--typescript-eslint.netlify.app/users/releases) on our website.

## 7.1.1 (2024-03-04)

This was a version bump only for ast-spec to align it with other projects, there were no code changes.
Expand Down
4 changes: 2 additions & 2 deletions packages/ast-spec/package.json
@@ -1,6 +1,6 @@
{
"name": "@typescript-eslint/ast-spec",
"version": "7.1.1",
"version": "7.2.0",
"description": "Complete specification for the TypeScript-ESTree AST",
"private": true,
"keywords": [
Expand All @@ -9,7 +9,7 @@
"estree"
],
"engines": {
"node": "^16.0.0 || >=18.0.0"
"node": "^18.18.0 || >=20.0.0"
},
"files": [
"dist",
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

@@ -0,0 +1,3 @@
switch (true) {
default: default:
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions packages/eslint-plugin-internal/CHANGELOG.md
@@ -1,3 +1,24 @@
## 7.2.0 (2024-03-11)


### 🚀 Features

- support TS 5.4


### ❤️ Thank You

- Arka Pratim Chaudhuri
- auvred
- Chris Plummer
- Fotis Papadogeorgopoulos
- Josh Goldberg ✨
- Kirk Waiblinger
- Wayne Zhang
- YeonJuan

You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning) and [releases](https://main--typescript-eslint.netlify.app/users/releases) on our website.

## 7.1.1 (2024-03-04)

This was a version bump only for eslint-plugin-internal to align it with other projects, there were no code changes.
Expand Down

0 comments on commit 69f2cca

Please sign in to comment.