Toggling rules in ESLint and Sass Lint

Disable rule-name in file

/* eslint-disable rule-name */
// sass-lint: disable rule-name

Disable rule-name on current line

/* eslint-disable-line rule-name */
// sass-lint: disable-line rule-name

Disable rule-name on next line

/* eslint-disable-next-line rule-name */

Disable rule-name in current block

// sass-lint: disable-block rule-name

Disable all rules

/* eslint-disable */
// sass-lint: disable-all

Enable all rules

/* eslint-enable*/
// sass-lint: enable-all
Back to top Back to Home