@newsteam/stylelint-config

Shared config for stylelint

Usage no npm install needed!

<script type="module">
  import newsteamStylelintConfig from 'https://cdn.skypack.dev/@newsteam/stylelint-config';
</script>

README

@newsteam/stylelint-config

License npm package npm downloads Dependencies DevDependencies

This package provides a shared config for stylelint and several of its plugins.

Usage

A single stylelint configuration is exported.

Our default export contains all of our stylelint rules. It requires the following peer dependencies:

    stylelint
    stylelint-order
    stylelint-scss

Installation

  1. Install the shared configuration:
npm install --save-dev @newsteam/stylelint-config
  1. Install the shared configuration peer dependencies (npm 5+):
npx install-peerdeps --dev @newsteam/stylelint-config
  1. Add "extends": "@newsteam/stylelint-config" to your .stylelintrc.

Maintenance

You can run tests with npm test.