Skip to content

Commit 8f630eb

Browse files
authored
fix: add missing types for no-param-reassign options (#18906)
* fix: add missing types for `no-param-reassign` options * refactor: improve types for `no-param-reassign`
1 parent d715781 commit 8f630eb

File tree

1 file changed

+16
-10
lines changed

1 file changed

+16
-10
lines changed

lib/types/rules/best-practices.d.ts

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -685,16 +685,22 @@ export interface BestPractices extends Linter.RulesRecord {
685685
*/
686686
"no-param-reassign": Linter.RuleEntry<
687687
[
688-
Partial<{
689-
/**
690-
* @default false
691-
*/
692-
props: boolean;
693-
/**
694-
* @default []
695-
*/
696-
ignorePropertyModificationsFor: string[];
697-
}>,
688+
| {
689+
props?: false;
690+
}
691+
| ({
692+
props: true;
693+
} & Partial<{
694+
/**
695+
* @default []
696+
*/
697+
ignorePropertyModificationsFor: string[];
698+
/**
699+
* @since 6.6.0
700+
* @default []
701+
*/
702+
ignorePropertyModificationsForRegex: string[];
703+
}>),
698704
]
699705
>;
700706

0 commit comments

Comments
 (0)