0.4.0 • Published 1 year ago

@schuijers/stylelint-config v0.4.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@schuijers/stylelint-config GitHub Build Status npm MIT License

My shareable Stylelint configs.

Installation

# npm
npm install --save-dev @schuijers/stylelint-config

# yarn
yarn add --dev @schuijers/stylelint-config

# pnpm
pnpm add --save-dev @schuijers/stylelint-config

This library has required peerDependencies listings for stylelint and postcss.

Usage

Reference @schuijers/stylelint-config in your .stylelintrc.js.

module.exports = {
  extends: '@schuijers/stylelint-config',
  rules: {
    // your overrides
  },
}

Other configs

Besides the base config (for CSS and SCSS) this package also exposes some additional configs:

Config NameDescription
vueAdditional rules for projects that use Vue (with SCSS)

You can use them standalone:

module.exports = {
  extends: '@schuijers/stylelint-config/<config-name>',
}

Or in combination with the base config (recommended):

module.exports = {
  extends: [
    '@schuijers/stylelint-config',
    '@schuijers/stylelint-config/<config-name>',
  ],
}

License

MIT © Martijn Schuijers