-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
Demo #6
Comments
run |
There is no diff by prettier/prettier@7c5a7d3 |
run |
run with foo |
This comment has been minimized.
This comment has been minimized.
1 similar comment
run with checking out 36c35be2109e4d4d4b0e89862c993e15e22cc6d1 |
Diff by prettier/prettier@36c35be Submodule repos/eslint-plugin-vue contains modified content
diff --git a/repos/eslint-plugin-vue/tools/setup-eslint-rule-types.js b/repos/eslint-plugin-vue/tools/setup-eslint-rule-types.js
index d836d02..dc6c258 100644
--- a/repos/eslint-plugin-vue/tools/setup-eslint-rule-types.js
+++ b/repos/eslint-plugin-vue/tools/setup-eslint-rule-types.js
@@ -7,7 +7,11 @@
const fs = require('fs')
const path = require('path')
const eslint = require('eslint')
-const ruleNames = new Set(new eslint.Linter().getRules().keys())
+const ruleNames = new Set(
+ new eslint.Linter()
+ .getRules()
+ .keys()
+)
const TYPINGS_ESLINT_RULES_ROOT = path.resolve(
__dirname,
Submodule repos/typescript-eslint contains modified content
diff --git a/repos/typescript-eslint/packages/experimental-utils/src/ts-eslint/RuleTester.ts b/repos/typescript-eslint/packages/experimental-utils/src/ts-eslint/RuleTester.ts
index a1fa2104..83e1ed30 100644
--- a/repos/typescript-eslint/packages/experimental-utils/src/ts-eslint/RuleTester.ts
+++ b/repos/typescript-eslint/packages/experimental-utils/src/ts-eslint/RuleTester.ts
@@ -58,9 +58,10 @@ interface SuggestionOutput<TMessageIds extends string> {
}
interface InvalidTestCase<
- TMessageIds extends string,
- TOptions extends Readonly<unknown[]>
-> extends ValidTestCase<TOptions> {
+ TMessageIds extends string,
+ TOptions extends Readonly<unknown[]>
+ >
+ extends ValidTestCase<TOptions> {
/**
* Expected errors.
*/ |
run |
1 similar comment
run |
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>; |
run with checking out 16e33ba75c0f10c3a39f0b346ae8ef4d452124d3 on fisker/prettier |
1 similar comment
run with checking out 16e33ba75c0f10c3a39f0b346ae8ef4d452124d3 on fisker/prettier |
run with checking out 16e33ba75c0f10c3a39f0b346ae8ef4d452124d3 on fisker/prettier |
run with checking out 36c35be2109e4d4d4b0e89862c993e15e22cc6d1 |
This comment has been minimized.
This comment has been minimized.
run with checking out 16e33ba75c0f10c3a39f0b346ae8ef4d452124d3 on fisker/prettier |
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>; |
run |
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>; |
This is a demo!
The text was updated successfully, but these errors were encountered: