Skip to content

Commit

Permalink
refactor: accept readonly on suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelss95 committed Oct 12, 2021
1 parent ee29109 commit 4507fa5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/experimental-utils/src/ts-eslint/Rule.ts
Expand Up @@ -117,7 +117,7 @@ type ReportFixFunction = (
fixer: RuleFixer,
) => null | RuleFix | readonly RuleFix[] | IterableIterator<RuleFix>;
type ReportSuggestionArray<TMessageIds extends string> =
SuggestionReportDescriptor<TMessageIds>[];
readonly SuggestionReportDescriptor<TMessageIds>[];

interface ReportDescriptorBase<TMessageIds extends string> {
/**
Expand Down
4 changes: 2 additions & 2 deletions packages/experimental-utils/src/ts-eslint/RuleTester.ts
@@ -1,7 +1,7 @@
import { RuleTester as ESLintRuleTester } from 'eslint';
import { AST_NODE_TYPES, AST_TOKEN_TYPES } from '../ts-estree';
import { ParserOptions } from './ParserOptions';
import { Linter } from './Linter';
import { ParserOptions } from './ParserOptions';
import {
RuleCreateFunction,
RuleModule,
Expand Down Expand Up @@ -108,7 +108,7 @@ interface TestCaseError<TMessageIds extends string> {
/**
* Reported suggestions.
*/
readonly suggestions?: SuggestionOutput<TMessageIds>[] | null;
readonly suggestions?: readonly SuggestionOutput<TMessageIds>[] | null;
/**
* The type of the reported AST node.
*/
Expand Down

0 comments on commit 4507fa5

Please sign in to comment.