Skip to content

Ignore parts of code in a final CSS file #406

Open
@emagnier

Description

@emagnier

I'm using Sass to compile my CSS, and also use a CSS framework (like Bootstrap, Foundation or Inuit.css).

When I'm using CssLint with Grunt on my final CSS, it gives me some errors / recommandations on the CSS code from the Framework.

Because I don't want to modify these frameworks / libraries, it should be good to add special comments to define certain regions CssLint will ignore.

e.g.:

/*# cssLintIgnoreArea=begin */
@import "../bower_components/bourbon/_bourbon.scss";
@import "../bower_components/inuit.css/_inuit.scss";
/*# cssLintIgnoreArea=end */

@import "_my-custom-code.scss";

With this I will be able to use efficiently CssLint on all my Sass projects.

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