interface Options {
    data?: CSSDataConfiguration;
    format?: CSSFormatConfiguration;
    lint?: {
        argumentsInColorFunction?: "ignore" | "warning" | "error";
        boxModel?: "ignore" | "warning" | "error";
        compatibleVendorPrefixes?: "ignore" | "warning" | "error";
        duplicateProperties?: "ignore" | "warning" | "error";
        emptyRules?: "ignore" | "warning" | "error";
        float?: "ignore" | "warning" | "error";
        fontFaceProperties?: "ignore" | "warning" | "error";
        hexColorLength?: "ignore" | "warning" | "error";
        idSelector?: "ignore" | "warning" | "error";
        ieHack?: "ignore" | "warning" | "error";
        importStatement?: "ignore" | "warning" | "error";
        important?: "ignore" | "warning" | "error";
        propertyIgnoredDueToDisplay?: "ignore" | "warning" | "error";
        universalSelector?: "ignore" | "warning" | "error";
        unknownProperties?: "ignore" | "warning" | "error";
        unknownVendorSpecificProperties?: "ignore" | "warning" | "error";
        vendorPrefix?: "ignore" | "warning" | "error";
        zeroUnits?: "ignore" | "warning" | "error";
    };
    validate?: boolean;
}

Properties

Configures the CSS data types known by the langauge service.

Settings for the CSS formatter.

lint?: {
    argumentsInColorFunction?: "ignore" | "warning" | "error";
    boxModel?: "ignore" | "warning" | "error";
    compatibleVendorPrefixes?: "ignore" | "warning" | "error";
    duplicateProperties?: "ignore" | "warning" | "error";
    emptyRules?: "ignore" | "warning" | "error";
    float?: "ignore" | "warning" | "error";
    fontFaceProperties?: "ignore" | "warning" | "error";
    hexColorLength?: "ignore" | "warning" | "error";
    idSelector?: "ignore" | "warning" | "error";
    ieHack?: "ignore" | "warning" | "error";
    importStatement?: "ignore" | "warning" | "error";
    important?: "ignore" | "warning" | "error";
    propertyIgnoredDueToDisplay?: "ignore" | "warning" | "error";
    universalSelector?: "ignore" | "warning" | "error";
    unknownProperties?: "ignore" | "warning" | "error";
    unknownVendorSpecificProperties?: "ignore" | "warning" | "error";
    vendorPrefix?: "ignore" | "warning" | "error";
    zeroUnits?: "ignore" | "warning" | "error";
}

Type declaration

  • Optional Readonly argumentsInColorFunction?: "ignore" | "warning" | "error"
  • Optional Readonly boxModel?: "ignore" | "warning" | "error"
  • Optional Readonly compatibleVendorPrefixes?: "ignore" | "warning" | "error"
  • Optional Readonly duplicateProperties?: "ignore" | "warning" | "error"
  • Optional Readonly emptyRules?: "ignore" | "warning" | "error"
  • Optional Readonly float?: "ignore" | "warning" | "error"
  • Optional Readonly fontFaceProperties?: "ignore" | "warning" | "error"
  • Optional Readonly hexColorLength?: "ignore" | "warning" | "error"
  • Optional Readonly idSelector?: "ignore" | "warning" | "error"
  • Optional Readonly ieHack?: "ignore" | "warning" | "error"
  • Optional Readonly importStatement?: "ignore" | "warning" | "error"
  • Optional Readonly important?: "ignore" | "warning" | "error"
  • Optional Readonly propertyIgnoredDueToDisplay?: "ignore" | "warning" | "error"
  • Optional Readonly universalSelector?: "ignore" | "warning" | "error"
  • Optional Readonly unknownProperties?: "ignore" | "warning" | "error"
  • Optional Readonly unknownVendorSpecificProperties?: "ignore" | "warning" | "error"
  • Optional Readonly vendorPrefix?: "ignore" | "warning" | "error"
  • Optional Readonly zeroUnits?: "ignore" | "warning" | "error"
validate?: boolean