Skip to content
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

2.2 regression checking #8

Closed
sosukesuzuki opened this issue Oct 31, 2020 · 28 comments
Closed

2.2 regression checking #8

sosukesuzuki opened this issue Oct 31, 2020 · 28 comments

Comments

@sosukesuzuki
Copy link
Member

prettier/prettier#9549

@sosukesuzuki
Copy link
Member Author

run

@github-actions

This comment has been minimized.

@fisker
Copy link
Member

fisker commented Oct 31, 2020

Can we add babel project?

@sosukesuzuki
Copy link
Member Author

sosukesuzuki commented Oct 31, 2020

Yes, I'll add some other projects:+1:

EDIT: done sosukesuzuki#9

@sosukesuzuki
Copy link
Member Author

run

@github-actions

This comment has been minimized.

@sosukesuzuki
Copy link
Member Author

I think changes for babel is breaking..., Should we revert?
/cc @fisker

@fisker
Copy link
Member

fisker commented Nov 1, 2020

I'll take a look in 2h.

@fisker
Copy link
Member

fisker commented Nov 2, 2020

Changes in babel/packages/babel-parser/src/parser/error.js

v2.1.2 same result

Prettier 2.1.2
Playground link

--parser flow

Input:

class A {
  /*::*/
  foo( data: {missingPlugin: Array<string>}) {}
}

Output:

class A {
  foo(data: { missingPlugin: Array/*:: <string> */ }) {}
}

Prettier 2.1.2
Playground link

--parser babel

Input:

class A {
  /*::*/
  foo( data: {missingPlugin: Array<string>}) {}
}

Output:

class A {
  /*::*/
  foo(data: { missingPlugin: Array/*:: <string> */ }) {}
}

@fisker
Copy link
Member

fisker commented Nov 2, 2020

run with checking out 16e33ba75c0f10c3a39f0b346ae8ef4d452124d3

@fisker
Copy link
Member

fisker commented Nov 2, 2020

Can I run on my fork?

@sosukesuzuki
Copy link
Member Author

sosukesuzuki commented Nov 2, 2020

Sorry, current prettier-regression-testing does not support fork. I'll implement it.

@sosukesuzuki
Copy link
Member Author

run with checking out 16e33ba75c0f10c3a39f0b346ae8ef4d452124d3 on fisker/prettier

@github-actions
Copy link
Contributor

github-actions bot commented Nov 2, 2020

Diff by fisker/prettier@16e33ba

Submodule repos/babel contains modified content
diff --git a/repos/babel/packages/babel-preset-env/data/shipped-proposals.js b/repos/babel/packages/babel-preset-env/data/shipped-proposals.js
index 95ca9b119..baeca41a9 100644
--- a/repos/babel/packages/babel-preset-env/data/shipped-proposals.js
+++ b/repos/babel/packages/babel-preset-env/data/shipped-proposals.js
@@ -4,7 +4,7 @@
 
 const proposalPlugins = new Set([
   "proposal-class-properties",
-  "proposal-private-methods"
+  "proposal-private-methods",
 ]);
 
 // use intermediary object to enforce alphabetical key order
Submodule repos/typescript-eslint contains modified content
diff --git a/repos/typescript-eslint/packages/eslint-plugin/src/rules/indent-new-do-not-use/index.ts b/repos/typescript-eslint/packages/eslint-plugin/src/rules/indent-new-do-not-use/index.ts
index 05c35c7a..7b6bf6d3 100644
--- a/repos/typescript-eslint/packages/eslint-plugin/src/rules/indent-new-do-not-use/index.ts
+++ b/repos/typescript-eslint/packages/eslint-plugin/src/rules/indent-new-do-not-use/index.ts
@@ -1570,9 +1570,9 @@ export default createRule<Options, MessageIds>({
      * 2. Don't set any offsets against the first token of the node.
      * 3. Call `ignoreNode` on the node sometime after exiting it and before validating offsets.
      */
-    const offsetListeners = Object.keys(baseOffsetListeners).reduce<
-      TSESLint.RuleListener
-    >(
+    const offsetListeners = Object.keys(
+      baseOffsetListeners,
+    ).reduce<TSESLint.RuleListener>(
       /*
        * Offset listener calls are deferred until traversal is finished, and are called as
        * part of the final `Program:exit` listener. This is necessary because a node might
@@ -1590,9 +1590,9 @@ export default createRule<Options, MessageIds>({
        * ignored nodes are known.
        */
       (acc, key) => {
-        const listener = baseOffsetListeners[key] as TSESLint.RuleFunction<
-          TSESTree.Node
-        >;
+        const listener = baseOffsetListeners[
+          key
+        ] as TSESLint.RuleFunction<TSESTree.Node>;
         // eslint-disable-next-line @typescript-eslint/explicit-function-return-type
         acc[key] = node => listenerCallQueue.push({ listener, node });
 
diff --git a/repos/typescript-eslint/packages/eslint-plugin/src/rules/naming-convention.ts b/repos/typescript-eslint/packages/eslint-plugin/src/rules/naming-convention.ts
index 295e8209..4a9378d7 100644
--- a/repos/typescript-eslint/packages/eslint-plugin/src/rules/naming-convention.ts
+++ b/repos/typescript-eslint/packages/eslint-plugin/src/rules/naming-convention.ts
@@ -1237,10 +1237,9 @@ function validateUnderscores(name: string): boolean {
   return !wasUnderscore;
 }
 
-const PredefinedFormatToCheckFunction: Readonly<Record<
-  PredefinedFormats,
-  (name: string) => boolean
->> = {
+const PredefinedFormatToCheckFunction: Readonly<
+  Record<PredefinedFormats, (name: string) => boolean>
+> = {
   [PredefinedFormats.PascalCase]: isPascalCase,
   [PredefinedFormats.StrictPascalCase]: isStrictPascalCase,
   [PredefinedFormats.camelCase]: isCamelCase,
diff --git a/repos/typescript-eslint/packages/eslint-plugin/src/rules/semi.ts b/repos/typescript-eslint/packages/eslint-plugin/src/rules/semi.ts
index e73fd4b5..9c18d0e3 100644
--- a/repos/typescript-eslint/packages/eslint-plugin/src/rules/semi.ts
+++ b/repos/typescript-eslint/packages/eslint-plugin/src/rules/semi.ts
@@ -36,9 +36,7 @@ export default util.createRule<Options, MessageIds>({
   ],
   create(context) {
     const rules = baseRule.create(context);
-    const checkForSemicolon = rules.ExpressionStatement as TSESLint.RuleFunction<
-      TSESTree.Node
-    >;
+    const checkForSemicolon = rules.ExpressionStatement as TSESLint.RuleFunction<TSESTree.Node>;
 
     /*
       The following nodes are handled by the member-delimiter-style rule
diff --git a/repos/typescript-eslint/packages/eslint-plugin/src/util/index.ts b/repos/typescript-eslint/packages/eslint-plugin/src/util/index.ts
index 672f50dc..f76bf47e 100644
--- a/repos/typescript-eslint/packages/eslint-plugin/src/util/index.ts
+++ b/repos/typescript-eslint/packages/eslint-plugin/src/util/index.ts
@@ -16,9 +16,9 @@ const {
   isObjectNotArray,
   getParserServices,
 } = ESLintUtils;
-type InferMessageIdsTypeFromRule<T> = ESLintUtils.InferMessageIdsTypeFromRule<
+type InferMessageIdsTypeFromRule<
   T
->;
+> = ESLintUtils.InferMessageIdsTypeFromRule<T>;
 type InferOptionsTypeFromRule<T> = ESLintUtils.InferOptionsTypeFromRule<T>;
 
 export {
diff --git a/repos/typescript-eslint/packages/eslint-plugin/tests/rules/naming-convention.test.ts b/repos/typescript-eslint/packages/eslint-plugin/tests/rules/naming-convention.test.ts
index c57dfc98..0b3c3943 100644
--- a/repos/typescript-eslint/packages/eslint-plugin/tests/rules/naming-convention.test.ts
+++ b/repos/typescript-eslint/packages/eslint-plugin/tests/rules/naming-convention.test.ts
@@ -19,10 +19,9 @@ const parserOptions = {
   project: './tsconfig.json',
 };
 
-const formatTestNames: Readonly<Record<
-  PredefinedFormatsString,
-  Record<'valid' | 'invalid', string[]>
->> = {
+const formatTestNames: Readonly<
+  Record<PredefinedFormatsString, Record<'valid' | 'invalid', string[]>>
+> = {
   camelCase: {
     valid: ['strictCamelCase', 'lower', 'camelCaseUNSTRICT'],
     invalid: ['snake_case', 'UPPER_CASE', 'UPPER', 'StrictPascalCase'],
diff --git a/repos/typescript-eslint/packages/experimental-utils/src/ts-eslint/Rule.ts b/repos/typescript-eslint/packages/experimental-utils/src/ts-eslint/Rule.ts
index d305b291..6333207b 100644
--- a/repos/typescript-eslint/packages/experimental-utils/src/ts-eslint/Rule.ts
+++ b/repos/typescript-eslint/packages/experimental-utils/src/ts-eslint/Rule.ts
@@ -115,9 +115,9 @@ interface RuleFixer {
 type ReportFixFunction = (
   fixer: RuleFixer,
 ) => null | RuleFix | RuleFix[] | IterableIterator<RuleFix>;
-type ReportSuggestionArray<TMessageIds extends string> = ReportDescriptorBase<
-  TMessageIds
->[];
+type ReportSuggestionArray<
+  TMessageIds extends string
+> = ReportDescriptorBase<TMessageIds>[];
 
 interface ReportDescriptorBase<TMessageIds extends string> {
   /**
@@ -328,29 +328,21 @@ interface RuleListener {
   TryStatement?: RuleFunction<TSESTree.TryStatement>;
   TSAbstractClassProperty?: RuleFunction<TSESTree.TSAbstractClassProperty>;
   TSAbstractKeyword?: RuleFunction<TSESTree.TSAbstractKeyword>;
-  TSAbstractMethodDefinition?: RuleFunction<
-    TSESTree.TSAbstractMethodDefinition
-  >;
+  TSAbstractMethodDefinition?: RuleFunction<TSESTree.TSAbstractMethodDefinition>;
   TSAnyKeyword?: RuleFunction<TSESTree.TSAnyKeyword>;
   TSArrayType?: RuleFunction<TSESTree.TSArrayType>;
   TSAsExpression?: RuleFunction<TSESTree.TSAsExpression>;
   TSAsyncKeyword?: RuleFunction<TSESTree.TSAsyncKeyword>;
   TSBigIntKeyword?: RuleFunction<TSESTree.TSBigIntKeyword>;
   TSBooleanKeyword?: RuleFunction<TSESTree.TSBooleanKeyword>;
-  TSCallSignatureDeclaration?: RuleFunction<
-    TSESTree.TSCallSignatureDeclaration
-  >;
+  TSCallSignatureDeclaration?: RuleFunction<TSESTree.TSCallSignatureDeclaration>;
   TSClassImplements?: RuleFunction<TSESTree.TSClassImplements>;
   TSConditionalType?: RuleFunction<TSESTree.TSConditionalType>;
   TSConstructorType?: RuleFunction<TSESTree.TSConstructorType>;
-  TSConstructSignatureDeclaration?: RuleFunction<
-    TSESTree.TSConstructSignatureDeclaration
-  >;
+  TSConstructSignatureDeclaration?: RuleFunction<TSESTree.TSConstructSignatureDeclaration>;
   TSDeclareKeyword?: RuleFunction<TSESTree.TSDeclareKeyword>;
   TSDeclareFunction?: RuleFunction<TSESTree.TSDeclareFunction>;
-  TSEmptyBodyFunctionExpression?: RuleFunction<
-    TSESTree.TSEmptyBodyFunctionExpression
-  >;
+  TSEmptyBodyFunctionExpression?: RuleFunction<TSESTree.TSEmptyBodyFunctionExpression>;
   TSEnumDeclaration?: RuleFunction<TSESTree.TSEnumDeclaration>;
   TSEnumMember?: RuleFunction<TSESTree.TSEnumMember>;
   TSExportAssignment?: RuleFunction<TSESTree.TSExportAssignment>;
@@ -371,9 +363,7 @@ interface RuleListener {
   TSMethodSignature?: RuleFunction<TSESTree.TSMethodSignature>;
   TSModuleBlock?: RuleFunction<TSESTree.TSModuleBlock>;
   TSModuleDeclaration?: RuleFunction<TSESTree.TSModuleDeclaration>;
-  TSNamespaceExportDeclaration?: RuleFunction<
-    TSESTree.TSNamespaceExportDeclaration
-  >;
+  TSNamespaceExportDeclaration?: RuleFunction<TSESTree.TSNamespaceExportDeclaration>;
   TSNeverKeyword?: RuleFunction<TSESTree.TSNeverKeyword>;
   TSNonNullExpression?: RuleFunction<TSESTree.TSNonNullExpression>;
   TSNullKeyword?: RuleFunction<TSESTree.TSNullKeyword>;
@@ -400,12 +390,8 @@ interface RuleListener {
   TSTypeLiteral?: RuleFunction<TSESTree.TSTypeLiteral>;
   TSTypeOperator?: RuleFunction<TSESTree.TSTypeOperator>;
   TSTypeParameter?: RuleFunction<TSESTree.TSTypeParameter>;
-  TSTypeParameterDeclaration?: RuleFunction<
-    TSESTree.TSTypeParameterDeclaration
-  >;
-  TSTypeParameterInstantiation?: RuleFunction<
-    TSESTree.TSTypeParameterInstantiation
-  >;
+  TSTypeParameterDeclaration?: RuleFunction<TSESTree.TSTypeParameterDeclaration>;
+  TSTypeParameterInstantiation?: RuleFunction<TSESTree.TSTypeParameterInstantiation>;
   TSTypePredicate?: RuleFunction<TSESTree.TSTypePredicate>;
   TSTypeQuery?: RuleFunction<TSESTree.TSTypeQuery>;
   TSTypeReference?: RuleFunction<TSESTree.TSTypeReference>;

@sosukesuzuki
Copy link
Member Author

/cc @fisker Looks good

@fisker
Copy link
Member

fisker commented Nov 2, 2020

Run test on prettier/prettier too?

@sosukesuzuki
Copy link
Member Author

Run test on prettier/prettier too?

What do you mean?

@fisker
Copy link
Member

fisker commented Nov 2, 2020

Format our own codebase.

@sosukesuzuki
Copy link
Member Author

I got it. I'll add it.

@sosukesuzuki
Copy link
Member Author

run

@github-actions
Copy link
Contributor

github-actions bot commented Nov 3, 2020

Diff by prettier/prettier@d2ce7d4

Submodule repos/babel contains modified content
diff --git a/repos/babel/packages/babel-parser/src/parser/error.js b/repos/babel/packages/babel-parser/src/parser/error.js
index 4fe08d8c4..095d43b77 100644
--- a/repos/babel/packages/babel-parser/src/parser/error.js
+++ b/repos/babel/packages/babel-parser/src/parser/error.js
@@ -42,7 +42,7 @@ export default class ParserError extends CommentsParser {
   raiseWithData(
     pos: number,
     data?: {
-      missingPlugin?: Array<string>,
+      missingPlugin?: Array/*:: <string> */,
       code?: string,
     },
     errorTemplate: string,
diff --git a/repos/babel/packages/babel-parser/src/parser/index.js b/repos/babel/packages/babel-parser/src/parser/index.js
index 6e9446907..75804f25c 100644
--- a/repos/babel/packages/babel-parser/src/parser/index.js
+++ b/repos/babel/packages/babel-parser/src/parser/index.js
@@ -14,7 +14,7 @@ import ProductionParameterHandler, {
   PARAM,
 } from "../util/production-parameter";
 
-export type PluginsMap = Map<string, { [string]: any }>;
+export type PluginsMap = Map/*:: <string, { [string]: any }> */;
 
 export default class Parser extends StatementParser {
   // Forward-declaration so typescript plugin can override jsx plugin
@@ -41,7 +41,7 @@ export default class Parser extends StatementParser {
   }
 
   // This can be overwritten, for example, by the TypeScript plugin.
-  getScopeHandler(): Class<ScopeHandler<*>> {
+  getScopeHandler(): Class/*:: <ScopeHandler/*:: <*> */> */ {
     return ScopeHandler;
   }
 
diff --git a/repos/babel/packages/babel-parser/src/tokenizer/index.js b/repos/babel/packages/babel-parser/src/tokenizer/index.js
index 971226007..474a3c8ce 100644
--- a/repos/babel/packages/babel-parser/src/tokenizer/index.js
+++ b/repos/babel/packages/babel-parser/src/tokenizer/index.js
@@ -122,7 +122,7 @@ export default class Tokenizer extends ParserErrors {
   isLookahead: boolean;
 
   // Token store.
-  tokens: Array<Token | N.Comment> = [];
+  tokens: Array/*:: <Token | N.Comment> */ = [];
 
   constructor(options: Options, input: string) {
     super();
diff --git a/repos/babel/packages/babel-preset-env/data/shipped-proposals.js b/repos/babel/packages/babel-preset-env/data/shipped-proposals.js
index 95ca9b119..baeca41a9 100644
--- a/repos/babel/packages/babel-preset-env/data/shipped-proposals.js
+++ b/repos/babel/packages/babel-preset-env/data/shipped-proposals.js
@@ -4,7 +4,7 @@
 
 const proposalPlugins = new Set([
   "proposal-class-properties",
-  "proposal-private-methods"
+  "proposal-private-methods",
 ]);
 
 // use intermediary object to enforce alphabetical key order
Submodule repos/typescript-eslint contains modified content
diff --git a/repos/typescript-eslint/packages/eslint-plugin/src/rules/indent-new-do-not-use/index.ts b/repos/typescript-eslint/packages/eslint-plugin/src/rules/indent-new-do-not-use/index.ts
index 05c35c7a..7b6bf6d3 100644
--- a/repos/typescript-eslint/packages/eslint-plugin/src/rules/indent-new-do-not-use/index.ts
+++ b/repos/typescript-eslint/packages/eslint-plugin/src/rules/indent-new-do-not-use/index.ts
@@ -1570,9 +1570,9 @@ export default createRule<Options, MessageIds>({
      * 2. Don't set any offsets against the first token of the node.
      * 3. Call `ignoreNode` on the node sometime after exiting it and before validating offsets.
      */
-    const offsetListeners = Object.keys(baseOffsetListeners).reduce<
-      TSESLint.RuleListener
-    >(
+    const offsetListeners = Object.keys(
+      baseOffsetListeners,
+    ).reduce<TSESLint.RuleListener>(
       /*
        * Offset listener calls are deferred until traversal is finished, and are called as
        * part of the final `Program:exit` listener. This is necessary because a node might
@@ -1590,9 +1590,9 @@ export default createRule<Options, MessageIds>({
        * ignored nodes are known.
        */
       (acc, key) => {
-        const listener = baseOffsetListeners[key] as TSESLint.RuleFunction<
-          TSESTree.Node
-        >;
+        const listener = baseOffsetListeners[
+          key
+        ] as TSESLint.RuleFunction<TSESTree.Node>;
         // eslint-disable-next-line @typescript-eslint/explicit-function-return-type
         acc[key] = node => listenerCallQueue.push({ listener, node });
 
diff --git a/repos/typescript-eslint/packages/eslint-plugin/src/rules/naming-convention.ts b/repos/typescript-eslint/packages/eslint-plugin/src/rules/naming-convention.ts
index 295e8209..4a9378d7 100644
--- a/repos/typescript-eslint/packages/eslint-plugin/src/rules/naming-convention.ts
+++ b/repos/typescript-eslint/packages/eslint-plugin/src/rules/naming-convention.ts
@@ -1237,10 +1237,9 @@ function validateUnderscores(name: string): boolean {
   return !wasUnderscore;
 }
 
-const PredefinedFormatToCheckFunction: Readonly<Record<
-  PredefinedFormats,
-  (name: string) => boolean
->> = {
+const PredefinedFormatToCheckFunction: Readonly<
+  Record<PredefinedFormats, (name: string) => boolean>
+> = {
   [PredefinedFormats.PascalCase]: isPascalCase,
   [PredefinedFormats.StrictPascalCase]: isStrictPascalCase,
   [PredefinedFormats.camelCase]: isCamelCase,
diff --git a/repos/typescript-eslint/packages/eslint-plugin/src/rules/semi.ts b/repos/typescript-eslint/packages/eslint-plugin/src/rules/semi.ts
index e73fd4b5..9c18d0e3 100644
--- a/repos/typescript-eslint/packages/eslint-plugin/src/rules/semi.ts
+++ b/repos/typescript-eslint/packages/eslint-plugin/src/rules/semi.ts
@@ -36,9 +36,7 @@ export default util.createRule<Options, MessageIds>({
   ],
   create(context) {
     const rules = baseRule.create(context);
-    const checkForSemicolon = rules.ExpressionStatement as TSESLint.RuleFunction<
-      TSESTree.Node
-    >;
+    const checkForSemicolon = rules.ExpressionStatement as TSESLint.RuleFunction<TSESTree.Node>;
 
     /*
       The following nodes are handled by the member-delimiter-style rule
diff --git a/repos/typescript-eslint/packages/eslint-plugin/src/util/index.ts b/repos/typescript-eslint/packages/eslint-plugin/src/util/index.ts
index 672f50dc..f76bf47e 100644
--- a/repos/typescript-eslint/packages/eslint-plugin/src/util/index.ts
+++ b/repos/typescript-eslint/packages/eslint-plugin/src/util/index.ts
@@ -16,9 +16,9 @@ const {
   isObjectNotArray,
   getParserServices,
 } = ESLintUtils;
-type InferMessageIdsTypeFromRule<T> = ESLintUtils.InferMessageIdsTypeFromRule<
+type InferMessageIdsTypeFromRule<
   T
->;
+> = ESLintUtils.InferMessageIdsTypeFromRule<T>;
 type InferOptionsTypeFromRule<T> = ESLintUtils.InferOptionsTypeFromRule<T>;
 
 export {
diff --git a/repos/typescript-eslint/packages/eslint-plugin/tests/rules/naming-convention.test.ts b/repos/typescript-eslint/packages/eslint-plugin/tests/rules/naming-convention.test.ts
index c57dfc98..0b3c3943 100644
--- a/repos/typescript-eslint/packages/eslint-plugin/tests/rules/naming-convention.test.ts
+++ b/repos/typescript-eslint/packages/eslint-plugin/tests/rules/naming-convention.test.ts
@@ -19,10 +19,9 @@ const parserOptions = {
   project: './tsconfig.json',
 };
 
-const formatTestNames: Readonly<Record<
-  PredefinedFormatsString,
-  Record<'valid' | 'invalid', string[]>
->> = {
+const formatTestNames: Readonly<
+  Record<PredefinedFormatsString, Record<'valid' | 'invalid', string[]>>
+> = {
   camelCase: {
     valid: ['strictCamelCase', 'lower', 'camelCaseUNSTRICT'],
     invalid: ['snake_case', 'UPPER_CASE', 'UPPER', 'StrictPascalCase'],
diff --git a/repos/typescript-eslint/packages/experimental-utils/src/ts-eslint/Rule.ts b/repos/typescript-eslint/packages/experimental-utils/src/ts-eslint/Rule.ts
index d305b291..6333207b 100644
--- a/repos/typescript-eslint/packages/experimental-utils/src/ts-eslint/Rule.ts
+++ b/repos/typescript-eslint/packages/experimental-utils/src/ts-eslint/Rule.ts
@@ -115,9 +115,9 @@ interface RuleFixer {
 type ReportFixFunction = (
   fixer: RuleFixer,
 ) => null | RuleFix | RuleFix[] | IterableIterator<RuleFix>;
-type ReportSuggestionArray<TMessageIds extends string> = ReportDescriptorBase<
-  TMessageIds
->[];
+type ReportSuggestionArray<
+  TMessageIds extends string
+> = ReportDescriptorBase<TMessageIds>[];
 
 interface ReportDescriptorBase<TMessageIds extends string> {
   /**
@@ -328,29 +328,21 @@ interface RuleListener {
   TryStatement?: RuleFunction<TSESTree.TryStatement>;
   TSAbstractClassProperty?: RuleFunction<TSESTree.TSAbstractClassProperty>;
   TSAbstractKeyword?: RuleFunction<TSESTree.TSAbstractKeyword>;
-  TSAbstractMethodDefinition?: RuleFunction<
-    TSESTree.TSAbstractMethodDefinition
-  >;
+  TSAbstractMethodDefinition?: RuleFunction<TSESTree.TSAbstractMethodDefinition>;
   TSAnyKeyword?: RuleFunction<TSESTree.TSAnyKeyword>;
   TSArrayType?: RuleFunction<TSESTree.TSArrayType>;
   TSAsExpression?: RuleFunction<TSESTree.TSAsExpression>;
   TSAsyncKeyword?: RuleFunction<TSESTree.TSAsyncKeyword>;
   TSBigIntKeyword?: RuleFunction<TSESTree.TSBigIntKeyword>;
   TSBooleanKeyword?: RuleFunction<TSESTree.TSBooleanKeyword>;
-  TSCallSignatureDeclaration?: RuleFunction<
-    TSESTree.TSCallSignatureDeclaration
-  >;
+  TSCallSignatureDeclaration?: RuleFunction<TSESTree.TSCallSignatureDeclaration>;
   TSClassImplements?: RuleFunction<TSESTree.TSClassImplements>;
   TSConditionalType?: RuleFunction<TSESTree.TSConditionalType>;
   TSConstructorType?: RuleFunction<TSESTree.TSConstructorType>;
-  TSConstructSignatureDeclaration?: RuleFunction<
-    TSESTree.TSConstructSignatureDeclaration
-  >;
+  TSConstructSignatureDeclaration?: RuleFunction<TSESTree.TSConstructSignatureDeclaration>;
   TSDeclareKeyword?: RuleFunction<TSESTree.TSDeclareKeyword>;
   TSDeclareFunction?: RuleFunction<TSESTree.TSDeclareFunction>;
-  TSEmptyBodyFunctionExpression?: RuleFunction<
-    TSESTree.TSEmptyBodyFunctionExpression
-  >;
+  TSEmptyBodyFunctionExpression?: RuleFunction<TSESTree.TSEmptyBodyFunctionExpression>;
   TSEnumDeclaration?: RuleFunction<TSESTree.TSEnumDeclaration>;
   TSEnumMember?: RuleFunction<TSESTree.TSEnumMember>;
   TSExportAssignment?: RuleFunction<TSESTree.TSExportAssignment>;
@@ -371,9 +363,7 @@ interface RuleListener {
   TSMethodSignature?: RuleFunction<TSESTree.TSMethodSignature>;
   TSModuleBlock?: RuleFunction<TSESTree.TSModuleBlock>;
   TSModuleDeclaration?: RuleFunction<TSESTree.TSModuleDeclaration>;
-  TSNamespaceExportDeclaration?: RuleFunction<
-    TSESTree.TSNamespaceExportDeclaration
-  >;
+  TSNamespaceExportDeclaration?: RuleFunction<TSESTree.TSNamespaceExportDeclaration>;
   TSNeverKeyword?: RuleFunction<TSESTree.TSNeverKeyword>;
   TSNonNullExpression?: RuleFunction<TSESTree.TSNonNullExpression>;
   TSNullKeyword?: RuleFunction<TSESTree.TSNullKeyword>;
@@ -400,12 +390,8 @@ interface RuleListener {
   TSTypeLiteral?: RuleFunction<TSESTree.TSTypeLiteral>;
   TSTypeOperator?: RuleFunction<TSESTree.TSTypeOperator>;
   TSTypeParameter?: RuleFunction<TSESTree.TSTypeParameter>;
-  TSTypeParameterDeclaration?: RuleFunction<
-    TSESTree.TSTypeParameterDeclaration
-  >;
-  TSTypeParameterInstantiation?: RuleFunction<
-    TSESTree.TSTypeParameterInstantiation
-  >;
+  TSTypeParameterDeclaration?: RuleFunction<TSESTree.TSTypeParameterDeclaration>;
+  TSTypeParameterInstantiation?: RuleFunction<TSESTree.TSTypeParameterInstantiation>;
   TSTypePredicate?: RuleFunction<TSESTree.TSTypePredicate>;
   TSTypeQuery?: RuleFunction<TSESTree.TSTypeQuery>;
   TSTypeReference?: RuleFunction<TSESTree.TSTypeReference>;

@fisker
Copy link
Member

fisker commented Nov 13, 2020

run with checking out eff57b4 on thorn0/prettier

@fisker
Copy link
Member

fisker commented Nov 13, 2020

run with checking out eff57b45ff08898ee7f966d327aab9923f748872 on thorn0/prettier

@github-actions
Copy link
Contributor

Diff by thorn0/prettier@eff57b4

Submodule repos/babel contains modified content
diff --git a/repos/babel/packages/babel-core/test/api.js b/repos/babel/packages/babel-core/test/api.js
index bf714bc6e..c2e25f6fc 100644
--- a/repos/babel/packages/babel-core/test/api.js
+++ b/repos/babel/packages/babel-core/test/api.js
@@ -167,16 +167,17 @@ describe("api", function () {
       babelrc: false,
     };
     Object.freeze(options);
-    transformFile(__dirname + "/fixtures/api/file.js", options, function (
-      err,
-      res,
-    ) {
-      if (err) return done(err);
-      expect(res.code).toBe("foo();");
-      // keep user options untouched
-      expect(options).toEqual({ babelrc: false });
-      done();
-    });
+    transformFile(
+      __dirname + "/fixtures/api/file.js",
+      options,
+      function (err, res) {
+        if (err) return done(err);
+        expect(res.code).toBe("foo();");
+        // keep user options untouched
+        expect(options).toEqual({ babelrc: false });
+        done();
+      },
+    );
   });
 
   it("transformFileSync", function () {
diff --git a/repos/babel/packages/babel-preset-env/data/shipped-proposals.js b/repos/babel/packages/babel-preset-env/data/shipped-proposals.js
index 95ca9b119..baeca41a9 100644
--- a/repos/babel/packages/babel-preset-env/data/shipped-proposals.js
+++ b/repos/babel/packages/babel-preset-env/data/shipped-proposals.js
@@ -4,7 +4,7 @@
 
 const proposalPlugins = new Set([
   "proposal-class-properties",
-  "proposal-private-methods"
+  "proposal-private-methods",
 ]);
 
 // use intermediary object to enforce alphabetical key order
diff --git a/repos/babel/packages/babel-traverse/src/path/ancestry.js b/repos/babel/packages/babel-traverse/src/path/ancestry.js
index 758def8e5..73ab074b9 100644
--- a/repos/babel/packages/babel-traverse/src/path/ancestry.js
+++ b/repos/babel/packages/babel-traverse/src/path/ancestry.js
@@ -78,43 +78,42 @@ export function getStatementParent(): NodePath {
 export function getEarliestCommonAncestorFrom(
   paths: Array<NodePath>,
 ): NodePath {
-  return this.getDeepestCommonAncestorFrom(paths, function (
-    deepest,
-    i,
-    ancestries,
-  ) {
-    let earliest;
-    const keys = t.VISITOR_KEYS[deepest.type];
+  return this.getDeepestCommonAncestorFrom(
+    paths,
+    function (deepest, i, ancestries) {
+      let earliest;
+      const keys = t.VISITOR_KEYS[deepest.type];
 
-    for (const ancestry of (ancestries: Array)) {
-      const path = ancestry[i + 1];
-
-      // first path
-      if (!earliest) {
-        earliest = path;
-        continue;
-      }
+      for (const ancestry of (ancestries: Array)) {
+        const path = ancestry[i + 1];
 
-      // handle containers
-      if (path.listKey && earliest.listKey === path.listKey) {
-        // we're in the same container so check if we're earlier
-        if (path.key < earliest.key) {
+        // first path
+        if (!earliest) {
           earliest = path;
           continue;
         }
-      }
 
-      // handle keys
-      const earliestKeyIndex = keys.indexOf(earliest.parentKey);
-      const currentKeyIndex = keys.indexOf(path.parentKey);
-      if (earliestKeyIndex > currentKeyIndex) {
-        // key appears before so it's earlier
-        earliest = path;
+        // handle containers
+        if (path.listKey && earliest.listKey === path.listKey) {
+          // we're in the same container so check if we're earlier
+          if (path.key < earliest.key) {
+            earliest = path;
+            continue;
+          }
+        }
+
+        // handle keys
+        const earliestKeyIndex = keys.indexOf(earliest.parentKey);
+        const currentKeyIndex = keys.indexOf(path.parentKey);
+        if (earliestKeyIndex > currentKeyIndex) {
+          // key appears before so it's earlier
+          earliest = path;
+        }
       }
-    }
 
-    return earliest;
-  });
+      return earliest;
+    },
+  );
 }
 
 /**
Submodule repos/typescript-eslint contains modified content
diff --git a/repos/typescript-eslint/packages/eslint-plugin/src/rules/indent-new-do-not-use/index.ts b/repos/typescript-eslint/packages/eslint-plugin/src/rules/indent-new-do-not-use/index.ts
index 05c35c7a..7b6bf6d3 100644
--- a/repos/typescript-eslint/packages/eslint-plugin/src/rules/indent-new-do-not-use/index.ts
+++ b/repos/typescript-eslint/packages/eslint-plugin/src/rules/indent-new-do-not-use/index.ts
@@ -1570,9 +1570,9 @@ export default createRule<Options, MessageIds>({
      * 2. Don't set any offsets against the first token of the node.
      * 3. Call `ignoreNode` on the node sometime after exiting it and before validating offsets.
      */
-    const offsetListeners = Object.keys(baseOffsetListeners).reduce<
-      TSESLint.RuleListener
-    >(
+    const offsetListeners = Object.keys(
+      baseOffsetListeners,
+    ).reduce<TSESLint.RuleListener>(
       /*
        * Offset listener calls are deferred until traversal is finished, and are called as
        * part of the final `Program:exit` listener. This is necessary because a node might
@@ -1590,9 +1590,9 @@ export default createRule<Options, MessageIds>({
        * ignored nodes are known.
        */
       (acc, key) => {
-        const listener = baseOffsetListeners[key] as TSESLint.RuleFunction<
-          TSESTree.Node
-        >;
+        const listener = baseOffsetListeners[
+          key
+        ] as TSESLint.RuleFunction<TSESTree.Node>;
         // eslint-disable-next-line @typescript-eslint/explicit-function-return-type
         acc[key] = node => listenerCallQueue.push({ listener, node });
 
diff --git a/repos/typescript-eslint/packages/eslint-plugin/src/rules/naming-convention.ts b/repos/typescript-eslint/packages/eslint-plugin/src/rules/naming-convention.ts
index 295e8209..4a9378d7 100644
--- a/repos/typescript-eslint/packages/eslint-plugin/src/rules/naming-convention.ts
+++ b/repos/typescript-eslint/packages/eslint-plugin/src/rules/naming-convention.ts
@@ -1237,10 +1237,9 @@ function validateUnderscores(name: string): boolean {
   return !wasUnderscore;
 }
 
-const PredefinedFormatToCheckFunction: Readonly<Record<
-  PredefinedFormats,
-  (name: string) => boolean
->> = {
+const PredefinedFormatToCheckFunction: Readonly<
+  Record<PredefinedFormats, (name: string) => boolean>
+> = {
   [PredefinedFormats.PascalCase]: isPascalCase,
   [PredefinedFormats.StrictPascalCase]: isStrictPascalCase,
   [PredefinedFormats.camelCase]: isCamelCase,
diff --git a/repos/typescript-eslint/packages/eslint-plugin/src/rules/semi.ts b/repos/typescript-eslint/packages/eslint-plugin/src/rules/semi.ts
index e73fd4b5..9c18d0e3 100644
--- a/repos/typescript-eslint/packages/eslint-plugin/src/rules/semi.ts
+++ b/repos/typescript-eslint/packages/eslint-plugin/src/rules/semi.ts
@@ -36,9 +36,7 @@ export default util.createRule<Options, MessageIds>({
   ],
   create(context) {
     const rules = baseRule.create(context);
-    const checkForSemicolon = rules.ExpressionStatement as TSESLint.RuleFunction<
-      TSESTree.Node
-    >;
+    const checkForSemicolon = rules.ExpressionStatement as TSESLint.RuleFunction<TSESTree.Node>;
 
     /*
       The following nodes are handled by the member-delimiter-style rule
diff --git a/repos/typescript-eslint/packages/eslint-plugin/src/util/index.ts b/repos/typescript-eslint/packages/eslint-plugin/src/util/index.ts
index 672f50dc..f76bf47e 100644
--- a/repos/typescript-eslint/packages/eslint-plugin/src/util/index.ts
+++ b/repos/typescript-eslint/packages/eslint-plugin/src/util/index.ts
@@ -16,9 +16,9 @@ const {
   isObjectNotArray,
   getParserServices,
 } = ESLintUtils;
-type InferMessageIdsTypeFromRule<T> = ESLintUtils.InferMessageIdsTypeFromRule<
+type InferMessageIdsTypeFromRule<
   T
->;
+> = ESLintUtils.InferMessageIdsTypeFromRule<T>;
 type InferOptionsTypeFromRule<T> = ESLintUtils.InferOptionsTypeFromRule<T>;
 
 export {
diff --git a/repos/typescript-eslint/packages/eslint-plugin/tests/rules/naming-convention.test.ts b/repos/typescript-eslint/packages/eslint-plugin/tests/rules/naming-convention.test.ts
index c57dfc98..0b3c3943 100644
--- a/repos/typescript-eslint/packages/eslint-plugin/tests/rules/naming-convention.test.ts
+++ b/repos/typescript-eslint/packages/eslint-plugin/tests/rules/naming-convention.test.ts
@@ -19,10 +19,9 @@ const parserOptions = {
   project: './tsconfig.json',
 };
 
-const formatTestNames: Readonly<Record<
-  PredefinedFormatsString,
-  Record<'valid' | 'invalid', string[]>
->> = {
+const formatTestNames: Readonly<
+  Record<PredefinedFormatsString, Record<'valid' | 'invalid', string[]>>
+> = {
   camelCase: {
     valid: ['strictCamelCase', 'lower', 'camelCaseUNSTRICT'],
     invalid: ['snake_case', 'UPPER_CASE', 'UPPER', 'StrictPascalCase'],
diff --git a/repos/typescript-eslint/packages/experimental-utils/src/ts-eslint/Rule.ts b/repos/typescript-eslint/packages/experimental-utils/src/ts-eslint/Rule.ts
index d305b291..6333207b 100644
--- a/repos/typescript-eslint/packages/experimental-utils/src/ts-eslint/Rule.ts
+++ b/repos/typescript-eslint/packages/experimental-utils/src/ts-eslint/Rule.ts
@@ -115,9 +115,9 @@ interface RuleFixer {
 type ReportFixFunction = (
   fixer: RuleFixer,
 ) => null | RuleFix | RuleFix[] | IterableIterator<RuleFix>;
-type ReportSuggestionArray<TMessageIds extends string> = ReportDescriptorBase<
-  TMessageIds
->[];
+type ReportSuggestionArray<
+  TMessageIds extends string
+> = ReportDescriptorBase<TMessageIds>[];
 
 interface ReportDescriptorBase<TMessageIds extends string> {
   /**
@@ -328,29 +328,21 @@ interface RuleListener {
   TryStatement?: RuleFunction<TSESTree.TryStatement>;
   TSAbstractClassProperty?: RuleFunction<TSESTree.TSAbstractClassProperty>;
   TSAbstractKeyword?: RuleFunction<TSESTree.TSAbstractKeyword>;
-  TSAbstractMethodDefinition?: RuleFunction<
-    TSESTree.TSAbstractMethodDefinition
-  >;
+  TSAbstractMethodDefinition?: RuleFunction<TSESTree.TSAbstractMethodDefinition>;
   TSAnyKeyword?: RuleFunction<TSESTree.TSAnyKeyword>;
   TSArrayType?: RuleFunction<TSESTree.TSArrayType>;
   TSAsExpression?: RuleFunction<TSESTree.TSAsExpression>;
   TSAsyncKeyword?: RuleFunction<TSESTree.TSAsyncKeyword>;
   TSBigIntKeyword?: RuleFunction<TSESTree.TSBigIntKeyword>;
   TSBooleanKeyword?: RuleFunction<TSESTree.TSBooleanKeyword>;
-  TSCallSignatureDeclaration?: RuleFunction<
-    TSESTree.TSCallSignatureDeclaration
-  >;
+  TSCallSignatureDeclaration?: RuleFunction<TSESTree.TSCallSignatureDeclaration>;
   TSClassImplements?: RuleFunction<TSESTree.TSClassImplements>;
   TSConditionalType?: RuleFunction<TSESTree.TSConditionalType>;
   TSConstructorType?: RuleFunction<TSESTree.TSConstructorType>;
-  TSConstructSignatureDeclaration?: RuleFunction<
-    TSESTree.TSConstructSignatureDeclaration
-  >;
+  TSConstructSignatureDeclaration?: RuleFunction<TSESTree.TSConstructSignatureDeclaration>;
   TSDeclareKeyword?: RuleFunction<TSESTree.TSDeclareKeyword>;
   TSDeclareFunction?: RuleFunction<TSESTree.TSDeclareFunction>;
-  TSEmptyBodyFunctionExpression?: RuleFunction<
-    TSESTree.TSEmptyBodyFunctionExpression
-  >;
+  TSEmptyBodyFunctionExpression?: RuleFunction<TSESTree.TSEmptyBodyFunctionExpression>;
   TSEnumDeclaration?: RuleFunction<TSESTree.TSEnumDeclaration>;
   TSEnumMember?: RuleFunction<TSESTree.TSEnumMember>;
   TSExportAssignment?: RuleFunction<TSESTree.TSExportAssignment>;
@@ -371,9 +363,7 @@ interface RuleListener {
   TSMethodSignature?: RuleFunction<TSESTree.TSMethodSignature>;
   TSModuleBlock?: RuleFunction<TSESTree.TSModuleBlock>;
   TSModuleDeclaration?: RuleFunction<TSESTree.TSModuleDeclaration>;
-  TSNamespaceExportDeclaration?: RuleFunction<
-    TSESTree.TSNamespaceExportDeclaration
-  >;
+  TSNamespaceExportDeclaration?: RuleFunction<TSESTree.TSNamespaceExportDeclaration>;
   TSNeverKeyword?: RuleFunction<TSESTree.TSNeverKeyword>;
   TSNonNullExpression?: RuleFunction<TSESTree.TSNonNullExpression>;
   TSNullKeyword?: RuleFunction<TSESTree.TSNullKeyword>;
@@ -400,12 +390,8 @@ interface RuleListener {
   TSTypeLiteral?: RuleFunction<TSESTree.TSTypeLiteral>;
   TSTypeOperator?: RuleFunction<TSESTree.TSTypeOperator>;
   TSTypeParameter?: RuleFunction<TSESTree.TSTypeParameter>;
-  TSTypeParameterDeclaration?: RuleFunction<
-    TSESTree.TSTypeParameterDeclaration
-  >;
-  TSTypeParameterInstantiation?: RuleFunction<
-    TSESTree.TSTypeParameterInstantiation
-  >;
+  TSTypeParameterDeclaration?: RuleFunction<TSESTree.TSTypeParameterDeclaration>;
+  TSTypeParameterInstantiation?: RuleFunction<TSESTree.TSTypeParameterInstantiation>;
   TSTypePredicate?: RuleFunction<TSESTree.TSTypePredicate>;
   TSTypeQuery?: RuleFunction<TSESTree.TSTypeQuery>;
   TSTypeReference?: RuleFunction<TSESTree.TSTypeReference>;

@sosukesuzuki
Copy link
Member Author

run

@github-actions
Copy link
Contributor

Diff by prettier/prettier@002dc6c

Submodule repos/babel contains modified content
diff --git a/repos/babel/packages/babel-core/test/api.js b/repos/babel/packages/babel-core/test/api.js
index bf714bc6e..c2e25f6fc 100644
--- a/repos/babel/packages/babel-core/test/api.js
+++ b/repos/babel/packages/babel-core/test/api.js
@@ -167,16 +167,17 @@ describe("api", function () {
       babelrc: false,
     };
     Object.freeze(options);
-    transformFile(__dirname + "/fixtures/api/file.js", options, function (
-      err,
-      res,
-    ) {
-      if (err) return done(err);
-      expect(res.code).toBe("foo();");
-      // keep user options untouched
-      expect(options).toEqual({ babelrc: false });
-      done();
-    });
+    transformFile(
+      __dirname + "/fixtures/api/file.js",
+      options,
+      function (err, res) {
+        if (err) return done(err);
+        expect(res.code).toBe("foo();");
+        // keep user options untouched
+        expect(options).toEqual({ babelrc: false });
+        done();
+      },
+    );
   });
 
   it("transformFileSync", function () {
diff --git a/repos/babel/packages/babel-preset-env/data/shipped-proposals.js b/repos/babel/packages/babel-preset-env/data/shipped-proposals.js
index 95ca9b119..baeca41a9 100644
--- a/repos/babel/packages/babel-preset-env/data/shipped-proposals.js
+++ b/repos/babel/packages/babel-preset-env/data/shipped-proposals.js
@@ -4,7 +4,7 @@
 
 const proposalPlugins = new Set([
   "proposal-class-properties",
-  "proposal-private-methods"
+  "proposal-private-methods",
 ]);
 
 // use intermediary object to enforce alphabetical key order
diff --git a/repos/babel/packages/babel-traverse/src/path/ancestry.js b/repos/babel/packages/babel-traverse/src/path/ancestry.js
index 758def8e5..73ab074b9 100644
--- a/repos/babel/packages/babel-traverse/src/path/ancestry.js
+++ b/repos/babel/packages/babel-traverse/src/path/ancestry.js
@@ -78,43 +78,42 @@ export function getStatementParent(): NodePath {
 export function getEarliestCommonAncestorFrom(
   paths: Array<NodePath>,
 ): NodePath {
-  return this.getDeepestCommonAncestorFrom(paths, function (
-    deepest,
-    i,
-    ancestries,
-  ) {
-    let earliest;
-    const keys = t.VISITOR_KEYS[deepest.type];
+  return this.getDeepestCommonAncestorFrom(
+    paths,
+    function (deepest, i, ancestries) {
+      let earliest;
+      const keys = t.VISITOR_KEYS[deepest.type];
 
-    for (const ancestry of (ancestries: Array)) {
-      const path = ancestry[i + 1];
-
-      // first path
-      if (!earliest) {
-        earliest = path;
-        continue;
-      }
+      for (const ancestry of (ancestries: Array)) {
+        const path = ancestry[i + 1];
 
-      // handle containers
-      if (path.listKey && earliest.listKey === path.listKey) {
-        // we're in the same container so check if we're earlier
-        if (path.key < earliest.key) {
+        // first path
+        if (!earliest) {
           earliest = path;
           continue;
         }
-      }
 
-      // handle keys
-      const earliestKeyIndex = keys.indexOf(earliest.parentKey);
-      const currentKeyIndex = keys.indexOf(path.parentKey);
-      if (earliestKeyIndex > currentKeyIndex) {
-        // key appears before so it's earlier
-        earliest = path;
+        // handle containers
+        if (path.listKey && earliest.listKey === path.listKey) {
+          // we're in the same container so check if we're earlier
+          if (path.key < earliest.key) {
+            earliest = path;
+            continue;
+          }
+        }
+
+        // handle keys
+        const earliestKeyIndex = keys.indexOf(earliest.parentKey);
+        const currentKeyIndex = keys.indexOf(path.parentKey);
+        if (earliestKeyIndex > currentKeyIndex) {
+          // key appears before so it's earlier
+          earliest = path;
+        }
       }
-    }
 
-    return earliest;
-  });
+      return earliest;
+    },
+  );
 }
 
 /**
Submodule repos/typescript-eslint contains modified content
diff --git a/repos/typescript-eslint/packages/eslint-plugin/src/rules/indent-new-do-not-use/index.ts b/repos/typescript-eslint/packages/eslint-plugin/src/rules/indent-new-do-not-use/index.ts
index 05c35c7a..7b6bf6d3 100644
--- a/repos/typescript-eslint/packages/eslint-plugin/src/rules/indent-new-do-not-use/index.ts
+++ b/repos/typescript-eslint/packages/eslint-plugin/src/rules/indent-new-do-not-use/index.ts
@@ -1570,9 +1570,9 @@ export default createRule<Options, MessageIds>({
      * 2. Don't set any offsets against the first token of the node.
      * 3. Call `ignoreNode` on the node sometime after exiting it and before validating offsets.
      */
-    const offsetListeners = Object.keys(baseOffsetListeners).reduce<
-      TSESLint.RuleListener
-    >(
+    const offsetListeners = Object.keys(
+      baseOffsetListeners,
+    ).reduce<TSESLint.RuleListener>(
       /*
        * Offset listener calls are deferred until traversal is finished, and are called as
        * part of the final `Program:exit` listener. This is necessary because a node might
@@ -1590,9 +1590,9 @@ export default createRule<Options, MessageIds>({
        * ignored nodes are known.
        */
       (acc, key) => {
-        const listener = baseOffsetListeners[key] as TSESLint.RuleFunction<
-          TSESTree.Node
-        >;
+        const listener = baseOffsetListeners[
+          key
+        ] as TSESLint.RuleFunction<TSESTree.Node>;
         // eslint-disable-next-line @typescript-eslint/explicit-function-return-type
         acc[key] = node => listenerCallQueue.push({ listener, node });
 
diff --git a/repos/typescript-eslint/packages/eslint-plugin/src/rules/naming-convention.ts b/repos/typescript-eslint/packages/eslint-plugin/src/rules/naming-convention.ts
index 295e8209..4a9378d7 100644
--- a/repos/typescript-eslint/packages/eslint-plugin/src/rules/naming-convention.ts
+++ b/repos/typescript-eslint/packages/eslint-plugin/src/rules/naming-convention.ts
@@ -1237,10 +1237,9 @@ function validateUnderscores(name: string): boolean {
   return !wasUnderscore;
 }
 
-const PredefinedFormatToCheckFunction: Readonly<Record<
-  PredefinedFormats,
-  (name: string) => boolean
->> = {
+const PredefinedFormatToCheckFunction: Readonly<
+  Record<PredefinedFormats, (name: string) => boolean>
+> = {
   [PredefinedFormats.PascalCase]: isPascalCase,
   [PredefinedFormats.StrictPascalCase]: isStrictPascalCase,
   [PredefinedFormats.camelCase]: isCamelCase,
diff --git a/repos/typescript-eslint/packages/eslint-plugin/src/rules/semi.ts b/repos/typescript-eslint/packages/eslint-plugin/src/rules/semi.ts
index e73fd4b5..9c18d0e3 100644
--- a/repos/typescript-eslint/packages/eslint-plugin/src/rules/semi.ts
+++ b/repos/typescript-eslint/packages/eslint-plugin/src/rules/semi.ts
@@ -36,9 +36,7 @@ export default util.createRule<Options, MessageIds>({
   ],
   create(context) {
     const rules = baseRule.create(context);
-    const checkForSemicolon = rules.ExpressionStatement as TSESLint.RuleFunction<
-      TSESTree.Node
-    >;
+    const checkForSemicolon = rules.ExpressionStatement as TSESLint.RuleFunction<TSESTree.Node>;
 
     /*
       The following nodes are handled by the member-delimiter-style rule
diff --git a/repos/typescript-eslint/packages/eslint-plugin/src/util/index.ts b/repos/typescript-eslint/packages/eslint-plugin/src/util/index.ts
index 672f50dc..f76bf47e 100644
--- a/repos/typescript-eslint/packages/eslint-plugin/src/util/index.ts
+++ b/repos/typescript-eslint/packages/eslint-plugin/src/util/index.ts
@@ -16,9 +16,9 @@ const {
   isObjectNotArray,
   getParserServices,
 } = ESLintUtils;
-type InferMessageIdsTypeFromRule<T> = ESLintUtils.InferMessageIdsTypeFromRule<
+type InferMessageIdsTypeFromRule<
   T
->;
+> = ESLintUtils.InferMessageIdsTypeFromRule<T>;
 type InferOptionsTypeFromRule<T> = ESLintUtils.InferOptionsTypeFromRule<T>;
 
 export {
diff --git a/repos/typescript-eslint/packages/eslint-plugin/tests/rules/naming-convention.test.ts b/repos/typescript-eslint/packages/eslint-plugin/tests/rules/naming-convention.test.ts
index c57dfc98..0b3c3943 100644
--- a/repos/typescript-eslint/packages/eslint-plugin/tests/rules/naming-convention.test.ts
+++ b/repos/typescript-eslint/packages/eslint-plugin/tests/rules/naming-convention.test.ts
@@ -19,10 +19,9 @@ const parserOptions = {
   project: './tsconfig.json',
 };
 
-const formatTestNames: Readonly<Record<
-  PredefinedFormatsString,
-  Record<'valid' | 'invalid', string[]>
->> = {
+const formatTestNames: Readonly<
+  Record<PredefinedFormatsString, Record<'valid' | 'invalid', string[]>>
+> = {
   camelCase: {
     valid: ['strictCamelCase', 'lower', 'camelCaseUNSTRICT'],
     invalid: ['snake_case', 'UPPER_CASE', 'UPPER', 'StrictPascalCase'],
diff --git a/repos/typescript-eslint/packages/experimental-utils/src/ts-eslint/Rule.ts b/repos/typescript-eslint/packages/experimental-utils/src/ts-eslint/Rule.ts
index d305b291..6333207b 100644
--- a/repos/typescript-eslint/packages/experimental-utils/src/ts-eslint/Rule.ts
+++ b/repos/typescript-eslint/packages/experimental-utils/src/ts-eslint/Rule.ts
@@ -115,9 +115,9 @@ interface RuleFixer {
 type ReportFixFunction = (
   fixer: RuleFixer,
 ) => null | RuleFix | RuleFix[] | IterableIterator<RuleFix>;
-type ReportSuggestionArray<TMessageIds extends string> = ReportDescriptorBase<
-  TMessageIds
->[];
+type ReportSuggestionArray<
+  TMessageIds extends string
+> = ReportDescriptorBase<TMessageIds>[];
 
 interface ReportDescriptorBase<TMessageIds extends string> {
   /**
@@ -328,29 +328,21 @@ interface RuleListener {
   TryStatement?: RuleFunction<TSESTree.TryStatement>;
   TSAbstractClassProperty?: RuleFunction<TSESTree.TSAbstractClassProperty>;
   TSAbstractKeyword?: RuleFunction<TSESTree.TSAbstractKeyword>;
-  TSAbstractMethodDefinition?: RuleFunction<
-    TSESTree.TSAbstractMethodDefinition
-  >;
+  TSAbstractMethodDefinition?: RuleFunction<TSESTree.TSAbstractMethodDefinition>;
   TSAnyKeyword?: RuleFunction<TSESTree.TSAnyKeyword>;
   TSArrayType?: RuleFunction<TSESTree.TSArrayType>;
   TSAsExpression?: RuleFunction<TSESTree.TSAsExpression>;
   TSAsyncKeyword?: RuleFunction<TSESTree.TSAsyncKeyword>;
   TSBigIntKeyword?: RuleFunction<TSESTree.TSBigIntKeyword>;
   TSBooleanKeyword?: RuleFunction<TSESTree.TSBooleanKeyword>;
-  TSCallSignatureDeclaration?: RuleFunction<
-    TSESTree.TSCallSignatureDeclaration
-  >;
+  TSCallSignatureDeclaration?: RuleFunction<TSESTree.TSCallSignatureDeclaration>;
   TSClassImplements?: RuleFunction<TSESTree.TSClassImplements>;
   TSConditionalType?: RuleFunction<TSESTree.TSConditionalType>;
   TSConstructorType?: RuleFunction<TSESTree.TSConstructorType>;
-  TSConstructSignatureDeclaration?: RuleFunction<
-    TSESTree.TSConstructSignatureDeclaration
-  >;
+  TSConstructSignatureDeclaration?: RuleFunction<TSESTree.TSConstructSignatureDeclaration>;
   TSDeclareKeyword?: RuleFunction<TSESTree.TSDeclareKeyword>;
   TSDeclareFunction?: RuleFunction<TSESTree.TSDeclareFunction>;
-  TSEmptyBodyFunctionExpression?: RuleFunction<
-    TSESTree.TSEmptyBodyFunctionExpression
-  >;
+  TSEmptyBodyFunctionExpression?: RuleFunction<TSESTree.TSEmptyBodyFunctionExpression>;
   TSEnumDeclaration?: RuleFunction<TSESTree.TSEnumDeclaration>;
   TSEnumMember?: RuleFunction<TSESTree.TSEnumMember>;
   TSExportAssignment?: RuleFunction<TSESTree.TSExportAssignment>;
@@ -371,9 +363,7 @@ interface RuleListener {
   TSMethodSignature?: RuleFunction<TSESTree.TSMethodSignature>;
   TSModuleBlock?: RuleFunction<TSESTree.TSModuleBlock>;
   TSModuleDeclaration?: RuleFunction<TSESTree.TSModuleDeclaration>;
-  TSNamespaceExportDeclaration?: RuleFunction<
-    TSESTree.TSNamespaceExportDeclaration
-  >;
+  TSNamespaceExportDeclaration?: RuleFunction<TSESTree.TSNamespaceExportDeclaration>;
   TSNeverKeyword?: RuleFunction<TSESTree.TSNeverKeyword>;
   TSNonNullExpression?: RuleFunction<TSESTree.TSNonNullExpression>;
   TSNullKeyword?: RuleFunction<TSESTree.TSNullKeyword>;
@@ -400,12 +390,8 @@ interface RuleListener {
   TSTypeLiteral?: RuleFunction<TSESTree.TSTypeLiteral>;
   TSTypeOperator?: RuleFunction<TSESTree.TSTypeOperator>;
   TSTypeParameter?: RuleFunction<TSESTree.TSTypeParameter>;
-  TSTypeParameterDeclaration?: RuleFunction<
-    TSESTree.TSTypeParameterDeclaration
-  >;
-  TSTypeParameterInstantiation?: RuleFunction<
-    TSESTree.TSTypeParameterInstantiation
-  >;
+  TSTypeParameterDeclaration?: RuleFunction<TSESTree.TSTypeParameterDeclaration>;
+  TSTypeParameterInstantiation?: RuleFunction<TSESTree.TSTypeParameterInstantiation>;
   TSTypePredicate?: RuleFunction<TSESTree.TSTypePredicate>;
   TSTypeQuery?: RuleFunction<TSESTree.TSTypeQuery>;
   TSTypeReference?: RuleFunction<TSESTree.TSTypeReference>;

@sosukesuzuki
Copy link
Member Author

2.2 has been released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants