[GH-ISSUE #335] Remove underscore from root scss file #208

Closed
opened 2026-03-03 14:35:28 +03:00 by kerem · 4 comments
Owner

Originally created by @dmersiowsky on GitHub (Jan 5, 2017).
Original GitHub issue: https://github.com/lipis/flag-icons/issues/335

When trying to import flag-icon-css through sass @import statement, linting fails with:
"Unexpected leading underscore in imported partial name"

The import statement is
@import "flag-icon-css/sass/_flag-icon";

As _flag-icon.scss seems to be the root SASS file, it should not have an underscore.
(This also makes it easier for other people to find out which file to include.)

Originally created by @dmersiowsky on GitHub (Jan 5, 2017). Original GitHub issue: https://github.com/lipis/flag-icons/issues/335 When trying to import flag-icon-css through sass `@import` statement, linting fails with: "Unexpected leading underscore in imported partial name" The import statement is `@import "flag-icon-css/sass/_flag-icon";` As `_flag-icon.scss` seems to be the root SASS file, it should not have an underscore. (This also makes it easier for other people to find out which file to include.)
kerem closed this issue 2026-03-03 14:35:28 +03:00
Author
Owner

@lipis commented on GitHub (Jan 5, 2017):

Do you mind providing a PR.. or I can do it later this week

<!-- gh-comment-id:270632401 --> @lipis commented on GitHub (Jan 5, 2017): Do you mind providing a PR.. or I can do it later this week
Author
Owner

@dmersiowsky commented on GitHub (Jan 5, 2017):

Here you go :)

<!-- gh-comment-id:270653708 --> @dmersiowsky commented on GitHub (Jan 5, 2017): Here you go :)
Author
Owner

@lipis commented on GitHub (Jan 6, 2017):

Thank you!! Sorry for taking a bit longer..

<!-- gh-comment-id:271032531 --> @lipis commented on GitHub (Jan 6, 2017): Thank you!! Sorry for taking a bit longer..
Author
Owner

@dmersiowsky commented on GitHub (Jan 7, 2017):

Thanks for merging! No worries, I have seen pull requests taking waaay longer ;-)

<!-- gh-comment-id:271072051 --> @dmersiowsky commented on GitHub (Jan 7, 2017): Thanks for merging! No worries, I have seen pull requests taking waaay longer ;-)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/flag-icons#208
No description provided.