rename unknownConfigKey to invalidHelperKey
parent
b052884ad4
commit
60cc17be77
|
@ -120,7 +120,7 @@
|
|||
"markdownDescription": "",
|
||||
"scope": "language-overridable"
|
||||
},
|
||||
"tailwindCSS.lint.unknownConfigKey": {
|
||||
"tailwindCSS.lint.invalidHelperKey": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"ignore",
|
||||
|
|
|
@ -248,12 +248,12 @@ function getUnknownVariantDiagnostics(
|
|||
return diagnostics
|
||||
}
|
||||
|
||||
function getUnknownConfigKeyDiagnostics(
|
||||
function getInvalidHelperKeyDiagnostics(
|
||||
state: State,
|
||||
document: TextDocument,
|
||||
settings: Settings
|
||||
): Diagnostic[] {
|
||||
let severity = settings.lint.unknownConfigKey
|
||||
let severity = settings.lint.invalidHelperKey
|
||||
if (severity === 'ignore') return []
|
||||
|
||||
let diagnostics: Diagnostic[] = []
|
||||
|
@ -391,7 +391,7 @@ export async function provideDiagnostics(
|
|||
...getUnsupportedApplyDiagnostics(state, document, settings),
|
||||
...getUnknownScreenDiagnostics(state, document, settings),
|
||||
...getUnknownVariantDiagnostics(state, document, settings),
|
||||
...getUnknownConfigKeyDiagnostics(state, document, settings),
|
||||
...getInvalidHelperKeyDiagnostics(state, document, settings),
|
||||
...getUnsupportedTailwindDirectiveDiagnostics(
|
||||
state,
|
||||
document,
|
||||
|
|
|
@ -43,7 +43,7 @@ const defaultSettings: Settings = {
|
|||
unsupportedApply: 'error',
|
||||
unknownScreen: 'error',
|
||||
unknownVariant: 'error',
|
||||
unknownConfigKey: 'error',
|
||||
invalidHelperKey: 'error',
|
||||
unsupportedTailwindDirective: 'error',
|
||||
},
|
||||
}
|
||||
|
|
|
@ -37,7 +37,7 @@ export type Settings = {
|
|||
unsupportedApply: DiagnosticSeveritySetting
|
||||
unknownScreen: DiagnosticSeveritySetting
|
||||
unknownVariant: DiagnosticSeveritySetting
|
||||
unknownConfigKey: DiagnosticSeveritySetting
|
||||
invalidHelperKey: DiagnosticSeveritySetting
|
||||
unsupportedTailwindDirective: DiagnosticSeveritySetting
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue