3.1.0 • Published 3 years ago

stylelint-config-good-scss v3.1.0

Weekly downloads
992
License
MIT
Repository
github
Last release
3 years ago

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']
          })
        )
      }
    }
  }
}
3.1.0

3 years ago

3.0.1

4 years ago

2.0.0

4 years ago

1.2.0

5 years ago

1.1.7

5 years ago

1.1.6

5 years ago

1.1.5

5 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago