Skip to content

Commit ca5b3b2

Browse files
authored
Merge pull request #13 from primer/utils_4
Update primer utilities dependency
2 parents aa5a278 + 9796fc2 commit ca5b3b2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
[![NPM version](http://img.shields.io/npm/v/stylelint-selector-no-utility.svg)](https://www.npmjs.org/package/stylelint-selector-no-utility)
44
[![Build Status](https://travis-ci.org/primer/stylelint-selector-no-utility.svg?branch=master)](https://travis-ci.org/primer/stylelint-selector-no-utility)
55

6-
**This plugin is extra specific to [primer-utilities](https://github.com/primer/utilities)** I will accept PRs to make it more generic, or feel free to fork and use it for your own classes.
6+
**This plugin is specific to [primer-utilities](https://github.com/primer/primer-css/tree/master/modules/primer-utilities)**. We'll accept pull requests to make it more generic, or feel free to fork and use it for your own classes.
77

8-
You should not be able to style a utility classes. Utility classes are single purpose, reusing them to add extra style violates their single purpose.
8+
Utilities are single purpose styles that should be treated as immutable CSS. They should not be altered by custom CSS as this can cause unwanted side effects.
99

1010
```css
1111
.m-0, #bar .float-left, #hoo { border: 1px solid pink; }

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "stylelint-selector-no-utility",
3-
"version": "1.5.0",
3+
"version": "1.6.0",
44
"description": "Stylelint rule that doesn't allow the styling of utility classes in CSS",
55
"main": "index.js",
66
"scripts": {
@@ -27,7 +27,7 @@
2727
},
2828
"homepage": "https://github.com/primer/stylelint-selector-no-utility#readme",
2929
"dependencies": {
30-
"primer-utilities": "^3.0.0",
30+
"primer-utilities": "^4.3.5",
3131
"stylelint": "^7.0.0"
3232
},
3333
"devDependencies": {

0 commit comments

Comments
 (0)