This repository contains the defacto-standard stylelint configuration used on all Netsells projects, both internally and client.
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"
}
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/**/*',
}),
],
},