Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonlyu123 committed Aug 1, 2024
1 parent d8a8fd9 commit 530abfd
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@ async function tryGetDiagnostics(
}

let ignoreScriptWarnings = false;
let ingoreStyleWarnings = false;
let ignoreStyleWarnings = false;
let ignoreTemplateWarnings = false;
if (!document.config?.preprocess || !!document.config.isFallbackConfig) {
ignoreTemplateWarnings = !!document.getLanguageAttribute('template');
ingoreStyleWarnings = !!document.getLanguageAttribute('style');
ignoreStyleWarnings = !!document.getLanguageAttribute('style');
const scriptAttr = document.getLanguageAttribute('script');
ignoreScriptWarnings = !!scriptAttr && scriptAttr !== 'ts';
}
Expand Down Expand Up @@ -95,7 +95,7 @@ async function tryGetDiagnostics(
diag,
document,
ignoreScriptWarnings,
ingoreStyleWarnings,
ignoreStyleWarnings,
ignoreTemplateWarnings
)
);
Expand Down Expand Up @@ -311,7 +311,7 @@ function isNoFalsePositive(
diag: Diagnostic,
doc: Document,
ignoreScriptWarnings: boolean,
ingoreStyleWarnings: boolean,
ignoreStyleWarnings: boolean,
ignoreTemplateWarnings: boolean
): boolean {
if (
Expand All @@ -322,7 +322,7 @@ function isNoFalsePositive(
}

if (
ingoreStyleWarnings &&
ignoreStyleWarnings &&
(diag.code === 'css-unused-selector' || diag.code === 'css_unused_selector')
) {
return false;
Expand Down

0 comments on commit 530abfd

Please sign in to comment.