Skip to content

Commit 1b0468e

Browse files
Merge branch 'main'
2 parents 838dd0c + 56bf020 commit 1b0468e

File tree

72 files changed

+1842
-495
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+1842
-495
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ yarn-debug.log*
66
yarn-error.log*
77

88
# Website
9+
docs/packages/*/generated
910
packages/website/.docusaurus
1011
packages/website/.cache-loader
1112
packages/website/build

CHANGELOG.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,26 @@
1+
## 7.18.0 (2024-07-29)
2+
3+
4+
### 🚀 Features
5+
6+
- **types:** update ECMA versions ([#9634](https://github.com/typescript-eslint/typescript-eslint/pull/9634))
7+
8+
### 🩹 Fixes
9+
10+
- **eslint-plugin:** [no-unnecessary-type-assertion] prevent runtime error when asserting a variable declared in default TS lib ([#9660](https://github.com/typescript-eslint/typescript-eslint/pull/9660))
11+
- **eslint-plugin:** [unbound-method] report on destructuring in function parameters ([#8952](https://github.com/typescript-eslint/typescript-eslint/pull/8952))
12+
- **eslint-plugin:** [no-duplicate-type-constituents] shouldn't report on error types ([#9600](https://github.com/typescript-eslint/typescript-eslint/pull/9600))
13+
- **eslint-plugin:** [strict-boolean-expressions] support branded booleans ([#9297](https://github.com/typescript-eslint/typescript-eslint/pull/9297))
14+
15+
### ❤️ Thank You
16+
17+
- auvred @auvred
18+
- Oliver Salzburg
19+
- Vinccool96
20+
- Yukihiro Hasegawa @y-hsgw
21+
22+
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.
23+
124
## 7.17.0 (2024-07-22)
225

326

docs/getting-started/Typed_Linting.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ In more detail:
8484

8585
:::caution
8686
Your ESLint config file may start receiving a parsing error about type information.
87-
See [our TSConfig inclusion FAQ](../troubleshooting/faqs/General.mdx#i-get-errors-telling-me-eslint-was-configured-to-run--however-that-tsconfig-does-not--none-of-those-tsconfigs-include-this-file).
87+
See [our TSConfig inclusion FAQ](../troubleshooting/typed-linting#i-get-errors-telling-me-eslint-was-configured-to-run--however-that-tsconfig-does-not--none-of-those-tsconfigs-include-this-file).
8888
:::
8989

9090
With that done, run the same lint command you ran before.

docs/packages/Type_Utils.mdx

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,31 @@
11
---
22
id: type-utils
33
sidebar_label: type-utils
4+
toc_max_heading_level: 3
45
---
56

7+
import GeneratedDocs from './type-utils/generated/index.md';
8+
69
# `@typescript-eslint/type-utils`
710

811
<PackageLink packageName="type-utils" scope="@typescript-eslint" />
912

10-
> Type utilities for working with TypeScript within ESLint rules.
13+
> Type utilities for working with TypeScript types
1114
12-
This package contains public utilities for working with TypeScript types that ESLint rules often use.
15+
This package contains public utilities for working with TypeScript types.
1316
Rules declared in [`@typescript-eslint/eslint-plugin`](./ESLint_Plugin.mdx) use these utility functions.
1417

1518
The utilities in this package are both:
1619

1720
- More generally ESLint-focused than the broad TypeScript utilities in [`ts-api-utils`](https://npmjs.com/package/ts-api-utils)
1821
- Separated from [`@typescript-eslint/utils`](./Utils.mdx) so that that package does not require a dependency on `typescript`
1922

20-
> See [Custom Rules](../developers/Custom_Rules.mdx) for documentation on creating your own custom ESLint rules for TypeScript code.
23+
:::tip
24+
See [Custom Rules](../developers/Custom_Rules.mdx) for documentation on creating your own custom ESLint rules for TypeScript code.
25+
:::
26+
27+
---
28+
29+
The following documentation is auto-generated from source code.
30+
31+
<GeneratedDocs />

docs/packages/Utils.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
id: utils
33
sidebar_label: utils
4+
toc_max_heading_level: 3
45
---
56

67
# `@typescript-eslint/utils`
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
id: ast-spec
3+
sidebar_label: AST Specification
4+
toc_max_heading_level: 3
5+
---
6+
7+
import GeneratedDocs from '../ast-spec/generated/index.md';
8+
9+
# AST Specification
10+
11+
The following auto-generated documentation describes the Abstract Syntax Tree (AST) generated by [`@typescript-eslint/typescript-estree`](../TypeScript_ESTree.mdx) for parsers such as [`@typescript-eslint/parser`](../Parser.mdx).
12+
13+
<GeneratedDocs />

knip.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ export default {
9797
'@generated/docusaurus.config',
9898
'^@theme/.*',
9999
'^@theme-original/.*',
100+
'docusaurus-plugin-typedoc',
101+
'typedoc',
102+
'typedoc-plugin-markdown',
100103
],
101104
},
102105
'packages/website-eslint': {

packages/ast-spec/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 7.18.0 (2024-07-29)
2+
3+
This was a version bump only for ast-spec to align it with other projects, there were no code changes.
4+
5+
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.
6+
17
## 7.17.0 (2024-07-22)
28

39
This was a version bump only for ast-spec to align it with other projects, there were no code changes.

packages/ast-spec/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@typescript-eslint/ast-spec",
3-
"version": "7.17.0",
3+
"version": "7.18.0",
44
"description": "Complete specification for the TypeScript-ESTree AST",
55
"private": true,
66
"keywords": [

packages/ast-spec/src/ast-node-types.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@ export enum AST_NODE_TYPES {
8888
WhileStatement = 'WhileStatement',
8989
WithStatement = 'WithStatement',
9090
YieldExpression = 'YieldExpression',
91-
/**
92-
* TS-prefixed nodes
93-
*/
91+
92+
// TS_prefixed nodes
93+
9494
TSAbstractAccessorProperty = 'TSAbstractAccessorProperty',
9595
TSAbstractKeyword = 'TSAbstractKeyword',
9696
TSAbstractMethodDefinition = 'TSAbstractMethodDefinition',

0 commit comments

Comments
 (0)