@namics/stylelint-config

Shared stylelint config

Stats

StarsIssuesVersionUpdatedCreatedSize
@namics/stylelint-config
1901.1.25 months ago3 years agoMinified + gzip package size for @namics/stylelint-config in KB

Readme

Shared stylelint config npm

reusable stylelint config

Usage

npm i -D stylelint @namics/stylelint-config

stylelint.config.js

module.exports = require('@namics/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 i -D 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

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.