Skip to content

ofk/stylelint-config-recommend

Repository files navigation

@ofk/stylelint-config-recommend

This is an my stylelint config.

It uses Standard's as a base, has Prettier and SCSS baked in, and overrides some rules I've seen ourselves having to change often.

Quick start

  1. Install the following dev-dependencies:

    npm install --save-dev @ofk/stylelint-config-recommend stylelint prettier
    
  2. Extend the @ofk/stylelint-config-recommend config in your .stylelintrc (or stylelint key in your package.json):

    "stylelint": {
      "extends": "@ofk/stylelint-config-recommend"
    }
  3. Run eslint on your project as part of your lint and format scripts:

    "scripts": {
      "lint": "stylelint \"**/*.{css,scss}\"",
      "format": "npm run lint -- --fix",
      "pretest": "npm run lint",
      "test": "test command"
    }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published