3.0.25 • Published 4 years ago

@dnb-hugo/stylelint-config v3.0.25

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

lernaCodacy Badge

DNB-Hugo / stylelint-config

Stylelint configuration used in dnb-hugo projects.

Installation

npm install @dnb-hugo/stylelint-config --save-dev

Configuration

Add the configuration to your repository (for instance in .stylelintrc or .stylelintrc.json or the stylelint parameter in package.json):

{
  "extends": "@dnb-hugo/stylelint-config"
}

To change parts of the configuration use the rules parameter.

{
  "extends": "@dnb-hugo/stylelint-config",
  "rules": {
    "max-nesting-depth": null
  }
}

Add scripts to your package.json:

{
  "scripts": {
    "stylelint": "stylelint assets/scss/",
    "stylelint:fix": "stylelint assets/scss/ --fix",
    "stylelint:config": "stylelint --print-config index.js"
  }
}

Exchange the assets/scss/ with your own styles folder.

Usage

Run stylelint and show errors and warnings:

npm run stylelint

Run stylelint and fix automatically fixable issues:

npm run stylelint:fix

Print the current stylelint configuration:

npm run stylelint:config

All configuration packages

PackageNotes
browserslist-configBrowserslist configuration used in dnb-hugo projects.
commitlint-configCommitlint configuration used in dnb-hugo projects.
eslint-configESLint configuration used in dnb-hugo projects.
remark-configRemark configuration used in dnb-hugo projects.
standard-version-configStandard Version configuration used in dnb-hugo projects.
stylelint-configStylelint configuration used in dnb-hugo projects.
textlint-configTextlint configuration used in dnb-hugo projects.
3.0.25

4 years ago

3.0.24

4 years ago

3.0.16

4 years ago

3.0.17

4 years ago

3.0.13

4 years ago

3.0.1

4 years ago

3.0.0

4 years ago

2.0.29

4 years ago

2.0.15

4 years ago

2.0.16

4 years ago

2.0.30

4 years ago

2.0.19

4 years ago

2.0.17

4 years ago

2.0.18

4 years ago

2.0.26

4 years ago

2.0.24

4 years ago

2.0.23

4 years ago

2.0.20

4 years ago

2.0.14

4 years ago

2.0.13

4 years ago

2.0.12

4 years ago

2.0.11

4 years ago

2.0.10

4 years ago

2.0.7

4 years ago

2.0.9

4 years ago

2.0.8

4 years ago

2.0.3

4 years ago

2.0.5

4 years ago

2.0.4

4 years ago

2.0.6

4 years ago

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.2.6

4 years ago