Skip to content

invalid-css-import

Reports a stylesheet import that cannot be resolved.

This rule reports an @import in your stylesheet that the integration cannot resolve, such as a misspelled package name or a missing file. The import adds nothing.

Reported

@import "stilwind";invalid-css-import: `stilwind` cannot be resolved or read; the stylesheet is loaded without this import

Fixed

@import "stillwind";

How to fix

  • Check the spelling of the package name, and that the package is installed.
  • Write a file path relative to the stylesheet that imports it, and check that the file exists.
  • For a package stylesheet, check that the package exports that path.

Rule settings

PresetSeverity
recommendeddeny
strictdeny
stylisticoff

Configure lint to change the severity or options.