Skip to content

[Feature Request] Build a Less linter that uses the Less parser (Rebuild the parser) #2099

Open
@avaly

Description

@avaly

I am looking for a tool for LESS that does what node-jscs does for JavaScript. It would be useful on project with large teams to enforce a code style throughout the LESS files. I could not find any such tool on npm.

I guess the only technical aspect blocking one from using the LESS Parser from this package to build such a tool is that the Parser discards all whitespace information when building the tree. Otherwise, if one were to build a code style tool one would have to write a new parser for LESS.

I propose an optional setting for the Parser that would make it save the whitespace information in the tree.

Hopefully others out there would use such a tool (LESS code style checker).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions