Skip to content

wearereasonablepeople/scss-lint-config-warp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

WARP SCSS lint Configuration

WeAreReasonablePeople SCSS linting rules

npm install --save-dev [email protected]:wearereasonablepeople/scss-lint-config-warp.git

This automatically copies the .scss-lint.yml to the project root after installation.

Usage

Disabling linter

Disable for the entire file

// scss-lint:disable BorderZero
p {
border: none; // No lint reported
}

Disable a few linters

Disable for the entire file

// scss-lint:disable BorderZero
p {
  border: none; // No lint reported
}

Disable a few linters

// scss-lint:disable BorderZero, StringQuotes
p {
  border: none; // No lint reported
  content: "hello"; // No lint reported
}

Disable all lints within a block (and all contained blocks)

p {
  // scss-lint:disable BorderZero
  border: none; // No lint reported
}

a {
  border: none; // Lint reported
}

Disable and enable again

// scss-lint:disable BorderZero
p {
  border: none; // No lint reported
}
// scss-lint:enable BorderZero

a {
  border: none; // Lint reported
}

Disable/enable all linters

// scss-lint:disable all
p {
  border: none; // No lint reported
}
// scss-lint:enable all

a {
  border: none; // Lint reported
}

More info

RTFM

About

WeAreReasonablePeople SCSS linting rules

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published