Skip to content

Instantly share code, notes, and snippets.

@dotherightthing
Last active November 1, 2018 04:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dotherightthing/bba32aec1a2e840bb93088ea78f71c05 to your computer and use it in GitHub Desktop.
Save dotherightthing/bba32aec1a2e840bb93088ea78f71c05 to your computer and use it in GitHub Desktop.
[Disable Sass-lint] Disable Sass-lint rules using comments #linters #scss

Disable Sass-lint rules using comments

See https://github.com/sasstools/sass-lint/tree/master/docs/rules

Example 1: Inline

Disable rule "No Vendor Prefixes"

backface-visibility: visible; // sass-lint:disable-line no-vendor-prefixes

Example 2: Block

Disable rule "No Vendor Prefixes"

// sass-lint:disable no-vendor-prefixes
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
 // sass-lint:enable no-vendor-prefixes

Example 3: All

Disable all rule checking from this point onwards.

// sass-lint:disable-all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment