fly-sass-lint

1.0.0 • Public • Published

fly-sass-lint

fly badge npm badge download badge travisbadge license badge

Sass-lint plugin for Fly .

Install

This plugin requires Fly .

npm i -D fly-sass-lint

Usage

By default, fly-sass-lint will use .sass-lint.yml file in your project directory as sass-lint config.

Async/Await flavored:

export async function lintSass () {
  await this
    .source('src/**/*.{scss,sass}')
    .sasslint()
    /* or pass your options to sass-lint
     * .sasslint({
     *   options: {},
     *   configPath: 'PATH/TO/MY/AWESOME/RULE'
     * })
     */
}

Generator function flavored:

exports.lintSass = function* () {
  yield this
    .source('src/**/*.{scss,sass}')
    .sasslint()
    /* or pass your options to sass-lint
     * .sasslint({
     *   options: {},
     *   configPath: 'PATH/TO/MY/AWESOME/RULE'
     * })
     */
}

Check out Sass-lint documentation for available options.

License

Do What The F*ck You Want To Public License

Dependencies (1)

Dev Dependencies (5)

Package Sidebar

Install

npm i fly-sass-lint

Weekly Downloads

0

Version

1.0.0

License

WTFPL

Last publish

Collaborators

  • frantic1048