stylelint-config-good-scss

Stylelint config to write nice CSS.
646
Install
npm install stylelint-config-good-scss
Latest Version:3.1.0
License:MIT
Last Updated:Feb 19, 2021
Links: GitHub  ·  npm
Maintainer: uto-usui

stylelint-config-good-scss

NPM

features

installation

npm install stylelint stylelint-config-good-scss --save-dev
yarn add --dev stylelint stylelint-config-good-scss 

Usage

You create stylelint.config.js in the project root. And a nice idea to write the task in package.json.

basic

stylelint.config.js
module.exports = {
  extends: ['stylelint-config-good-scss'],
  rules: {
    // your rule
  }
}
package.json
{
  "scripts": {
    "lintcss": "stylelint --fix ./**/*.vue ./**/*.scss"
  }
}

with nuxt and prettier

yarn add --dev stylelint stylelint-config-good-scss prettier-stylelint stylelint-webpack-plugin 
stylelint.config.js
module.exports = {
  extends: [
    'stylelint-config-good-scss',
    './node_modules/prettier-stylelint/config.js'
  ]
}
nuxt.config.js
module.exports = {
  build: {
    extend(config, ctx) {
      if (ctx.isDev && ctx.isClient) {
        config.plugins.push(
          new StylelintPlugin({
            files: ['**/*.vue']
          })
        )
      }
    }
  }
}

Related Packages

@taknepoidet-config/stylelint

Конфигурация Stylelint

894 0
stylelint-config-standard-vue

The standard shareable Vue config for Stylelint.

5,099,255 27
@tresinternet/stylelint-config-vue3

Default settings for Stylelint for a Vue3 project

2,158
@maz-ui/stylelint-config

Stylelint configuration for CSS, SCSS, Vue and Tailwind CSS projects

3,064 564
stylelint-config-recommended-vue

The recommended shareable Vue config for Stylelint.

21,627,957 108

Version History

Version Released License
3.1.0 MIT
3.0.1 MIT
2.0.0 MIT
1.2.0 MIT
1.1.7 MIT