@telenorfrontend/stylelint-config-telenor

0.1.3 • Public • Published

SCSS

Linting

We mainly use stylelint to lint our scss-files. We lint for typical mistakes found when using scss such as exaggerated nesting and wrong usage of mixins. We also lint style so that all styles share a common property order.

Tooling

To use style-lint we need to install it along with some dependencies.

Install dependencies

Install all at once

npm i --save-dev stylelint stylelint-config-standard stylelint-order stylelint-scss @telenorfrontend/stylelint-config-telenor

Install separately

Install stylelint:

npm install --save-dev stylelint

Install config standard:

npm install --save-dev stylelint-config-standard

Install stylelint order:

npm install --save-dev stylelint-order

Install stylelint scss:

npm install --save-dev stylelint-scss

Add the stylelint config repo to your dependencies:

npm install --save-dev @telenorfrontend/stylelint-config-telenor

Add lint script to package.json

scripts: [
  ...
  "test:stylelint": "stylelint list of your sources",
  ...
]

Extend your local .stylelintrc.yml

Create your local .stylelintrc.yml and add the following

extends: @telenorfrontend/stylelint-config-telenor

Readme

Keywords

Package Sidebar

Install

npm i @telenorfrontend/stylelint-config-telenor

Weekly Downloads

2

Version

0.1.3

License

Apache-2.0

Unpacked Size

17.1 kB

Total Files

4

Last publish

Collaborators

  • td-travis-ci
  • pkkummermo