Skip to content

Commit

Permalink
fix: add missing types for no-param-reassign options (#18906)
Browse files Browse the repository at this point in the history
* fix: add missing types for `no-param-reassign` options

* refactor: improve types for `no-param-reassign`
  • Loading branch information
kripod authored Sep 19, 2024
1 parent d715781 commit 8f630eb
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions lib/types/rules/best-practices.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -685,16 +685,22 @@ export interface BestPractices extends Linter.RulesRecord {
*/
"no-param-reassign": Linter.RuleEntry<
[
Partial<{
/**
* @default false
*/
props: boolean;
/**
* @default []
*/
ignorePropertyModificationsFor: string[];
}>,
| {
props?: false;
}
| ({
props: true;
} & Partial<{
/**
* @default []
*/
ignorePropertyModificationsFor: string[];
/**
* @since 6.6.0
* @default []
*/
ignorePropertyModificationsForRegex: string[];
}>),
]
>;

Expand Down

0 comments on commit 8f630eb

Please sign in to comment.