@dlwlrma/stylelint-config

1.2.0 • Public • Published

Stylelint Config Preset

HanJeaHwan NPM version NPM Downloads

Installation

yarn add @dlwlrma/stylelint-config --D

After installation create a file stylelint.config.js at project root and extend the config:

{
  "extends": ["@dlwlrma/stylelint-config"],
  "rules": {}
}

Usage

Simply read the stylelint documentation and follow those instructions.

Git Hook

Setup pre-commit hook for styles linting.

yarn add husky --D
npm install husky --save-dev

Update package.json

 "scripts": {
    "lint:style": "stylelint \"**/*.less\" --syntax less --fix --allow-empty-input",
  },
  "husky": {
    "hooks": {
      "pre-commit": "npm run lint:style"
    }
  },

Readme

Keywords

none

Package Sidebar

Install

npm i @dlwlrma/stylelint-config

Weekly Downloads

2

Version

1.2.0

License

MIT

Unpacked Size

3.85 kB

Total Files

4

Last publish

Collaborators

  • hanjeahwan