Skip to content

Commit 0dc3ccb

Browse files
committed
typo
1 parent 435691b commit 0dc3ccb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/eslint-plugin-svelte/src/rules/no-unused-props.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { getFilename } from '../utils/compat.js';
88

99
type PropertyPath = string[];
1010

11-
let isDeprecationWarningShown = false;
11+
let isRemovedWarningShown = false;
1212

1313
export default createRule('no-unused-props', {
1414
meta: {
@@ -74,11 +74,11 @@ export default createRule('no-unused-props', {
7474
// TODO: Remove in v4
7575
// MEMO: `ignorePatterns` was a property that only existed from v3.2.0 to v3.2.1.
7676
// From v3.3.0, it was replaced with `ignorePropertyPatterns` and `ignoreTypePatterns`.
77-
if (options.ignorePatterns != null && !isDeprecationWarningShown) {
77+
if (options.ignorePatterns != null && !isRemovedWarningShown) {
7878
console.warn(
7979
'eslint-plugin-svelte: The `ignorePatterns` option in the `no-unused-props` rule has been removed. Please use `ignorePropertyPatterns` or/and `ignoreTypePatterns` instead.'
8080
);
81-
isDeprecationWarningShown = true;
81+
isRemovedWarningShown = true;
8282
}
8383

8484
const checkImportedTypes = options.checkImportedTypes ?? false;

0 commit comments

Comments
 (0)