All Projects → webpack-contrib → Stylelint Webpack Plugin

webpack-contrib / Stylelint Webpack Plugin

Licence: mit
A Stylelint plugin for webpack

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Stylelint Webpack Plugin

Bathe
The simplest WordPress starter theme including full setup for Sass, PostCSS, Autoprefixer, stylelint, Webpack, Eslint, imagemin, Browsersync, etc.
Stars: ✭ 65 (-84.18%)
Mutual labels:  webpack, stylelint
Webpack Es6 Sass Setup
A basic setup for Webpack with ES6, Babel, Sass and stylelint
Stars: ✭ 63 (-84.67%)
Mutual labels:  webpack, stylelint
Stylefmt Loader
Webpack-loader. Fixes stylelint issues automatically while bundling with Webpack.
Stars: ✭ 24 (-94.16%)
Mutual labels:  webpack, stylelint
Styled React Boilerplate
Minimal & Modern boilerplate for building apps with React & styled-components
Stars: ✭ 198 (-51.82%)
Mutual labels:  webpack, stylelint
Workflow
一个工作流平台
Stars: ✭ 1,888 (+359.37%)
Mutual labels:  webpack, stylelint
Static Site Boilerplate
A better workflow for building modern static websites.
Stars: ✭ 1,633 (+297.32%)
Mutual labels:  webpack, stylelint
React Ssr Starter
All have been introduced React environment
Stars: ✭ 20 (-95.13%)
Mutual labels:  webpack, stylelint
Frasco
Quick starter for Jekyll including full setup for Sass, PostCSS, Autoprefixer, stylelint, Webpack, ESLint, imagemin, Browsersync, etc.
Stars: ✭ 123 (-70.07%)
Mutual labels:  webpack, stylelint
Express Webpack React Redux Typescript Boilerplate
🎉 A full-stack boilerplate that using express with webpack, react and typescirpt!
Stars: ✭ 156 (-62.04%)
Mutual labels:  webpack, stylelint
Front End Guide
📚 Study guide and introduction to the modern front end stack.
Stars: ✭ 14,073 (+3324.09%)
Mutual labels:  webpack, stylelint
Neutrino
Create and build modern JavaScript projects with zero initial configuration.
Stars: ✭ 3,844 (+835.28%)
Mutual labels:  webpack
Burnside
Fast and Reliable E2E Web Testing with only Javascript
Stars: ✭ 389 (-5.35%)
Mutual labels:  webpack
Framework7 Template Vue Webpack
Deprecated! Framework7 Vue Webpack starter app template with hot-reload & css extraction
Stars: ✭ 399 (-2.92%)
Mutual labels:  webpack
Sku
Front-end development toolkit
Stars: ✭ 403 (-1.95%)
Mutual labels:  webpack
Preact Starter
Webpack3 boilerplate for building SPA / PWA / offline front-end apps with Preact
Stars: ✭ 384 (-6.57%)
Mutual labels:  webpack
Vuenode
VueNode 是一套基于 TypeScript + Vue.js + Node.js + MySQL 的前后端分离项目。
Stars: ✭ 396 (-3.65%)
Mutual labels:  webpack
Stylelint A11y
Plugin for stylelint with a11y rules
Stars: ✭ 384 (-6.57%)
Mutual labels:  stylelint
React Shopping Cart
Easily integrate React Shopping Cart into your existing website without using Redux.
Stars: ✭ 380 (-7.54%)
Mutual labels:  webpack
Js Stack From Scratch
🛠️⚡ Step-by-step tutorial to build a modern JavaScript stack.
Stars: ✭ 18,814 (+4477.62%)
Mutual labels:  webpack
Webpack Boilerplate
A minimal webpack 5 boilerplate with only Babel, SASS and lodash (optional) on board
Stars: ✭ 404 (-1.7%)
Mutual labels:  webpack

npm node deps tests coverage chat size

stylelint-webpack-plugin

A Stylelint plugin for webpack

Install

npm install stylelint-webpack-plugin --save-dev

Note: You also need to install stylelint from npm, if you haven't already:

npm install stylelint --save-dev

Usage

In your webpack configuration:

const StylelintPlugin = require('stylelint-webpack-plugin');

module.exports = {
  // ...
  plugins: [new StylelintPlugin(options)],
  // ...
};

Options

See stylelint's options for the complete list of options available. These options are passed through to the stylelint directly.

configFile

  • Type: String
  • Default: undefined

Specify the config file location to be used by stylelint.

Note: By default this is handled by stylelint.

context

  • Type: String
  • Default: compiler.context

A string indicating the root of your files.

files

  • Type: String|Array[String]
  • Default: '**/*.(s(c|a)ss|css)'

Specify the glob pattern for finding files. Must be relative to options.context.

fix

  • Type: Boolean
  • Default: false

If true, stylelint will fix as many errors as possible. The fixes are made to the actual source files. All unfixed errors will be reported. See Autofixing errors docs.

formatter

  • Type: String|Function
  • Default: 'string'

Specify the formatter that you would like to use to format your results. See formatter option.

lintDirtyModulesOnly

  • Type: Boolean
  • Default: false

Lint only changed files, skip lint on start.

stylelintPath

  • Type: String
  • Default: stylelint

Path to stylelint instance that will be used for linting.

Errors and Warning

By default the plugin will auto adjust error reporting depending on stylelint errors/warnings counts. You can still force this behavior by using emitError or emitWarning options:

emitError

  • Type: Boolean
  • Default: false

Will always return errors, if set to true.

emitWarning

  • Type: Boolean
  • Default: false

Will always return warnings, if set to true.

failOnError

  • Type: Boolean
  • Default: false

Will cause the module build to fail if there are any errors, if set to true.

failOnWarning

  • Type: Boolean
  • Default: false

Will cause the module build to fail if there are any warnings, if set to true.

quiet

  • Type: Boolean
  • Default: false

Will process and report errors only and ignore warnings, if set to true.

Changelog

Changelog

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].