@netsells/stylelint-config
v6.0.2
Published
Stylelint config for the Netsells organisation
Downloads
766
Keywords
Readme
Netsells Stylelint Config
This repository contains the defacto-standard stylelint configuration used on all Netsells projects, both internally and client.
Usage
Add the config to your project dependencies:
yarn add @netsells/stylelint-config
Now extend the config in your project. For example, a .stylelintrc
file in your project root:
{
"extends": "@netsells/stylelint-config"
}
With webpack
Add the stylelint-webpack-plugin
to your project:
yarn add stylelint-webpack-plugin
Add the plugin to your webpack config:
const StyleLintPlugin = require('stylelint-webpack-plugin');
...
{
plugins: [
new StyleLintPlugin({
configFile: './.stylelintrc',
files: './resources/assets/**/*',
}),
],
},