@intelrug/stylint-loader

1.0.2 • Public • Published

Install

Install @intelrug/stylint-loader package

yarn install @intelrug/stylint-loader

Usage

Documentation: Using loaders

module.exports = {
  // ...
  module: {
    rules: [
      {
        enforce: 'pre',
        test: /\.styl$/,
        loader: '@intelrug/stylint-loader'
      }
    ]
  }
  // ...
}

Options

You can pass stylint options directly by

  • Adding a query string to the loader for this loader usable only
module.exports = {
  // ...
  module: {
    rules: [
      {
        enforce: 'pre',
        test: /\.styl$/,
        loader: '@intelrug/stylint-loader?{brackets: "never"}'
      }
    ]
  }
  // ...
}
  • Adding an options entry:
module.exports = {
  // ...
  module: {
    rules: [
      {
        enforce: 'pre',
        test: /\.styl$/,
        loader: '@intelrug/stylint-loader',
        options: {
          config: 'path/.stylintrc'
        }
      }
    ]
  }
  // ...
}

License

Package Sidebar

Install

npm i @intelrug/stylint-loader

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

5.28 kB

Total Files

4

Last publish

Collaborators

  • intelrug