New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
misc tests #268
Comments
run #13677 vs prettier/prettier#next |
prettier/prettier#13677 VS prettier/prettier@next
diff --git ORI/eslint-plugin-vue/lib/rules/no-empty-component-block.js ALT/eslint-plugin-vue/lib/rules/no-empty-component-block.js
index 6378dcd..d34ea4a 100644
--- ORI/eslint-plugin-vue/lib/rules/no-empty-component-block.js
+++ ALT/eslint-plugin-vue/lib/rules/no-empty-component-block.js
@@ -83,8 +83,7 @@ module.exports = {
componentBlock.name !== 'template' &&
componentBlock.name !== 'script' &&
componentBlock.name !== 'style'
- )
- continue
+ ) continue
// https://vue-loader.vuejs.org/spec.html#src-imports
if (hasAttributeSrc(componentBlock)) continue
|
Run #14077 vs 2.8.1 |
prettier/prettier#14077 VS prettier/prettier@2.8.1
Diff (70 lines)diff --git ORI/babel/packages/babel-core/src/config/files/index.ts ALT/babel/packages/babel-core/src/config/files/index.ts
index 31e85602..5c340eb4 100644
--- ORI/babel/packages/babel-core/src/config/files/index.ts
+++ ALT/babel/packages/babel-core/src/config/files/index.ts
@@ -3,7 +3,7 @@ type indexType = typeof import("./index");
// Kind of gross, but essentially asserting that the exports of this module are the same as the
// exports of index-browser, since this file may be replaced at bundle time with index-browser.
-({} as any as indexBrowserType as indexType);
+({}) as any as indexBrowserType as indexType;
export { findPackageData } from "./package";
diff --git ORI/babel/packages/babel-core/src/config/resolve-targets.ts ALT/babel/packages/babel-core/src/config/resolve-targets.ts
index a7d9a790..04c7fec4 100644
--- ORI/babel/packages/babel-core/src/config/resolve-targets.ts
+++ ALT/babel/packages/babel-core/src/config/resolve-targets.ts
@@ -3,7 +3,7 @@ type nodeType = typeof import("./resolve-targets");
// Kind of gross, but essentially asserting that the exports of this module are the same as the
// exports of index-browser, since this file may be replaced at bundle time with index-browser.
-({} as any as browserType as nodeType);
+({}) as any as browserType as nodeType;
import type { ValidatedOptions } from "./validation/options";
import path from "path";
diff --git ORI/babel/packages/babel-core/src/transform-file.ts ALT/babel/packages/babel-core/src/transform-file.ts
index c493425d..c9706ba8 100644
--- ORI/babel/packages/babel-core/src/transform-file.ts
+++ ALT/babel/packages/babel-core/src/transform-file.ts
@@ -12,7 +12,7 @@ type transformFileType = typeof import("./transform-file");
// Kind of gross, but essentially asserting that the exports of this module are the same as the
// exports of transform-file-browser, since this file may be replaced at bundle time with
// transform-file-browser.
-({} as any as transformFileBrowserType as transformFileType);
+({}) as any as transformFileBrowserType as transformFileType;
const transformFileRunner = gensync(function* (
filename: string,
diff --git ORI/typescript-eslint/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/object-object-inner-parentheses/fixture.ts ALT/typescript-eslint/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/object-object-inner-parentheses/fixture.ts
index b7726f7..ec7b71c 100644
--- ORI/typescript-eslint/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/object-object-inner-parentheses/fixture.ts
+++ ALT/typescript-eslint/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/object-object-inner-parentheses/fixture.ts
@@ -1 +1 @@
-({ prop: 'string' } satisfies { prop: string });
+({ prop: 'string' }) satisfies { prop: string };
diff --git ORI/typescript-eslint/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/object-object-outer-parentheses/fixture.ts ALT/typescript-eslint/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/object-object-outer-parentheses/fixture.ts
index b7726f7..ec7b71c 100644
--- ORI/typescript-eslint/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/object-object-outer-parentheses/fixture.ts
+++ ALT/typescript-eslint/packages/ast-spec/src/expression/TSSatisfiesExpression/fixtures/object-object-outer-parentheses/fixture.ts
@@ -1 +1 @@
-({ prop: 'string' } satisfies { prop: string });
+({ prop: 'string' }) satisfies { prop: string };
diff --git ORI/typescript-eslint/packages/eslint-plugin/docs/rules/no-base-to-string.md ALT/typescript-eslint/packages/eslint-plugin/docs/rules/no-base-to-string.md
index 7409f5e..a5493c7 100644
--- ORI/typescript-eslint/packages/eslint-plugin/docs/rules/no-base-to-string.md
+++ ALT/typescript-eslint/packages/eslint-plugin/docs/rules/no-base-to-string.md
@@ -29,7 +29,7 @@ value + '';
// Interpolation and manual .toString() calls too:
`Value: ${value}`;
-({}.toString());
+({}).toString();
```
### ✅ Correct
|
Run thorn0/prettier#callAncestor-7976 vs #14077 |
thorn0/prettier@callAncestor-7976 VS prettier/prettier#14077
The diff is empty. |
Run #14111 vs prettier/prettier@next |
Run #14171 vs prettier/prettier@next |
Run #14171 vs prettier/prettier@next |
Run #14189 vs prettier/prettier@next |
prettier/prettier#14189 VS prettier/prettier@next
diff --git ORI/babel/packages/babel-template/src/builder.ts ALT/babel/packages/babel-template/src/builder.ts
index e3acc387..faa7ee71 100644
--- ORI/babel/packages/babel-template/src/builder.ts
+++ ALT/babel/packages/babel-template/src/builder.ts
@@ -13,9 +13,10 @@ export type TemplateBuilder<T> = {
(tpl: string, opts?: PublicOpts): (replacements?: PublicReplacements) => T;
// Building from a template literal produces an AST builder function by default.
- (tpl: TemplateStringsArray, ...args: Array<unknown>): (
- replacements?: PublicReplacements,
- ) => T;
+ (
+ tpl: TemplateStringsArray,
+ ...args: Array<unknown>
+ ): (replacements?: PublicReplacements) => T;
// Allow users to explicitly create templates that produce ASTs, skipping
// the need for an intermediate function.
diff --git ORI/babel/packages/babel-types/src/retrievers/getOuterBindingIdentifiers.ts ALT/babel/packages/babel-types/src/retrievers/getOuterBindingIdentifiers.ts
index f47eee43..935ed613 100644
--- ORI/babel/packages/babel-types/src/retrievers/getOuterBindingIdentifiers.ts
+++ ALT/babel/packages/babel-types/src/retrievers/getOuterBindingIdentifiers.ts
@@ -4,9 +4,10 @@ import type * as t from "..";
export default getOuterBindingIdentifiers as {
(node: t.Node, duplicates: true): Record<string, Array<t.Identifier>>;
(node: t.Node, duplicates?: false): Record<string, t.Identifier>;
- (node: t.Node, duplicates?: boolean):
- | Record<string, t.Identifier>
- | Record<string, Array<t.Identifier>>;
+ (
+ node: t.Node,
+ duplicates?: boolean,
+ ): Record<string, t.Identifier> | Record<string, Array<t.Identifier>>;
};
function getOuterBindingIdentifiers(
|
Run #14192 vs prettier/prettier@next |
Run #14259 vs prettier/prettier@next |
This comment was marked as outdated.
This comment was marked as outdated.
Run #14259 vs prettier/prettier@next |
prettier/prettier#14259 VS prettier/prettier@next
Diff (821 lines)diff --git ORI/babel/packages/babel-parser/src/plugins/typescript/scope.ts ALT/babel/packages/babel-parser/src/plugins/typescript/scope.ts
index dff7669b..02cd8569 100644
--- ORI/babel/packages/babel-parser/src/plugins/typescript/scope.ts
+++ ALT/babel/packages/babel-parser/src/plugins/typescript/scope.ts
@@ -37,7 +37,9 @@ class TypeScriptScope extends Scope {
// See https://github.com/babel/babel/pull/9766#discussion_r268920730 for an
// explanation of how typescript handles scope.
-export default class TypeScriptScopeHandler extends ScopeHandler<TypeScriptScope> {
+export default class TypeScriptScopeHandler
+ extends ScopeHandler<TypeScriptScope>
+{
importsStack: Set<string>[] = [];
createScope(flags: ScopeFlags): TypeScriptScope {
diff --git ORI/excalidraw/src/components/TopErrorBoundary.tsx ALT/excalidraw/src/components/TopErrorBoundary.tsx
index ce81ec0..81e4eb8 100644
--- ORI/excalidraw/src/components/TopErrorBoundary.tsx
+++ ALT/excalidraw/src/components/TopErrorBoundary.tsx
@@ -8,10 +8,9 @@ interface TopErrorBoundaryState {
localStorage: string;
}
-export class TopErrorBoundary extends React.Component<
- any,
- TopErrorBoundaryState
-> {
+export class TopErrorBoundary
+ extends React.Component<any, TopErrorBoundaryState>
+{
state: TopErrorBoundaryState = {
hasError: false,
sentryEventId: "",
diff --git ORI/typescript-eslint/packages/eslint-plugin/src/util/collectUnusedVariables.ts ALT/typescript-eslint/packages/eslint-plugin/src/util/collectUnusedVariables.ts
index ba3beb6..92e8a85 100644
--- ORI/typescript-eslint/packages/eslint-plugin/src/util/collectUnusedVariables.ts
+++ ALT/typescript-eslint/packages/eslint-plugin/src/util/collectUnusedVariables.ts
@@ -11,7 +11,8 @@ import {
class UnusedVarsVisitor<
TMessageIds extends string,
TOptions extends readonly unknown[],
-> extends Visitor {
+> extends Visitor
+{
private static readonly RESULTS_CACHE = new WeakMap<
TSESTree.Program,
ReadonlySet<TSESLint.Scope.Variable>
diff --git ORI/typescript-eslint/packages/scope-manager/src/definition/CatchClauseDefinition.ts ALT/typescript-eslint/packages/scope-manager/src/definition/CatchClauseDefinition.ts
index 10dccb9..a8e478e 100644
--- ORI/typescript-eslint/packages/scope-manager/src/definition/CatchClauseDefinition.ts
+++ ALT/typescript-eslint/packages/scope-manager/src/definition/CatchClauseDefinition.ts
@@ -3,12 +3,15 @@ import type { TSESTree } from '@typescript-eslint/types';
import { DefinitionBase } from './DefinitionBase';
import { DefinitionType } from './DefinitionType';
-class CatchClauseDefinition extends DefinitionBase<
- DefinitionType.CatchClause,
- TSESTree.CatchClause,
- null,
- TSESTree.BindingName
-> {
+class CatchClauseDefinition
+ extends
+ DefinitionBase<
+ DefinitionType.CatchClause,
+ TSESTree.CatchClause,
+ null,
+ TSESTree.BindingName
+ >
+{
constructor(name: TSESTree.BindingName, node: CatchClauseDefinition['node']) {
super(DefinitionType.CatchClause, name, node, null);
}
diff --git ORI/typescript-eslint/packages/scope-manager/src/definition/ClassNameDefinition.ts ALT/typescript-eslint/packages/scope-manager/src/definition/ClassNameDefinition.ts
index 62e1d4a..4d6d3c2 100644
--- ORI/typescript-eslint/packages/scope-manager/src/definition/ClassNameDefinition.ts
+++ ALT/typescript-eslint/packages/scope-manager/src/definition/ClassNameDefinition.ts
@@ -3,12 +3,15 @@ import type { TSESTree } from '@typescript-eslint/types';
import { DefinitionBase } from './DefinitionBase';
import { DefinitionType } from './DefinitionType';
-class ClassNameDefinition extends DefinitionBase<
- DefinitionType.ClassName,
- TSESTree.ClassDeclaration | TSESTree.ClassExpression,
- null,
- TSESTree.Identifier
-> {
+class ClassNameDefinition
+ extends
+ DefinitionBase<
+ DefinitionType.ClassName,
+ TSESTree.ClassDeclaration | TSESTree.ClassExpression,
+ null,
+ TSESTree.Identifier
+ >
+{
constructor(name: TSESTree.Identifier, node: ClassNameDefinition['node']) {
super(DefinitionType.ClassName, name, node, null);
}
diff --git ORI/typescript-eslint/packages/scope-manager/src/definition/DefinitionBase.ts ALT/typescript-eslint/packages/scope-manager/src/definition/DefinitionBase.ts
index 2418e5e..6a61311 100644
--- ORI/typescript-eslint/packages/scope-manager/src/definition/DefinitionBase.ts
+++ ALT/typescript-eslint/packages/scope-manager/src/definition/DefinitionBase.ts
@@ -10,7 +10,8 @@ abstract class DefinitionBase<
TNode extends TSESTree.Node,
TParent extends TSESTree.Node | null,
TName extends TSESTree.Node = TSESTree.BindingName,
-> {
+>
+{
/**
* A unique ID for this instance - primarily used to help debugging and testing
*/
diff --git ORI/typescript-eslint/packages/scope-manager/src/definition/FunctionNameDefinition.ts ALT/typescript-eslint/packages/scope-manager/src/definition/FunctionNameDefinition.ts
index 8c42adf..cefb2da 100644
--- ORI/typescript-eslint/packages/scope-manager/src/definition/FunctionNameDefinition.ts
+++ ALT/typescript-eslint/packages/scope-manager/src/definition/FunctionNameDefinition.ts
@@ -3,15 +3,18 @@ import type { TSESTree } from '@typescript-eslint/types';
import { DefinitionBase } from './DefinitionBase';
import { DefinitionType } from './DefinitionType';
-class FunctionNameDefinition extends DefinitionBase<
- DefinitionType.FunctionName,
- | TSESTree.FunctionDeclaration
- | TSESTree.FunctionExpression
- | TSESTree.TSDeclareFunction
- | TSESTree.TSEmptyBodyFunctionExpression,
- null,
- TSESTree.Identifier
-> {
+class FunctionNameDefinition
+ extends
+ DefinitionBase<
+ DefinitionType.FunctionName,
+ | TSESTree.FunctionDeclaration
+ | TSESTree.FunctionExpression
+ | TSESTree.TSDeclareFunction
+ | TSESTree.TSEmptyBodyFunctionExpression,
+ null,
+ TSESTree.Identifier
+ >
+{
constructor(name: TSESTree.Identifier, node: FunctionNameDefinition['node']) {
super(DefinitionType.FunctionName, name, node, null);
}
diff --git ORI/typescript-eslint/packages/scope-manager/src/definition/ImplicitGlobalVariableDefinition.ts ALT/typescript-eslint/packages/scope-manager/src/definition/ImplicitGlobalVariableDefinition.ts
index 35c2a5b..5cf5210 100644
--- ORI/typescript-eslint/packages/scope-manager/src/definition/ImplicitGlobalVariableDefinition.ts
+++ ALT/typescript-eslint/packages/scope-manager/src/definition/ImplicitGlobalVariableDefinition.ts
@@ -3,12 +3,15 @@ import type { TSESTree } from '@typescript-eslint/types';
import { DefinitionBase } from './DefinitionBase';
import { DefinitionType } from './DefinitionType';
-class ImplicitGlobalVariableDefinition extends DefinitionBase<
- DefinitionType.ImplicitGlobalVariable,
- TSESTree.Node,
- null,
- TSESTree.BindingName
-> {
+class ImplicitGlobalVariableDefinition
+ extends
+ DefinitionBase<
+ DefinitionType.ImplicitGlobalVariable,
+ TSESTree.Node,
+ null,
+ TSESTree.BindingName
+ >
+{
constructor(
name: TSESTree.BindingName,
node: ImplicitGlobalVariableDefinition['node'],
diff --git ORI/typescript-eslint/packages/scope-manager/src/definition/ImportBindingDefinition.ts ALT/typescript-eslint/packages/scope-manager/src/definition/ImportBindingDefinition.ts
index 2003158..3840943 100644
--- ORI/typescript-eslint/packages/scope-manager/src/definition/ImportBindingDefinition.ts
+++ ALT/typescript-eslint/packages/scope-manager/src/definition/ImportBindingDefinition.ts
@@ -3,15 +3,18 @@ import type { TSESTree } from '@typescript-eslint/types';
import { DefinitionBase } from './DefinitionBase';
import { DefinitionType } from './DefinitionType';
-class ImportBindingDefinition extends DefinitionBase<
- DefinitionType.ImportBinding,
- | TSESTree.ImportSpecifier
- | TSESTree.ImportDefaultSpecifier
- | TSESTree.ImportNamespaceSpecifier
- | TSESTree.TSImportEqualsDeclaration,
- TSESTree.ImportDeclaration | TSESTree.TSImportEqualsDeclaration,
- TSESTree.Identifier
-> {
+class ImportBindingDefinition
+ extends
+ DefinitionBase<
+ DefinitionType.ImportBinding,
+ | TSESTree.ImportSpecifier
+ | TSESTree.ImportDefaultSpecifier
+ | TSESTree.ImportNamespaceSpecifier
+ | TSESTree.TSImportEqualsDeclaration,
+ TSESTree.ImportDeclaration | TSESTree.TSImportEqualsDeclaration,
+ TSESTree.Identifier
+ >
+{
constructor(
name: TSESTree.Identifier,
node: TSESTree.TSImportEqualsDeclaration,
diff --git ORI/typescript-eslint/packages/scope-manager/src/definition/ParameterDefinition.ts ALT/typescript-eslint/packages/scope-manager/src/definition/ParameterDefinition.ts
index 631d2df..d0e292a 100644
--- ORI/typescript-eslint/packages/scope-manager/src/definition/ParameterDefinition.ts
+++ ALT/typescript-eslint/packages/scope-manager/src/definition/ParameterDefinition.ts
@@ -3,21 +3,24 @@ import type { TSESTree } from '@typescript-eslint/types';
import { DefinitionBase } from './DefinitionBase';
import { DefinitionType } from './DefinitionType';
-class ParameterDefinition extends DefinitionBase<
- DefinitionType.Parameter,
- | TSESTree.ArrowFunctionExpression
- | TSESTree.FunctionDeclaration
- | TSESTree.FunctionExpression
- | TSESTree.TSCallSignatureDeclaration
- | TSESTree.TSConstructorType
- | TSESTree.TSConstructSignatureDeclaration
- | TSESTree.TSDeclareFunction
- | TSESTree.TSEmptyBodyFunctionExpression
- | TSESTree.TSFunctionType
- | TSESTree.TSMethodSignature,
- null,
- TSESTree.BindingName
-> {
+class ParameterDefinition
+ extends
+ DefinitionBase<
+ DefinitionType.Parameter,
+ | TSESTree.ArrowFunctionExpression
+ | TSESTree.FunctionDeclaration
+ | TSESTree.FunctionExpression
+ | TSESTree.TSCallSignatureDeclaration
+ | TSESTree.TSConstructorType
+ | TSESTree.TSConstructSignatureDeclaration
+ | TSESTree.TSDeclareFunction
+ | TSESTree.TSEmptyBodyFunctionExpression
+ | TSESTree.TSFunctionType
+ | TSESTree.TSMethodSignature,
+ null,
+ TSESTree.BindingName
+ >
+{
/**
* Whether the parameter definition is a part of a rest parameter.
*/
diff --git ORI/typescript-eslint/packages/scope-manager/src/definition/TSEnumMemberDefinition.ts ALT/typescript-eslint/packages/scope-manager/src/definition/TSEnumMemberDefinition.ts
index a4380cc..9782aee 100644
--- ORI/typescript-eslint/packages/scope-manager/src/definition/TSEnumMemberDefinition.ts
+++ ALT/typescript-eslint/packages/scope-manager/src/definition/TSEnumMemberDefinition.ts
@@ -3,12 +3,15 @@ import type { TSESTree } from '@typescript-eslint/types';
import { DefinitionBase } from './DefinitionBase';
import { DefinitionType } from './DefinitionType';
-class TSEnumMemberDefinition extends DefinitionBase<
- DefinitionType.TSEnumMember,
- TSESTree.TSEnumMember,
- null,
- TSESTree.Identifier | TSESTree.StringLiteral
-> {
+class TSEnumMemberDefinition
+ extends
+ DefinitionBase<
+ DefinitionType.TSEnumMember,
+ TSESTree.TSEnumMember,
+ null,
+ TSESTree.Identifier | TSESTree.StringLiteral
+ >
+{
constructor(
name: TSESTree.Identifier | TSESTree.StringLiteral,
node: TSEnumMemberDefinition['node'],
diff --git ORI/typescript-eslint/packages/scope-manager/src/definition/TSEnumNameDefinition.ts ALT/typescript-eslint/packages/scope-manager/src/definition/TSEnumNameDefinition.ts
index 094047d..83148ab 100644
--- ORI/typescript-eslint/packages/scope-manager/src/definition/TSEnumNameDefinition.ts
+++ ALT/typescript-eslint/packages/scope-manager/src/definition/TSEnumNameDefinition.ts
@@ -3,12 +3,15 @@ import type { TSESTree } from '@typescript-eslint/types';
import { DefinitionBase } from './DefinitionBase';
import { DefinitionType } from './DefinitionType';
-class TSEnumNameDefinition extends DefinitionBase<
- DefinitionType.TSEnumName,
- TSESTree.TSEnumDeclaration,
- null,
- TSESTree.Identifier
-> {
+class TSEnumNameDefinition
+ extends
+ DefinitionBase<
+ DefinitionType.TSEnumName,
+ TSESTree.TSEnumDeclaration,
+ null,
+ TSESTree.Identifier
+ >
+{
constructor(name: TSESTree.Identifier, node: TSEnumNameDefinition['node']) {
super(DefinitionType.TSEnumName, name, node, null);
}
diff --git ORI/typescript-eslint/packages/scope-manager/src/definition/TSModuleNameDefinition.ts ALT/typescript-eslint/packages/scope-manager/src/definition/TSModuleNameDefinition.ts
index bad778f..590c360 100644
--- ORI/typescript-eslint/packages/scope-manager/src/definition/TSModuleNameDefinition.ts
+++ ALT/typescript-eslint/packages/scope-manager/src/definition/TSModuleNameDefinition.ts
@@ -3,12 +3,15 @@ import type { TSESTree } from '@typescript-eslint/types';
import { DefinitionBase } from './DefinitionBase';
import { DefinitionType } from './DefinitionType';
-class TSModuleNameDefinition extends DefinitionBase<
- DefinitionType.TSModuleName,
- TSESTree.TSModuleDeclaration,
- null,
- TSESTree.Identifier
-> {
+class TSModuleNameDefinition
+ extends
+ DefinitionBase<
+ DefinitionType.TSModuleName,
+ TSESTree.TSModuleDeclaration,
+ null,
+ TSESTree.Identifier
+ >
+{
constructor(name: TSESTree.Identifier, node: TSModuleNameDefinition['node']) {
super(DefinitionType.TSModuleName, name, node, null);
}
diff --git ORI/typescript-eslint/packages/scope-manager/src/definition/TypeDefinition.ts ALT/typescript-eslint/packages/scope-manager/src/definition/TypeDefinition.ts
index 506274d..b72459b 100644
--- ORI/typescript-eslint/packages/scope-manager/src/definition/TypeDefinition.ts
+++ ALT/typescript-eslint/packages/scope-manager/src/definition/TypeDefinition.ts
@@ -3,14 +3,17 @@ import type { TSESTree } from '@typescript-eslint/types';
import { DefinitionBase } from './DefinitionBase';
import { DefinitionType } from './DefinitionType';
-class TypeDefinition extends DefinitionBase<
- DefinitionType.Type,
- | TSESTree.TSInterfaceDeclaration
- | TSESTree.TSTypeAliasDeclaration
- | TSESTree.TSTypeParameter,
- null,
- TSESTree.Identifier
-> {
+class TypeDefinition
+ extends
+ DefinitionBase<
+ DefinitionType.Type,
+ | TSESTree.TSInterfaceDeclaration
+ | TSESTree.TSTypeAliasDeclaration
+ | TSESTree.TSTypeParameter,
+ null,
+ TSESTree.Identifier
+ >
+{
constructor(name: TSESTree.Identifier, node: TypeDefinition['node']) {
super(DefinitionType.Type, name, node, null);
}
diff --git ORI/typescript-eslint/packages/scope-manager/src/definition/VariableDefinition.ts ALT/typescript-eslint/packages/scope-manager/src/definition/VariableDefinition.ts
index 8883c4c..c4c62da 100644
--- ORI/typescript-eslint/packages/scope-manager/src/definition/VariableDefinition.ts
+++ ALT/typescript-eslint/packages/scope-manager/src/definition/VariableDefinition.ts
@@ -3,12 +3,15 @@ import type { TSESTree } from '@typescript-eslint/types';
import { DefinitionBase } from './DefinitionBase';
import { DefinitionType } from './DefinitionType';
-class VariableDefinition extends DefinitionBase<
- DefinitionType.Variable,
- TSESTree.VariableDeclarator,
- TSESTree.VariableDeclaration,
- TSESTree.Identifier
-> {
+class VariableDefinition
+ extends
+ DefinitionBase<
+ DefinitionType.Variable,
+ TSESTree.VariableDeclarator,
+ TSESTree.VariableDeclaration,
+ TSESTree.Identifier
+ >
+{
constructor(
name: TSESTree.Identifier,
node: VariableDefinition['node'],
diff --git ORI/typescript-eslint/packages/scope-manager/src/scope/BlockScope.ts ALT/typescript-eslint/packages/scope-manager/src/scope/BlockScope.ts
index 58e836e..81aad7f 100644
--- ORI/typescript-eslint/packages/scope-manager/src/scope/BlockScope.ts
+++ ALT/typescript-eslint/packages/scope-manager/src/scope/BlockScope.ts
@@ -5,11 +5,9 @@ import type { Scope } from './Scope';
import { ScopeBase } from './ScopeBase';
import { ScopeType } from './ScopeType';
-class BlockScope extends ScopeBase<
- ScopeType.block,
- TSESTree.BlockStatement,
- Scope
-> {
+class BlockScope
+ extends ScopeBase<ScopeType.block, TSESTree.BlockStatement, Scope>
+{
constructor(
scopeManager: ScopeManager,
upperScope: BlockScope['upper'],
diff --git ORI/typescript-eslint/packages/scope-manager/src/scope/CatchScope.ts ALT/typescript-eslint/packages/scope-manager/src/scope/CatchScope.ts
index d6ea58f..181eded 100644
--- ORI/typescript-eslint/packages/scope-manager/src/scope/CatchScope.ts
+++ ALT/typescript-eslint/packages/scope-manager/src/scope/CatchScope.ts
@@ -5,11 +5,9 @@ import type { Scope } from './Scope';
import { ScopeBase } from './ScopeBase';
import { ScopeType } from './ScopeType';
-class CatchScope extends ScopeBase<
- ScopeType.catch,
- TSESTree.CatchClause,
- Scope
-> {
+class CatchScope
+ extends ScopeBase<ScopeType.catch, TSESTree.CatchClause, Scope>
+{
constructor(
scopeManager: ScopeManager,
upperScope: CatchScope['upper'],
diff --git ORI/typescript-eslint/packages/scope-manager/src/scope/ClassFieldInitializerScope.ts ALT/typescript-eslint/packages/scope-manager/src/scope/ClassFieldInitializerScope.ts
index c251390..af50cdd 100644
--- ORI/typescript-eslint/packages/scope-manager/src/scope/ClassFieldInitializerScope.ts
+++ ALT/typescript-eslint/packages/scope-manager/src/scope/ClassFieldInitializerScope.ts
@@ -5,12 +5,15 @@ import type { Scope } from './Scope';
import { ScopeBase } from './ScopeBase';
import { ScopeType } from './ScopeType';
-class ClassFieldInitializerScope extends ScopeBase<
- ScopeType.classFieldInitializer,
- // the value expression itself is the block
- TSESTree.Expression,
- Scope
-> {
+class ClassFieldInitializerScope
+ extends
+ ScopeBase<
+ ScopeType.classFieldInitializer,
+ // the value expression itself is the block
+ TSESTree.Expression,
+ Scope
+ >
+{
constructor(
scopeManager: ScopeManager,
upperScope: ClassFieldInitializerScope['upper'],
diff --git ORI/typescript-eslint/packages/scope-manager/src/scope/ClassScope.ts ALT/typescript-eslint/packages/scope-manager/src/scope/ClassScope.ts
index b280cad..294b061 100644
--- ORI/typescript-eslint/packages/scope-manager/src/scope/ClassScope.ts
+++ ALT/typescript-eslint/packages/scope-manager/src/scope/ClassScope.ts
@@ -5,11 +5,14 @@ import type { Scope } from './Scope';
import { ScopeBase } from './ScopeBase';
import { ScopeType } from './ScopeType';
-class ClassScope extends ScopeBase<
- ScopeType.class,
- TSESTree.ClassDeclaration | TSESTree.ClassExpression,
- Scope
-> {
+class ClassScope
+ extends
+ ScopeBase<
+ ScopeType.class,
+ TSESTree.ClassDeclaration | TSESTree.ClassExpression,
+ Scope
+ >
+{
constructor(
scopeManager: ScopeManager,
upperScope: ClassScope['upper'],
diff --git ORI/typescript-eslint/packages/scope-manager/src/scope/ClassStaticBlockScope.ts ALT/typescript-eslint/packages/scope-manager/src/scope/ClassStaticBlockScope.ts
index a9eb599..7213a9f 100644
--- ORI/typescript-eslint/packages/scope-manager/src/scope/ClassStaticBlockScope.ts
+++ ALT/typescript-eslint/packages/scope-manager/src/scope/ClassStaticBlockScope.ts
@@ -5,11 +5,9 @@ import type { Scope } from './Scope';
import { ScopeBase } from './ScopeBase';
import { ScopeType } from './ScopeType';
-class ClassStaticBlockScope extends ScopeBase<
- ScopeType.classStaticBlock,
- TSESTree.StaticBlock,
- Scope
-> {
+class ClassStaticBlockScope
+ extends ScopeBase<ScopeType.classStaticBlock, TSESTree.StaticBlock, Scope>
+{
constructor(
scopeManager: ScopeManager,
upperScope: ClassStaticBlockScope['upper'],
diff --git ORI/typescript-eslint/packages/scope-manager/src/scope/ConditionalTypeScope.ts ALT/typescript-eslint/packages/scope-manager/src/scope/ConditionalTypeScope.ts
index 7175457..929d6fd 100644
--- ORI/typescript-eslint/packages/scope-manager/src/scope/ConditionalTypeScope.ts
+++ ALT/typescript-eslint/packages/scope-manager/src/scope/ConditionalTypeScope.ts
@@ -5,11 +5,10 @@ import type { Scope } from './Scope';
import { ScopeBase } from './ScopeBase';
import { ScopeType } from './ScopeType';
-class ConditionalTypeScope extends ScopeBase<
- ScopeType.conditionalType,
- TSESTree.TSConditionalType,
- Scope
-> {
+class ConditionalTypeScope
+ extends
+ ScopeBase<ScopeType.conditionalType, TSESTree.TSConditionalType, Scope>
+{
constructor(
scopeManager: ScopeManager,
upperScope: ConditionalTypeScope['upper'],
diff --git ORI/typescript-eslint/packages/scope-manager/src/scope/ForScope.ts ALT/typescript-eslint/packages/scope-manager/src/scope/ForScope.ts
index 6b12f0c..d1a278c 100644
--- ORI/typescript-eslint/packages/scope-manager/src/scope/ForScope.ts
+++ ALT/typescript-eslint/packages/scope-manager/src/scope/ForScope.ts
@@ -5,11 +5,14 @@ import type { Scope } from './Scope';
import { ScopeBase } from './ScopeBase';
import { ScopeType } from './ScopeType';
-class ForScope extends ScopeBase<
- ScopeType.for,
- TSESTree.ForInStatement | TSESTree.ForOfStatement | TSESTree.ForStatement,
- Scope
-> {
+class ForScope
+ extends
+ ScopeBase<
+ ScopeType.for,
+ TSESTree.ForInStatement | TSESTree.ForOfStatement | TSESTree.ForStatement,
+ Scope
+ >
+{
constructor(
scopeManager: ScopeManager,
upperScope: ForScope['upper'],
diff --git ORI/typescript-eslint/packages/scope-manager/src/scope/FunctionExpressionNameScope.ts ALT/typescript-eslint/packages/scope-manager/src/scope/FunctionExpressionNameScope.ts
index d3c8825..806f055 100644
--- ORI/typescript-eslint/packages/scope-manager/src/scope/FunctionExpressionNameScope.ts
+++ ALT/typescript-eslint/packages/scope-manager/src/scope/FunctionExpressionNameScope.ts
@@ -6,11 +6,14 @@ import type { Scope } from './Scope';
import { ScopeBase } from './ScopeBase';
import { ScopeType } from './ScopeType';
-class FunctionExpressionNameScope extends ScopeBase<
- ScopeType.functionExpressionName,
- TSESTree.FunctionExpression,
- Scope
-> {
+class FunctionExpressionNameScope
+ extends
+ ScopeBase<
+ ScopeType.functionExpressionName,
+ TSESTree.FunctionExpression,
+ Scope
+ >
+{
public readonly functionExpressionScope: true;
constructor(
scopeManager: ScopeManager,
diff --git ORI/typescript-eslint/packages/scope-manager/src/scope/FunctionScope.ts ALT/typescript-eslint/packages/scope-manager/src/scope/FunctionScope.ts
index c2a48fc..4c1d6b5 100644
--- ORI/typescript-eslint/packages/scope-manager/src/scope/FunctionScope.ts
+++ ALT/typescript-eslint/packages/scope-manager/src/scope/FunctionScope.ts
@@ -8,16 +8,19 @@ import type { Scope } from './Scope';
import { ScopeBase } from './ScopeBase';
import { ScopeType } from './ScopeType';
-class FunctionScope extends ScopeBase<
- ScopeType.function,
- | TSESTree.ArrowFunctionExpression
- | TSESTree.FunctionDeclaration
- | TSESTree.FunctionExpression
- | TSESTree.TSDeclareFunction
- | TSESTree.TSEmptyBodyFunctionExpression
- | TSESTree.Program,
- Scope
-> {
+class FunctionScope
+ extends
+ ScopeBase<
+ ScopeType.function,
+ | TSESTree.ArrowFunctionExpression
+ | TSESTree.FunctionDeclaration
+ | TSESTree.FunctionExpression
+ | TSESTree.TSDeclareFunction
+ | TSESTree.TSEmptyBodyFunctionExpression
+ | TSESTree.Program,
+ Scope
+ >
+{
constructor(
scopeManager: ScopeManager,
upperScope: FunctionScope['upper'],
diff --git ORI/typescript-eslint/packages/scope-manager/src/scope/FunctionTypeScope.ts ALT/typescript-eslint/packages/scope-manager/src/scope/FunctionTypeScope.ts
index f6029a0..56b1021 100644
--- ORI/typescript-eslint/packages/scope-manager/src/scope/FunctionTypeScope.ts
+++ ALT/typescript-eslint/packages/scope-manager/src/scope/FunctionTypeScope.ts
@@ -5,15 +5,18 @@ import type { Scope } from './Scope';
import { ScopeBase } from './ScopeBase';
import { ScopeType } from './ScopeType';
-class FunctionTypeScope extends ScopeBase<
- ScopeType.functionType,
- | TSESTree.TSCallSignatureDeclaration
- | TSESTree.TSConstructorType
- | TSESTree.TSConstructSignatureDeclaration
- | TSESTree.TSFunctionType
- | TSESTree.TSMethodSignature,
- Scope
-> {
+class FunctionTypeScope
+ extends
+ ScopeBase<
+ ScopeType.functionType,
+ | TSESTree.TSCallSignatureDeclaration
+ | TSESTree.TSConstructorType
+ | TSESTree.TSConstructSignatureDeclaration
+ | TSESTree.TSFunctionType
+ | TSESTree.TSMethodSignature,
+ Scope
+ >
+{
constructor(
scopeManager: ScopeManager,
upperScope: FunctionTypeScope['upper'],
diff --git ORI/typescript-eslint/packages/scope-manager/src/scope/GlobalScope.ts ALT/typescript-eslint/packages/scope-manager/src/scope/GlobalScope.ts
index de253e5..a50034b 100644
--- ORI/typescript-eslint/packages/scope-manager/src/scope/GlobalScope.ts
+++ ALT/typescript-eslint/packages/scope-manager/src/scope/GlobalScope.ts
@@ -11,14 +11,17 @@ import type { Scope } from './Scope';
import { ScopeBase } from './ScopeBase';
import { ScopeType } from './ScopeType';
-class GlobalScope extends ScopeBase<
- ScopeType.global,
- TSESTree.Program,
- /**
- * The global scope has no parent.
- */
- null
-> {
+class GlobalScope
+ extends
+ ScopeBase<
+ ScopeType.global,
+ TSESTree.Program,
+ /**
+ * The global scope has no parent.
+ */
+ null
+ >
+{
// note this is accessed in used in the legacy eslint-scope tests, so it can't be true private
private readonly implicit: {
readonly set: Map<string, Variable>;
diff --git ORI/typescript-eslint/packages/scope-manager/src/scope/MappedTypeScope.ts ALT/typescript-eslint/packages/scope-manager/src/scope/MappedTypeScope.ts
index 4711b18..47ebb5c 100644
--- ORI/typescript-eslint/packages/scope-manager/src/scope/MappedTypeScope.ts
+++ ALT/typescript-eslint/packages/scope-manager/src/scope/MappedTypeScope.ts
@@ -5,11 +5,9 @@ import type { Scope } from './Scope';
import { ScopeBase } from './ScopeBase';
import { ScopeType } from './ScopeType';
-class MappedTypeScope extends ScopeBase<
- ScopeType.mappedType,
- TSESTree.TSMappedType,
- Scope
-> {
+class MappedTypeScope
+ extends ScopeBase<ScopeType.mappedType, TSESTree.TSMappedType, Scope>
+{
constructor(
scopeManager: ScopeManager,
upperScope: MappedTypeScope['upper'],
diff --git ORI/typescript-eslint/packages/scope-manager/src/scope/ScopeBase.ts ALT/typescript-eslint/packages/scope-manager/src/scope/ScopeBase.ts
index ae26d12..6f7e54e 100644
--- ORI/typescript-eslint/packages/scope-manager/src/scope/ScopeBase.ts
+++ ALT/typescript-eslint/packages/scope-manager/src/scope/ScopeBase.ts
@@ -139,7 +139,8 @@ abstract class ScopeBase<
TType extends ScopeType,
TBlock extends TSESTree.Node,
TUpper extends Scope | null,
-> {
+>
+{
/**
* A unique ID for this instance - primarily used to help debugging and testing
*/
diff --git ORI/typescript-eslint/packages/scope-manager/src/scope/SwitchScope.ts ALT/typescript-eslint/packages/scope-manager/src/scope/SwitchScope.ts
index ee2406c..d5e8713 100644
--- ORI/typescript-eslint/packages/scope-manager/src/scope/SwitchScope.ts
+++ ALT/typescript-eslint/packages/scope-manager/src/scope/SwitchScope.ts
@@ -5,11 +5,9 @@ import type { Scope } from './Scope';
import { ScopeBase } from './ScopeBase';
import { ScopeType } from './ScopeType';
-class SwitchScope extends ScopeBase<
- ScopeType.switch,
- TSESTree.SwitchStatement,
- Scope
-> {
+class SwitchScope
+ extends ScopeBase<ScopeType.switch, TSESTree.SwitchStatement, Scope>
+{
constructor(
scopeManager: ScopeManager,
upperScope: SwitchScope['upper'],
diff --git ORI/typescript-eslint/packages/scope-manager/src/scope/TSEnumScope.ts ALT/typescript-eslint/packages/scope-manager/src/scope/TSEnumScope.ts
index b5f6210..d4b95b1 100644
--- ORI/typescript-eslint/packages/scope-manager/src/scope/TSEnumScope.ts
+++ ALT/typescript-eslint/packages/scope-manager/src/scope/TSEnumScope.ts
@@ -5,11 +5,9 @@ import type { Scope } from './Scope';
import { ScopeBase } from './ScopeBase';
import { ScopeType } from './ScopeType';
-class TSEnumScope extends ScopeBase<
- ScopeType.tsEnum,
- TSESTree.TSEnumDeclaration,
- Scope
-> {
+class TSEnumScope
+ extends ScopeBase<ScopeType.tsEnum, TSESTree.TSEnumDeclaration, Scope>
+{
constructor(
scopeManager: ScopeManager,
upperScope: TSEnumScope['upper'],
diff --git ORI/typescript-eslint/packages/scope-manager/src/scope/TSModuleScope.ts ALT/typescript-eslint/packages/scope-manager/src/scope/TSModuleScope.ts
index 7ebdafd..3f4016e 100644
--- ORI/typescript-eslint/packages/scope-manager/src/scope/TSModuleScope.ts
+++ ALT/typescript-eslint/packages/scope-manager/src/scope/TSModuleScope.ts
@@ -5,11 +5,9 @@ import type { Scope } from './Scope';
import { ScopeBase } from './ScopeBase';
import { ScopeType } from './ScopeType';
-class TSModuleScope extends ScopeBase<
- ScopeType.tsModule,
- TSESTree.TSModuleDeclaration,
- Scope
-> {
+class TSModuleScope
+ extends ScopeBase<ScopeType.tsModule, TSESTree.TSModuleDeclaration, Scope>
+{
constructor(
scopeManager: ScopeManager,
upperScope: TSModuleScope['upper'],
diff --git ORI/typescript-eslint/packages/scope-manager/src/scope/TypeScope.ts ALT/typescript-eslint/packages/scope-manager/src/scope/TypeScope.ts
index 167c118..973b099 100644
--- ORI/typescript-eslint/packages/scope-manager/src/scope/TypeScope.ts
+++ ALT/typescript-eslint/packages/scope-manager/src/scope/TypeScope.ts
@@ -5,11 +5,14 @@ import type { Scope } from './Scope';
import { ScopeBase } from './ScopeBase';
import { ScopeType } from './ScopeType';
-class TypeScope extends ScopeBase<
- ScopeType.type,
- TSESTree.TSInterfaceDeclaration | TSESTree.TSTypeAliasDeclaration,
- Scope
-> {
+class TypeScope
+ extends
+ ScopeBase<
+ ScopeType.type,
+ TSESTree.TSInterfaceDeclaration | TSESTree.TSTypeAliasDeclaration,
+ Scope
+ >
+{
constructor(
scopeManager: ScopeManager,
upperScope: TypeScope['upper'],
diff --git ORI/typescript-eslint/packages/scope-manager/src/scope/WithScope.ts ALT/typescript-eslint/packages/scope-manager/src/scope/WithScope.ts
index 7058ab7..20bf816 100644
--- ORI/typescript-eslint/packages/scope-manager/src/scope/WithScope.ts
+++ ALT/typescript-eslint/packages/scope-manager/src/scope/WithScope.ts
@@ -6,11 +6,9 @@ import type { Scope } from './Scope';
import { ScopeBase } from './ScopeBase';
import { ScopeType } from './ScopeType';
-class WithScope extends ScopeBase<
- ScopeType.with,
- TSESTree.WithStatement,
- Scope
-> {
+class WithScope
+ extends ScopeBase<ScopeType.with, TSESTree.WithStatement, Scope>
+{
constructor(
scopeManager: ScopeManager,
upperScope: WithScope['upper'],
diff --git ORI/vega-lite/src/normalize/selectioncompat.ts ALT/vega-lite/src/normalize/selectioncompat.ts
index f5e64df..37a0ab3 100644
--- ORI/vega-lite/src/normalize/selectioncompat.ts
+++ ALT/vega-lite/src/normalize/selectioncompat.ts
@@ -8,12 +8,9 @@ import {isBin, isFilter, isLookup} from '../transform';
import {duplicate, entries, vals} from '../util';
import {NormalizerParams} from './base';
-export class SelectionCompatibilityNormalizer extends SpecMapper<
- NormalizerParams,
- FacetedUnitSpec<Field>,
- LayerSpec<Field>,
- UnitSpec<Field>
-> {
+export class SelectionCompatibilityNormalizer
+ extends SpecMapper<NormalizerParams, FacetedUnitSpec<Field>, LayerSpec<Field>, UnitSpec<Field>>
+{
public map(
spec: GenericSpec<FacetedUnitSpec<Field>, LayerSpec<Field>, RepeatSpec, Field>,
normParams: NormalizerParams
diff --git ORI/vega-lite/src/spec/map.ts ALT/vega-lite/src/spec/map.ts
index a1098bb..e9aa81d 100644
--- ORI/vega-lite/src/spec/map.ts
+++ ALT/vega-lite/src/spec/map.ts
@@ -21,7 +21,8 @@ export abstract class SpecMapper<
UO extends GenericUnitSpec<any, any> = NormalizedUnitSpec,
RO extends RepeatSpec = never,
FO extends Field = FieldName
-> {
+>
+{
public map(spec: GenericSpec<UI, LI, RepeatSpec, Field>, params: P): GenericSpec<UO, GenericLayerSpec<UO>, RO, FO> {
if (isFacetSpec(spec)) {
return this.mapFacet(spec, params); |
Run #14313 vs prettier/prettier@next |
Run #14402 vs prettier/prettier@next |
prettier/prettier#14402 VS prettier/prettier@next
Diff (452 lines)
diff --git ORI/typescript-eslint/packages/eslint-plugin-tslint/src/custom-linter.ts ALT/typescript-eslint/packages/eslint-plugin-tslint/src/custom-linter.ts
index bd8ce6a..b4e8d75 100644
--- ORI/typescript-eslint/packages/eslint-plugin-tslint/src/custom-linter.ts
+++ ALT/typescript-eslint/packages/eslint-plugin-tslint/src/custom-linter.ts
@@ -4,7 +4,10 @@ import type { Program, SourceFile } from 'typescript';
// @ts-expect-error - We need to access the program, but Linter has private program already
export class CustomLinter extends Linter {
- constructor(options: ILinterOptions, private readonly program: Program) {
+ constructor(
+ options: ILinterOptions,
+ private readonly program: Program,
+ ) {
super(options, program);
}
diff --git ORI/typescript-eslint/packages/eslint-plugin/docs/rules/default-param-last.md ALT/typescript-eslint/packages/eslint-plugin/docs/rules/default-param-last.md
index e5902b2..5bfd9cb 100644
--- ORI/typescript-eslint/packages/eslint-plugin/docs/rules/default-param-last.md
+++ ALT/typescript-eslint/packages/eslint-plugin/docs/rules/default-param-last.md
@@ -22,10 +22,16 @@ function f(a = 0, b: number) {}
function f(a: number, b = 0, c: number) {}
function f(a: number, b?: number, c: number) {}
class Foo {
- constructor(public a = 10, private b: number) {}
+ constructor(
+ public a = 10,
+ private b: number,
+ ) {}
}
class Foo {
- constructor(public a?: number, private b: number) {}
+ constructor(
+ public a?: number,
+ private b: number,
+ ) {}
}
```
@@ -40,9 +46,15 @@ function f(a: number, b?: number) {}
function f(a: number, b?: number, c = 0) {}
function f(a: number, b = 0, c?: number) {}
class Foo {
- constructor(public a, private b = 0) {}
+ constructor(
+ public a,
+ private b = 0,
+ ) {}
}
class Foo {
- constructor(public a, private b?: number) {}
+ constructor(
+ public a,
+ private b?: number,
+ ) {}
}
```
diff --git ORI/typescript-eslint/packages/eslint-plugin/docs/rules/explicit-member-accessibility.md ALT/typescript-eslint/packages/eslint-plugin/docs/rules/explicit-member-accessibility.md
index 87d7d23..43cd4fe 100644
--- ORI/typescript-eslint/packages/eslint-plugin/docs/rules/explicit-member-accessibility.md
+++ ALT/typescript-eslint/packages/eslint-plugin/docs/rules/explicit-member-accessibility.md
@@ -90,7 +90,10 @@ The following patterns are considered correct with the default options `{ access
```ts
class Animal {
- public constructor(public breed, name) {
+ public constructor(
+ public breed,
+ name,
+ ) {
// Parameter property and constructor
this.animalName = name;
}
@@ -113,7 +116,10 @@ The following patterns are considered incorrect with the accessibility set to **
```ts
class Animal {
- public constructor(public breed, name) {
+ public constructor(
+ public breed,
+ name,
+ ) {
// Parameter property and constructor
this.animalName = name;
}
@@ -136,7 +142,10 @@ The following patterns are considered correct with the accessibility set to **no
```ts
class Animal {
- constructor(protected breed, name) {
+ constructor(
+ protected breed,
+ name,
+ ) {
// Parameter property and constructor
this.name = name;
}
diff --git ORI/typescript-eslint/packages/scope-manager/tests/fixtures/decorators/parameter-property.ts ALT/typescript-eslint/packages/scope-manager/tests/fixtures/decorators/parameter-property.ts
index 1b2a535..b3d208f 100644
--- ORI/typescript-eslint/packages/scope-manager/tests/fixtures/decorators/parameter-property.ts
+++ ALT/typescript-eslint/packages/scope-manager/tests/fixtures/decorators/parameter-property.ts
@@ -1,4 +1,7 @@
function decorator() {}
class Foo {
- constructor(@decorator readonly a, @decorator readonly b = 1) {}
+ constructor(
+ @decorator readonly a,
+ @decorator readonly b = 1,
+ ) {}
}
diff --git ORI/vega-lite/src/compile/data/aggregate.ts ALT/vega-lite/src/compile/data/aggregate.ts
index a952e22..b09238c 100644
--- ORI/vega-lite/src/compile/data/aggregate.ts
+++ ALT/vega-lite/src/compile/data/aggregate.ts
@@ -68,7 +68,11 @@ export class AggregateNode extends DataFlowNode {
* @param dimensions string set for dimensions
* @param measures dictionary mapping field name => dict of aggregation functions and names to use
*/
- constructor(parent: DataFlowNode, private dimensions: Set<string>, private measures: Measures) {
+ constructor(
+ parent: DataFlowNode,
+ private dimensions: Set<string>,
+ private measures: Measures
+ ) {
super(parent);
}
diff --git ORI/vega-lite/src/compile/data/bin.ts ALT/vega-lite/src/compile/data/bin.ts
index 999fae5..1c43602 100644
--- ORI/vega-lite/src/compile/data/bin.ts
+++ ALT/vega-lite/src/compile/data/bin.ts
@@ -105,7 +105,10 @@ export class BinNode extends DataFlowNode {
return new BinNode(null, duplicate(this.bins));
}
- constructor(parent: DataFlowNode, private bins: Dict<BinComponent>) {
+ constructor(
+ parent: DataFlowNode,
+ private bins: Dict<BinComponent>
+ ) {
super(parent);
}
diff --git ORI/vega-lite/src/compile/data/calculate.ts ALT/vega-lite/src/compile/data/calculate.ts
index c31baf2..082b241 100644
--- ORI/vega-lite/src/compile/data/calculate.ts
+++ ALT/vega-lite/src/compile/data/calculate.ts
@@ -17,7 +17,10 @@ export class CalculateNode extends DataFlowNode {
return new CalculateNode(null, duplicate(this.transform));
}
- constructor(parent: DataFlowNode, private readonly transform: CalculateTransform) {
+ constructor(
+ parent: DataFlowNode,
+ private readonly transform: CalculateTransform
+ ) {
super(parent);
this._dependentFields = getDependentFields(this.transform.calculate);
diff --git ORI/vega-lite/src/compile/data/dataflow.ts ALT/vega-lite/src/compile/data/dataflow.ts
index c3acdb2..3069fcb 100644
--- ORI/vega-lite/src/compile/data/dataflow.ts
+++ ALT/vega-lite/src/compile/data/dataflow.ts
@@ -12,7 +12,10 @@ export abstract class DataFlowNode {
protected _hash: string | number;
- constructor(parent: DataFlowNode, public readonly debugName?: string) {
+ constructor(
+ parent: DataFlowNode,
+ public readonly debugName?: string
+ ) {
if (parent) {
this.parent = parent;
}
diff --git ORI/vega-lite/src/compile/data/density.ts ALT/vega-lite/src/compile/data/density.ts
index d02cff1..b433dde 100644
--- ORI/vega-lite/src/compile/data/density.ts
+++ ALT/vega-lite/src/compile/data/density.ts
@@ -11,7 +11,10 @@ export class DensityTransformNode extends DataFlowNode {
return new DensityTransformNode(null, duplicate(this.transform));
}
- constructor(parent: DataFlowNode, private transform: DensityTransform) {
+ constructor(
+ parent: DataFlowNode,
+ private transform: DensityTransform
+ ) {
super(parent);
this.transform = duplicate(transform); // duplicate to prevent side effects
const specifiedAs = this.transform.as ?? [undefined, undefined];
diff --git ORI/vega-lite/src/compile/data/filterinvalid.ts ALT/vega-lite/src/compile/data/filterinvalid.ts
index 844bca6..5126ea8 100644
--- ORI/vega-lite/src/compile/data/filterinvalid.ts
+++ ALT/vega-lite/src/compile/data/filterinvalid.ts
@@ -13,7 +13,10 @@ export class FilterInvalidNode extends DataFlowNode {
return new FilterInvalidNode(null, {...this.filter});
}
- constructor(parent: DataFlowNode, public readonly filter: Dict<TypedFieldDef<string>>) {
+ constructor(
+ parent: DataFlowNode,
+ public readonly filter: Dict<TypedFieldDef<string>>
+ ) {
super(parent);
}
diff --git ORI/vega-lite/src/compile/data/flatten.ts ALT/vega-lite/src/compile/data/flatten.ts
index 3a4c8b8..dd25c35 100644
--- ORI/vega-lite/src/compile/data/flatten.ts
+++ ALT/vega-lite/src/compile/data/flatten.ts
@@ -11,7 +11,10 @@ export class FlattenTransformNode extends DataFlowNode {
return new FlattenTransformNode(this.parent, duplicate(this.transform));
}
- constructor(parent: DataFlowNode, private transform: FlattenTransform) {
+ constructor(
+ parent: DataFlowNode,
+ private transform: FlattenTransform
+ ) {
super(parent);
this.transform = duplicate(transform); // duplicate to prevent side effects
const {flatten, as = []} = this.transform;
diff --git ORI/vega-lite/src/compile/data/fold.ts ALT/vega-lite/src/compile/data/fold.ts
index 6466a3e..e35a592 100644
--- ORI/vega-lite/src/compile/data/fold.ts
+++ ALT/vega-lite/src/compile/data/fold.ts
@@ -11,7 +11,10 @@ export class FoldTransformNode extends DataFlowNode {
return new FoldTransformNode(null, duplicate(this.transform));
}
- constructor(parent: DataFlowNode, private transform: FoldTransform) {
+ constructor(
+ parent: DataFlowNode,
+ private transform: FoldTransform
+ ) {
super(parent);
this.transform = duplicate(transform); // duplicate to prevent side effects
const specifiedAs = this.transform.as ?? [undefined, undefined];
diff --git ORI/vega-lite/src/compile/data/graticule.ts ALT/vega-lite/src/compile/data/graticule.ts
index 2aa9321..771860e 100644
--- ORI/vega-lite/src/compile/data/graticule.ts
+++ ALT/vega-lite/src/compile/data/graticule.ts
@@ -8,7 +8,10 @@ export class GraticuleNode extends DataFlowNode {
return new GraticuleNode(null, this.params);
}
- constructor(parent: DataFlowNode, private params: true | GraticuleParams) {
+ constructor(
+ parent: DataFlowNode,
+ private params: true | GraticuleParams
+ ) {
super(parent);
}
diff --git ORI/vega-lite/src/compile/data/impute.ts ALT/vega-lite/src/compile/data/impute.ts
index 63f8c09..86fbea5 100644
--- ORI/vega-lite/src/compile/data/impute.ts
+++ ALT/vega-lite/src/compile/data/impute.ts
@@ -16,7 +16,10 @@ export class ImputeNode extends DataFlowNode {
return new ImputeNode(null, duplicate(this.transform));
}
- constructor(parent: DataFlowNode, private readonly transform: ImputeTransform) {
+ constructor(
+ parent: DataFlowNode,
+ private readonly transform: ImputeTransform
+ ) {
super(parent);
}
diff --git ORI/vega-lite/src/compile/data/joinaggregate.ts ALT/vega-lite/src/compile/data/joinaggregate.ts
index 6113860..066ba51 100644
--- ORI/vega-lite/src/compile/data/joinaggregate.ts
+++ ALT/vega-lite/src/compile/data/joinaggregate.ts
@@ -15,7 +15,10 @@ export class JoinAggregateTransformNode extends DataFlowNode {
return new JoinAggregateTransformNode(null, duplicate(this.transform));
}
- constructor(parent: DataFlowNode, private readonly transform: JoinAggregateTransform) {
+ constructor(
+ parent: DataFlowNode,
+ private readonly transform: JoinAggregateTransform
+ ) {
super(parent);
}
diff --git ORI/vega-lite/src/compile/data/loess.ts ALT/vega-lite/src/compile/data/loess.ts
index 1d8d457..e3dbd1a 100644
--- ORI/vega-lite/src/compile/data/loess.ts
+++ ALT/vega-lite/src/compile/data/loess.ts
@@ -11,7 +11,10 @@ export class LoessTransformNode extends DataFlowNode {
return new LoessTransformNode(null, duplicate(this.transform));
}
- constructor(parent: DataFlowNode, private transform: LoessTransform) {
+ constructor(
+ parent: DataFlowNode,
+ private transform: LoessTransform
+ ) {
super(parent);
this.transform = duplicate(transform); // duplicate to prevent side effects
const specifiedAs = this.transform.as ?? [undefined, undefined];
diff --git ORI/vega-lite/src/compile/data/lookup.ts ALT/vega-lite/src/compile/data/lookup.ts
index 7a612e1..736d1ca 100644
--- ORI/vega-lite/src/compile/data/lookup.ts
+++ ALT/vega-lite/src/compile/data/lookup.ts
@@ -14,7 +14,11 @@ export class LookupNode extends DataFlowNode {
return new LookupNode(null, duplicate(this.transform), this.secondary);
}
- constructor(parent: DataFlowNode, public readonly transform: LookupTransform, public readonly secondary: string) {
+ constructor(
+ parent: DataFlowNode,
+ public readonly transform: LookupTransform,
+ public readonly secondary: string
+ ) {
super(parent);
}
diff --git ORI/vega-lite/src/compile/data/pivot.ts ALT/vega-lite/src/compile/data/pivot.ts
index ca96dc1..c965784 100644
--- ORI/vega-lite/src/compile/data/pivot.ts
+++ ALT/vega-lite/src/compile/data/pivot.ts
@@ -11,7 +11,10 @@ export class PivotTransformNode extends DataFlowNode {
return new PivotTransformNode(null, duplicate(this.transform));
}
- constructor(parent: DataFlowNode, private transform: PivotTransform) {
+ constructor(
+ parent: DataFlowNode,
+ private transform: PivotTransform
+ ) {
super(parent);
}
diff --git ORI/vega-lite/src/compile/data/quantile.ts ALT/vega-lite/src/compile/data/quantile.ts
index bac3d28..08349ff 100644
--- ORI/vega-lite/src/compile/data/quantile.ts
+++ ALT/vega-lite/src/compile/data/quantile.ts
@@ -11,7 +11,10 @@ export class QuantileTransformNode extends DataFlowNode {
return new QuantileTransformNode(null, duplicate(this.transform));
}
- constructor(parent: DataFlowNode, private transform: QuantileTransform) {
+ constructor(
+ parent: DataFlowNode,
+ private transform: QuantileTransform
+ ) {
super(parent);
this.transform = duplicate(transform); // duplicate to prevent side effects
const specifiedAs = this.transform.as ?? [undefined, undefined];
diff --git ORI/vega-lite/src/compile/data/regression.ts ALT/vega-lite/src/compile/data/regression.ts
index 41e85f4..520e41f 100644
--- ORI/vega-lite/src/compile/data/regression.ts
+++ ALT/vega-lite/src/compile/data/regression.ts
@@ -11,7 +11,10 @@ export class RegressionTransformNode extends DataFlowNode {
return new RegressionTransformNode(null, duplicate(this.transform));
}
- constructor(parent: DataFlowNode, private transform: RegressionTransform) {
+ constructor(
+ parent: DataFlowNode,
+ private transform: RegressionTransform
+ ) {
super(parent);
this.transform = duplicate(transform); // duplicate to prevent side effects
const specifiedAs = this.transform.as ?? [undefined, undefined];
diff --git ORI/vega-lite/src/compile/data/sample.ts ALT/vega-lite/src/compile/data/sample.ts
index 771544b..a63010b 100644
--- ORI/vega-lite/src/compile/data/sample.ts
+++ ALT/vega-lite/src/compile/data/sample.ts
@@ -11,7 +11,10 @@ export class SampleTransformNode extends DataFlowNode {
return new SampleTransformNode(null, duplicate(this.transform));
}
- constructor(parent: DataFlowNode, private transform: SampleTransform) {
+ constructor(
+ parent: DataFlowNode,
+ private transform: SampleTransform
+ ) {
super(parent);
}
diff --git ORI/vega-lite/src/compile/data/sequence.ts ALT/vega-lite/src/compile/data/sequence.ts
index 9812e2d..032d168 100644
--- ORI/vega-lite/src/compile/data/sequence.ts
+++ ALT/vega-lite/src/compile/data/sequence.ts
@@ -8,7 +8,10 @@ export class SequenceNode extends DataFlowNode {
return new SequenceNode(null, this.params);
}
- constructor(parent: DataFlowNode, private params: SequenceParams) {
+ constructor(
+ parent: DataFlowNode,
+ private params: SequenceParams
+ ) {
super(parent);
}
diff --git ORI/vega-lite/src/compile/data/timeunit.ts ALT/vega-lite/src/compile/data/timeunit.ts
index 1fe59a4..89e090e 100644
--- ORI/vega-lite/src/compile/data/timeunit.ts
+++ ALT/vega-lite/src/compile/data/timeunit.ts
@@ -13,7 +13,10 @@ export class TimeUnitNode extends DataFlowNode {
return new TimeUnitNode(null, duplicate(this.formula));
}
- constructor(parent: DataFlowNode, private formula: Dict<TimeUnitComponent>) {
+ constructor(
+ parent: DataFlowNode,
+ private formula: Dict<TimeUnitComponent>
+ ) {
super(parent);
}
diff --git ORI/vega-lite/src/compile/data/window.ts ALT/vega-lite/src/compile/data/window.ts
index 2923d03..4709903 100644
--- ORI/vega-lite/src/compile/data/window.ts
+++ ALT/vega-lite/src/compile/data/window.ts
@@ -16,7 +16,10 @@ export class WindowTransformNode extends DataFlowNode {
return new WindowTransformNode(null, duplicate(this.transform));
}
- constructor(parent: DataFlowNode, private readonly transform: WindowTransform) {
+ constructor(
+ parent: DataFlowNode,
+ private readonly transform: WindowTransform
+ ) {
super(parent);
}
diff --git ORI/vega-lite/src/compile/split.ts ALT/vega-lite/src/compile/split.ts
index 5901975..3745045 100644
--- ORI/vega-lite/src/compile/split.ts
+++ ALT/vega-lite/src/compile/split.ts
@@ -9,7 +9,10 @@ import {deepEqual, duplicate, getFirstDefined, keys} from '../util';
*/
// eslint-disable-next-line @typescript-eslint/ban-types
export class Split<T extends object> {
- constructor(public readonly explicit: Partial<T> = {}, public readonly implicit: Partial<T> = {}) {}
+ constructor(
+ public readonly explicit: Partial<T> = {},
+ public readonly implicit: Partial<T> = {}
+ ) {}
public clone() {
return new Split(duplicate(this.explicit), duplicate(this.implicit)); |
Run #14406 vs prettier/prettier@next |
Run #13819 vs prettier/prettier@next |
[Error]
|
Run #13819 vs prettier/prettier@next |
[Error]
|
Run #13819 vs prettier/prettier@next |
[Error]
|
Run #13819 vs prettier/prettier@next |
2 similar comments
Run #13819 vs prettier/prettier@next |
Run #13819 vs prettier/prettier@next |
prettier/prettier#13819 VS prettier/prettier@next
Diff (84 lines)diff --git ORI/babel/.prettierignore ALT/babel/.prettierignore
index 83ff0aeb..79de6e55 100644
--- ORI/babel/.prettierignore
+++ ALT/babel/.prettierignore
@@ -46,3 +46,38 @@ test/runtime-integration/*/output.js
test/runtime-integration/*/output-absolute.js
Makefile.js
+
+/lib
+/build
+/.git
+package.json
+packages/babel-runtime
+!packages/babel-plugin-transform-runtime/scripts
+packages/babel-runtime-corejs2
+packages/babel-runtime-corejs3
+packages/*/node_modules
+packages/*/lib
+packages/*/dist
+packages/*/test/fixtures
+packages/*/test/tmp
+codemods/*/node_modules
+codemods/*/lib
+codemods/*/dist
+codemods/*/test/fixtures
+codemods/*/test/tmp
+packages/babel-compat-data/build
+packages/babel-preset-env/data/[^(plugin-features|shipped-proposals).js]
+packages/babel-preset-env/test/debug-fixtures
+packages/babel-standalone/babel.js
+packages/babel-standalone/babel.min.js
+packages/babel-parser/test/expressions
+packages/babel-core/src/vendor
+
+eslint/*/lib
+eslint/*/node_modules
+eslint/*/test/fixtures
+
+test/runtime-integration/*/output.js
+test/runtime-integration/*/output-absolute.js
+
+Makefile.js
diff --git ORI/excalidraw/.prettierignore ALT/excalidraw/.prettierignore
index 3a2cd6b..d95484a 100644
--- ORI/excalidraw/.prettierignore
+++ ALT/excalidraw/.prettierignore
@@ -7,3 +7,12 @@ firebase/
dist/
public/workbox
src/packages/excalidraw/types
+
+node_modules/
+build/
+package-lock.json
+.vscode/
+firebase/
+dist/
+public/workbox
+src/packages/excalidraw/types
diff --git ORI/typescript-eslint/.prettierignore ALT/typescript-eslint/.prettierignore
index 4f26122..df61ba4 100644
--- ORI/typescript-eslint/.prettierignore
+++ ALT/typescript-eslint/.prettierignore
@@ -22,4 +22,5 @@ packages/website/.docusaurus
packages/website/build
packages/website/src/vendor
+**/fixtures/**/*
**/fixtures/**/*
\ No newline at end of file
diff --git ORI/vega-lite/.prettierignore ALT/vega-lite/.prettierignore
index de5f561..2014730 100644
--- ORI/vega-lite/.prettierignore
+++ ALT/vega-lite/.prettierignore
@@ -7,3 +7,6 @@ site/_site/*
build
*.js
+
+build
+*.js |
Run #13819 vs prettier/prettier@next |
1 similar comment
Run #13819 vs prettier/prettier@next |
No description provided.
The text was updated successfully, but these errors were encountered: