4.0.0 • Published 4 months ago

@merkle-open/stylelint-config v4.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

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

4.0.0

4 months ago

3.2.0

9 months ago

3.1.0

10 months ago

3.0.0

11 months ago

2.1.0

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago

1.0.0

1 year ago