@merkle-open/stylelint-config

4.0.2 • Public • Published

Shared stylelint config npm

reusable stylelint config for stylelint 15

Usage

npm install --save-dev stylelint@15 @merkle-open/stylelint-config

stylelint.config.js

module.exports = require('@merkle-open/stylelint-config');

.stylelintignore

node_modules/
src/shared/base/reset/css/yui/reset.css

package.json

{
  "scripts": {
    "lint:css": "stylelint src/**/*.*ss"
  }
}

We recommend to use stylelint together with lint-staged and husky

npm install --save-dev husky lint-staged

package.json

{
  "scripts": {
    "lint:css": "stylelint src/**/*.*ss"
  },
  "husky": {
    "hooks": {
      "pre-commit": "lint-staged"
    }
  },
  "lint-staged": {
    "src/**/*.*ss": ["stylelint"]
  }
}

License

MIT License

Readme

Keywords

none

Package Sidebar

Install

npm i @merkle-open/stylelint-config

Weekly Downloads

203

Version

4.0.2

License

MIT

Unpacked Size

6.81 kB

Total Files

4

Last publish

Collaborators

  • ernscht
  • merkleorg