Skip to content

Sass-lint dies when it encounters variables starting with $-- #1248

@TheJaredWilcurt

Description

@TheJaredWilcurt

Sass-Lint Version: 1.12.1

Code:

$--background-color: #F00

CLI Error:

src/sass/_var.sass

║ Line     │ Column   │ Type     │ Message                                                │ Rule ID              ║
╟──────────┼──────────┼──────────┼────────────────────────────────────────────────────────┼──────────────────────╢
║ 1        │ 1        │ error    │ Please check validity of the block starting from       │ Fatal                ║
║          │          │          │ line #1                                                │                      ║

I think naming your variable this way is ugly and terrible, but I'm just trying to import in the variables file used by ElementUI and that's how they name it, and that causes the linter to crash.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions