Skip to content

Commit 485055f

Browse files
authored
Merge branch 'main' into docs-optional-undef
2 parents 35c09dd + b88ea33 commit 485055f

File tree

73 files changed

+2289
-458
lines changed

Some content is hidden

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

73 files changed

+2289
-458
lines changed

CHANGELOG.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,28 @@
1+
## 8.7.0 (2024-09-23)
2+
3+
4+
### 🚀 Features
5+
6+
- **eslint-plugin:** [no-unsafe-call] check calls of Function ([#10010](https://github.com/typescript-eslint/typescript-eslint/pull/10010))
7+
- **eslint-plugin:** [consistent-type-exports] check `export *` exports to see if all exported members are types ([#10006](https://github.com/typescript-eslint/typescript-eslint/pull/10006))
8+
9+
### 🩹 Fixes
10+
11+
- **eslint-plugin:** properly coerce all types to string in `getStaticMemberAccessValue` ([#10004](https://github.com/typescript-eslint/typescript-eslint/pull/10004))
12+
- **eslint-plugin:** [no-deprecated] report on imported deprecated variables ([#9987](https://github.com/typescript-eslint/typescript-eslint/pull/9987))
13+
- **eslint-plugin:** [no-confusing-non-null-assertion] check !in and !instanceof ([#9994](https://github.com/typescript-eslint/typescript-eslint/pull/9994))
14+
- **types:** add `NewExpression` as a parent of `SpreadElement` ([#10024](https://github.com/typescript-eslint/typescript-eslint/pull/10024))
15+
- **utils:** add missing entries to the RuleListener selectors list ([#9992](https://github.com/typescript-eslint/typescript-eslint/pull/9992))
16+
17+
### ❤️ Thank You
18+
19+
- Abraham Guo
20+
- auvred @auvred
21+
- Brian Donovan @eventualbuddha
22+
- Kirk Waiblinger @kirkwaiblinger
23+
24+
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.
25+
126
## 8.6.0 (2024-09-16)
227

328

packages/ast-spec/CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
## 8.7.0 (2024-09-23)
2+
3+
4+
### 🚀 Features
5+
6+
- **eslint-plugin:** [consistent-type-exports] check `export *` exports to see if all exported members are types
7+
8+
9+
### ❤️ Thank You
10+
11+
- Abraham Guo
12+
- auvred
13+
- Brian Donovan
14+
- Kirk Waiblinger
15+
16+
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.
17+
118
## 8.6.0 (2024-09-16)
219

320
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": "8.6.0",
3+
"version": "8.7.0",
44
"description": "Complete specification for the TypeScript-ESTree AST",
55
"private": true,
66
"keywords": [
Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
export * from './ClassDeclaration/spec';
2-
export * from './ExportAllDeclaration/spec';
3-
export * from './ExportDefaultDeclaration/spec';
4-
export * from './ExportNamedDeclaration/spec';
5-
export * from './FunctionDeclaration/spec';
6-
export * from './ImportDeclaration/spec';
7-
export * from './TSDeclareFunction/spec';
8-
export * from './TSEnumDeclaration/spec';
9-
export * from './TSImportEqualsDeclaration/spec';
10-
export * from './TSInterfaceDeclaration/spec';
11-
export * from './TSModuleDeclaration/spec';
12-
export * from './TSNamespaceExportDeclaration/spec';
13-
export * from './TSTypeAliasDeclaration/spec';
14-
export * from './VariableDeclaration/spec';
1+
export type * from './ClassDeclaration/spec';
2+
export type * from './ExportAllDeclaration/spec';
3+
export type * from './ExportDefaultDeclaration/spec';
4+
export type * from './ExportNamedDeclaration/spec';
5+
export type * from './FunctionDeclaration/spec';
6+
export type * from './ImportDeclaration/spec';
7+
export type * from './TSDeclareFunction/spec';
8+
export type * from './TSEnumDeclaration/spec';
9+
export type * from './TSImportEqualsDeclaration/spec';
10+
export type * from './TSInterfaceDeclaration/spec';
11+
export type * from './TSModuleDeclaration/spec';
12+
export type * from './TSNamespaceExportDeclaration/spec';
13+
export type * from './TSTypeAliasDeclaration/spec';
14+
export type * from './VariableDeclaration/spec';

packages/ast-spec/src/element/spec.ts

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
export * from './AccessorProperty/spec';
2-
export * from './MethodDefinition/spec';
3-
export * from './Property/spec';
4-
export * from './PropertyDefinition/spec';
5-
export * from './SpreadElement/spec';
6-
export * from './StaticBlock/spec';
7-
export * from './TSAbstractAccessorProperty/spec';
8-
export * from './TSAbstractMethodDefinition/spec';
9-
export * from './TSAbstractPropertyDefinition/spec';
10-
export * from './TSCallSignatureDeclaration/spec';
11-
export * from './TSConstructSignatureDeclaration/spec';
12-
export * from './TSEnumMember/spec';
13-
export * from './TSIndexSignature/spec';
14-
export * from './TSMethodSignature/spec';
15-
export * from './TSPropertySignature/spec';
1+
export type * from './AccessorProperty/spec';
2+
export type * from './MethodDefinition/spec';
3+
export type * from './Property/spec';
4+
export type * from './PropertyDefinition/spec';
5+
export type * from './SpreadElement/spec';
6+
export type * from './StaticBlock/spec';
7+
export type * from './TSAbstractAccessorProperty/spec';
8+
export type * from './TSAbstractMethodDefinition/spec';
9+
export type * from './TSAbstractPropertyDefinition/spec';
10+
export type * from './TSCallSignatureDeclaration/spec';
11+
export type * from './TSConstructSignatureDeclaration/spec';
12+
export type * from './TSEnumMember/spec';
13+
export type * from './TSIndexSignature/spec';
14+
export type * from './TSMethodSignature/spec';
15+
export type * from './TSPropertySignature/spec';

packages/ast-spec/src/expression/AssignmentExpression/spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import type { Expression } from '../../unions/Expression';
44
import type { ValueOf } from '../../utils';
55
import type { AssignmentOperatorToText } from './AssignmentOperatorToText';
66

7-
export * from './AssignmentOperatorToText';
7+
export type * from './AssignmentOperatorToText';
88

99
export interface AssignmentExpression extends BaseNode {
1010
left: Expression;

packages/ast-spec/src/expression/BinaryExpression/spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import type { Expression } from '../../unions/Expression';
55
import type { ValueOf } from '../../utils';
66
import type { BinaryOperatorToText } from './BinaryOperatorToText';
77

8-
export * from './BinaryOperatorToText';
8+
export type * from './BinaryOperatorToText';
99

1010
export interface BinaryExpression extends BaseNode {
1111
left: Expression | PrivateIdentifier;
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
export * from './BigIntLiteral/spec';
2-
export * from './BooleanLiteral/spec';
3-
export * from './NullLiteral/spec';
4-
export * from './NumberLiteral/spec';
5-
export * from './RegExpLiteral/spec';
6-
export * from './StringLiteral/spec';
1+
export type * from './BigIntLiteral/spec';
2+
export type * from './BooleanLiteral/spec';
3+
export type * from './NullLiteral/spec';
4+
export type * from './NumberLiteral/spec';
5+
export type * from './RegExpLiteral/spec';
6+
export type * from './StringLiteral/spec';
Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
1-
export * from './ArrayExpression/spec';
2-
export * from './ArrowFunctionExpression/spec';
3-
export * from './AssignmentExpression/spec';
4-
export * from './AwaitExpression/spec';
5-
export * from './BinaryExpression/spec';
6-
export * from './CallExpression/spec';
7-
export * from './ChainExpression/spec';
8-
export * from './ClassExpression/spec';
9-
export * from './ConditionalExpression/spec';
10-
export * from './FunctionExpression/spec';
11-
export * from './Identifier/spec';
12-
export * from './ImportExpression/spec';
13-
export * from './JSXElement/spec';
14-
export * from './JSXFragment/spec';
15-
export * from './literal/spec';
16-
export * from './LogicalExpression/spec';
17-
export * from './MemberExpression/spec';
18-
export * from './MetaProperty/spec';
19-
export * from './NewExpression/spec';
20-
export * from './ObjectExpression/spec';
21-
export * from './SequenceExpression/spec';
22-
export * from './Super/spec';
23-
export * from './TaggedTemplateExpression/spec';
24-
export * from './TemplateLiteral/spec';
25-
export * from './ThisExpression/spec';
26-
export * from './TSAsExpression/spec';
27-
export * from './TSEmptyBodyFunctionExpression/spec';
28-
export * from './TSInstantiationExpression/spec';
29-
export * from './TSNonNullExpression/spec';
30-
export * from './TSSatisfiesExpression/spec';
31-
export * from './TSTypeAssertion/spec';
32-
export * from './UnaryExpression/spec';
33-
export * from './UpdateExpression/spec';
34-
export * from './YieldExpression/spec';
1+
export type * from './ArrayExpression/spec';
2+
export type * from './ArrowFunctionExpression/spec';
3+
export type * from './AssignmentExpression/spec';
4+
export type * from './AwaitExpression/spec';
5+
export type * from './BinaryExpression/spec';
6+
export type * from './CallExpression/spec';
7+
export type * from './ChainExpression/spec';
8+
export type * from './ClassExpression/spec';
9+
export type * from './ConditionalExpression/spec';
10+
export type * from './FunctionExpression/spec';
11+
export type * from './Identifier/spec';
12+
export type * from './ImportExpression/spec';
13+
export type * from './JSXElement/spec';
14+
export type * from './JSXFragment/spec';
15+
export type * from './literal/spec';
16+
export type * from './LogicalExpression/spec';
17+
export type * from './MemberExpression/spec';
18+
export type * from './MetaProperty/spec';
19+
export type * from './NewExpression/spec';
20+
export type * from './ObjectExpression/spec';
21+
export type * from './SequenceExpression/spec';
22+
export type * from './Super/spec';
23+
export type * from './TaggedTemplateExpression/spec';
24+
export type * from './TemplateLiteral/spec';
25+
export type * from './ThisExpression/spec';
26+
export type * from './TSAsExpression/spec';
27+
export type * from './TSEmptyBodyFunctionExpression/spec';
28+
export type * from './TSInstantiationExpression/spec';
29+
export type * from './TSNonNullExpression/spec';
30+
export type * from './TSSatisfiesExpression/spec';
31+
export type * from './TSTypeAssertion/spec';
32+
export type * from './UnaryExpression/spec';
33+
export type * from './UpdateExpression/spec';
34+
export type * from './YieldExpression/spec';

packages/ast-spec/src/index.ts

Lines changed: 47 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,49 @@
11
export * from './ast-node-types';
22
export * from './ast-token-types';
3-
export * from './base/Accessibility';
4-
export * from './base/BaseNode'; // this is exported so that the `types` package can merge the decl and add the `parent` property
5-
export * from './base/NodeOrTokenData';
6-
export * from './base/OptionalRangeAndLoc';
7-
export * from './base/Position';
8-
export * from './base/Range';
9-
export * from './base/SourceLocation';
10-
export * from './declaration/spec';
11-
export * from './element/spec';
12-
export * from './expression/spec';
13-
export * from './jsx/spec';
14-
export * from './parameter/spec';
15-
export * from './special/spec';
16-
export * from './statement/spec';
17-
export * from './token/spec';
18-
export * from './type/spec';
19-
export * from './unions/BindingName';
20-
export * from './unions/BindingPattern';
21-
export * from './unions/CallExpressionArgument';
22-
export * from './unions/ChainElement';
23-
export * from './unions/ClassElement';
24-
export * from './unions/Comment';
25-
export * from './unions/DeclarationStatement';
26-
export * from './unions/DestructuringPattern';
27-
export * from './unions/EntityName';
28-
export * from './unions/ExportDeclaration';
29-
export * from './unions/Expression';
30-
export * from './unions/ForInitialiser';
31-
export * from './unions/FunctionLike';
32-
export * from './unions/ImportClause';
33-
export * from './unions/IterationStatement';
34-
export * from './unions/JSXChild';
35-
export * from './unions/JSXExpression';
36-
export * from './unions/JSXTagNameExpression';
37-
export * from './unions/LeftHandSideExpression';
38-
export * from './unions/Literal';
39-
export * from './unions/LiteralExpression';
40-
export * from './unions/Node';
41-
export * from './unions/ObjectLiteralElement';
42-
export * from './unions/Parameter';
43-
export * from './unions/PrimaryExpression';
44-
export * from './unions/PropertyName';
45-
export * from './unions/Statement';
46-
export * from './unions/Token';
47-
export * from './unions/TSUnaryExpression';
48-
export * from './unions/TypeElement';
49-
export * from './unions/TypeNode';
3+
export type * from './base/Accessibility';
4+
export type * from './base/BaseNode'; // this is exported so that the `types` package can merge the decl and add the `parent` property
5+
export type * from './base/NodeOrTokenData';
6+
export type * from './base/OptionalRangeAndLoc';
7+
export type * from './base/Position';
8+
export type * from './base/Range';
9+
export type * from './base/SourceLocation';
10+
export type * from './declaration/spec';
11+
export type * from './element/spec';
12+
export type * from './expression/spec';
13+
export type * from './jsx/spec';
14+
export type * from './parameter/spec';
15+
export type * from './special/spec';
16+
export type * from './statement/spec';
17+
export type * from './token/spec';
18+
export type * from './type/spec';
19+
export type * from './unions/BindingName';
20+
export type * from './unions/BindingPattern';
21+
export type * from './unions/CallExpressionArgument';
22+
export type * from './unions/ChainElement';
23+
export type * from './unions/ClassElement';
24+
export type * from './unions/Comment';
25+
export type * from './unions/DeclarationStatement';
26+
export type * from './unions/DestructuringPattern';
27+
export type * from './unions/EntityName';
28+
export type * from './unions/ExportDeclaration';
29+
export type * from './unions/Expression';
30+
export type * from './unions/ForInitialiser';
31+
export type * from './unions/FunctionLike';
32+
export type * from './unions/ImportClause';
33+
export type * from './unions/IterationStatement';
34+
export type * from './unions/JSXChild';
35+
export type * from './unions/JSXExpression';
36+
export type * from './unions/JSXTagNameExpression';
37+
export type * from './unions/LeftHandSideExpression';
38+
export type * from './unions/Literal';
39+
export type * from './unions/LiteralExpression';
40+
export type * from './unions/Node';
41+
export type * from './unions/ObjectLiteralElement';
42+
export type * from './unions/Parameter';
43+
export type * from './unions/PrimaryExpression';
44+
export type * from './unions/PropertyName';
45+
export type * from './unions/Statement';
46+
export type * from './unions/Token';
47+
export type * from './unions/TSUnaryExpression';
48+
export type * from './unions/TypeElement';
49+
export type * from './unions/TypeNode';

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy