Skip to content

Commit a36d935

Browse files
committed
-> doesNotSatisfy
1 parent 531911a commit a36d935

File tree

1 file changed

+6
-6
lines changed
  • packages/eslint-plugin-svelte/src/utils

1 file changed

+6
-6
lines changed

packages/eslint-plugin-svelte/src/utils/index.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { RuleModule, PartialRuleModule, PartialRuleMetaData, RuleContext } from '../types.js';
22
import { getSvelteContext, type SvelteContext } from '../utils/svelte-context.js';
33

4-
function isNotSatisfies<T>(actual: T, expected?: T[]): boolean {
4+
function doesNotSatisfy<T>(actual: T, expected?: T[]): boolean {
55
if (expected == null || expected.length === 0) {
66
return false;
77
}
@@ -14,11 +14,11 @@ function satisfiesCondition(
1414
svelteContext: SvelteContext
1515
): boolean {
1616
if (
17-
isNotSatisfies(svelteContext.svelteVersion, condition.svelteVersions) ||
18-
isNotSatisfies(svelteContext.fileType, condition.fileTypes) ||
19-
isNotSatisfies(svelteContext.runes, condition.runes) ||
20-
isNotSatisfies(svelteContext.svelteKitVersion, condition.svelteKitVersions) ||
21-
isNotSatisfies(svelteContext.svelteKitFileType, condition.svelteKitFileTypes)
17+
doesNotSatisfy(svelteContext.svelteVersion, condition.svelteVersions) ||
18+
doesNotSatisfy(svelteContext.fileType, condition.fileTypes) ||
19+
doesNotSatisfy(svelteContext.runes, condition.runes) ||
20+
doesNotSatisfy(svelteContext.svelteKitVersion, condition.svelteKitVersions) ||
21+
doesNotSatisfy(svelteContext.svelteKitFileType, condition.svelteKitFileTypes)
2222
) {
2323
return false;
2424
}

0 commit comments

Comments
 (0)