1.0.2 • Published 4 years ago

@intelrug/stylint-loader v1.0.2

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

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