Skip to content
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

New rule idea: Forbid @import use #710

Open
Christian24 opened this issue Nov 23, 2022 · 1 comment
Open

New rule idea: Forbid @import use #710

Christian24 opened this issue Nov 23, 2022 · 1 comment

Comments

@Christian24
Copy link

Christian24 commented Nov 23, 2022

Hello,

Given the sass team's discouragement to use @import: I think it would be helpful to have a rule ensuring that @import isn't used in a project.

This certainly wouldn't be part of the default rule set, but it would help folks who ran sass-migrator in their codebase to keep it consistent.

@stof
Copy link
Contributor

stof commented Oct 6, 2023

Note that this rule should still allow @import when Sass emits it as a CSS import (the logic for that already exists in the implementation of the partial-no-import rule)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants