All Projects → cascornelissen → stylelint-bare-webpack-plugin

cascornelissen / stylelint-bare-webpack-plugin

Licence: MIT license
Stylelint plugin for webpack

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to stylelint-bare-webpack-plugin

dva-typescript-antd-starter-kit
A admin dashboard application demo based on antd by typescript and dva
Stars: ✭ 61 (+306.67%)
Mutual labels:  stylelint, webpack-plugin
2018-package-three-webpack-plugin
[ARCHIVED] Webpack plugin to use Three.js "examples" classes
Stars: ✭ 45 (+200%)
Mutual labels:  webpack-plugin
stylelint-z-index-value-constraint
Stylelint rule for setting minimum and maximum constraint value for z-index.
Stars: ✭ 18 (+20%)
Mutual labels:  stylelint
stylelint-selector-tag-no-without-class
Stylelint plugin to disallow certain tags without a class qualifier in selectors
Stars: ✭ 19 (+26.67%)
Mutual labels:  stylelint
loading-screen
🚥Loading screen for webpack plugin inspired by Nuxt.js's loading screen
Stars: ✭ 56 (+273.33%)
Mutual labels:  webpack-plugin
size-plugin-bot
A Github bot for size-plugin
Stars: ✭ 76 (+406.67%)
Mutual labels:  webpack-plugin
sonar-css-plugin
SonarQube CSS / SCSS / Less Analyzer
Stars: ✭ 46 (+206.67%)
Mutual labels:  stylelint
webpack2-externals-plugin
Webpack 2+ fork of Webpack-Externals-Plugin
Stars: ✭ 14 (-6.67%)
Mutual labels:  webpack-plugin
image-sprite-webpack-plugin
A webpack plugin that generates spritesheets from your stylesheets.
Stars: ✭ 27 (+80%)
Mutual labels:  webpack-plugin
monaco-editor-esm-webpack-plugin
No description or website provided.
Stars: ✭ 25 (+66.67%)
Mutual labels:  webpack-plugin
webpack-stats-diff-plugin
Webpack plugin for reporting changes in bundle sizes across builds
Stars: ✭ 63 (+320%)
Mutual labels:  webpack-plugin
vue3-vite-ts
Vue 3 Scaffolding (Vite + TS + Linters + Jest + TailwindCSS)
Stars: ✭ 27 (+80%)
Mutual labels:  stylelint
css-chunks-html-webpack-plugin
Injecting css chunks extracted using extract-css-chunks-webpack-plugin to HTML for html-webpack-plugin
Stars: ✭ 22 (+46.67%)
Mutual labels:  webpack-plugin
fe-standard-config-seed
前端通用代码规范自动化接入
Stars: ✭ 18 (+20%)
Mutual labels:  stylelint
bb8
Starter kit for automating tasks in everyday front-end development. 👨🏻‍💻 ⚡️ 🛠 ✨ 🤖
Stars: ✭ 13 (-13.33%)
Mutual labels:  stylelint
webpack-alioss-upload-plugin
A flexible webpack plugin to upload files to aliyun oss, which supports multiple optional upload methods and parameters.
Stars: ✭ 14 (-6.67%)
Mutual labels:  webpack-plugin
linter-sniffer-pretty-printer
Collection of packages and configs to lint and format code in your WordPress project.
Stars: ✭ 35 (+133.33%)
Mutual labels:  stylelint
stylelint-no-indistinguishable-colors
Stylelint plugin to add rule no-indistinguishable-colors
Stars: ✭ 15 (+0%)
Mutual labels:  stylelint
react-typescript-boilerplate
A React + Redux + TypeScript + HOT + Webpack + Material-UI + Sass boilerplate
Stars: ✭ 18 (+20%)
Mutual labels:  stylelint
stylelint-config-xo
Stylelint shareable config for XO
Stars: ✭ 34 (+126.67%)
Mutual labels:  stylelint

Stylelint Bare Webpack Plugin

npm npm license

This webpack plugin allows you to lint your CSS/SASS/SCSS/LESS etc. files through any version of Stylelint. It is heavily inspired by stylelint-webpack-plugin with the key difference being that stylelint isn't included in this package, allowing you to use any version you want instead of waiting on the webpack plugin to be updated to the newest version.

Compatibility
Version ^1.0.0 of this plugin is compatible with webpack ^4.0.0. If you're using an older version of webpack, make sure to install the ^0.1.0 (npm install stylelint-bare-webpack-plugin@^0.1.0) release of this plugin.

Installation

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

Usage

// webpack.config.js
const StylelintBarePlugin = require('stylelint-bare-webpack-plugin');

module.exports = {
    // ...
    plugins: [
        new StylelintBarePlugin({
            // Optional options object
        })
    ]
}

Options

You can pass an object containing several options to StylelintBarePlugin(), this object can contain the following keys and any key that can be passed to stylelint as well.

Option Default Description
files '**/*.s?(c|a)ss' glob used for finding the files that will be linted
emitErrors true Whether to emit webpack errors or only warnings, note that all stylelint errors will still be shown when disabling this
failOnError false Whether to stop the entire Webpack process when a stylelint error is found
formatter stringFormatter from Stylelint Formatter used to display warnings/errors in console

License

This project is licensed under the MIT license.

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].