Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

Latest commit

 

History

History

stylelint-config

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Netsells Logo

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/**/*',
        }),
    ],
},