2.0.9 • Published 11 days ago

@jict/stylelint-plugin v2.0.9

Weekly downloads
-
License
-
Repository
github
Last release
11 days ago

@jict/stylelint-plugin

npm version

justInCaseTechnologies's stylelint rules and config.

Installation

Install stylelint and @jict/stylelint-plugin:

With Yarn

yarn add --dev stylelint @jict/stylelint-plugin

With npm

npm install stylelint @jict/stylelint-plugin --save-dev

Usage

justInCaseTechnologies's stylelint rules come bundled in @jict/stylelint-plugin. To enable these rules, add a stylelint property in your package.json. See the stylelint configuration docs for more details.

"stylelint": {
  "extends": ["@jict/stylelint-plugin"]
}

Now you can run stylelint by adding the following linting script to your package.json. See the stylelint CLI docs for more details.

"scripts": {
  "stylelint": "stylelint 'src/**/*.scss'"
}

Run it:

With Yarn

yarn run stylelint

With npm

npm run stylelint

Prettier

This config also includes a prettier config which can be extended to format .scss. Using the stylelint-prettier plugin, prettier changes are exposed as stylelint rule violations.

Install prettier:

$ yarn add --dev prettier

Extend the config in your package.json:

"stylelint": {
  "extends": [
    "@jict/stylelint-plugin/prettier"
  ]
}

Add a prettier config in package.json:

"prettier": {
  "singleQuote": true,
  "trailingComma": "es5",
  "bracketSpacing": false
}

Prettier fixes shall be reported when you run stylelint **/*.css and shall be autofixed when you run stylelint --fix **/*.scss.

2.0.9

11 days ago

2.0.8

2 months ago

2.0.7

3 months ago

2.0.6

4 months ago

2.0.3

7 months ago

2.0.2

8 months ago

2.0.5

5 months ago

2.0.4

5 months ago

2.0.1

9 months ago

2.0.0

9 months ago

1.0.4

10 months ago

1.0.3

12 months ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

0.0.14

1 year ago

0.0.15

1 year ago

0.0.10

1 year ago

0.0.11

1 year ago

0.0.12

1 year ago

0.0.13

1 year ago

0.0.9

1 year ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.5

2 years ago

0.0.6

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago