-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Angular compatibility #29
Comments
This is beyond the scope of this rule. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In angular projects, there is an
angular.json
file, where we can define a list of style sheets to import in the app (see https://angular.io/guide/workspace-config#additional-build-and-test-options). Then, the css variables defined in these root sheets don't necessary need to be imported via@import
to be available in others css files.In the pluggin, with the configuration property
importFrom: ["/my-css.css"]
, the declared file seems to be used only when@import my-css.css
is present in the file where the variable is used. So all the usages of my variables are in error, when they shouldn't, as they are declared in a root file.Is there a way to add a new stylelint configuration property of style file paths, as
importFrom
one, used by the pluggin to search for variable declarations even if there is no@import
statement in the file containing the variable usages?Examples:
my-root-style.css
my-other-style.css
This should be valid with a stylelint config file containing :
And this should still be invalid with a stylelint config file containing :
or
The text was updated successfully, but these errors were encountered: