Skip to content

Commit

Permalink
fix: return snippet to add plugin into stylelint settings
Browse files Browse the repository at this point in the history
  • Loading branch information
yuschick committed Mar 16, 2024
1 parent 37b4ae6 commit 51dc3f1
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,17 @@ npm i stylelint-plugin-defensive-css --save-dev
yarn add stylelint-plugin-defensive-css --dev
```

With the plugin installed, the individual rule(s) can be added to the project's
Stylelint configuration.
With the plugin installed, the rule(s) can be added to the project's Stylelint
configuration.

```json
{
"plugins": ["stylelint-plugin-defensive-css"],
"rules": {
"plugin/use-defensive-css": [true, { "severity": "warning" }]
}
}
```

## Rules / Options

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "stylelint-plugin-defensive-css",
"version": "1.0.2",
"version": "1.0.3",
"description": "A Stylelint plugin to enforce defensive CSS best practices.",
"main": "src/index.js",
"type": "module",
Expand Down

0 comments on commit 51dc3f1

Please sign in to comment.