Skip to content

Commit 36e7a41

Browse files
committed
Use stylelint-config-suitcss as a dev dependency
It requires users to install it where they use the preprocessor so doesn't make sense to use it as a hard dependency.
1 parent b846131 commit 36e7a41

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
### HEAD
22

3+
* Use `stylelint-config-suitcss` as a dev dependency as it must be installed
4+
where the preprocessor is being used.
5+
36
### 0.8.0 (December 01, 2015)
47

58
* Add [stylelint](http://stylelint.io/) as an optional linting step

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,16 @@ Where to resolve imports from. Passed to [`postcss-import`](https://github.com/p
9999
* Type: `Boolean`
100100
* Default: `false`
101101

102-
Ensure code conforms to the [SUIT code style](https://github.com/suitcss/suit/blob/master/doc/STYLE.md). Stylelint [configuration options](http://stylelint.io/?/docs/user-guide/configuration.md) can also be overridden:
102+
Ensure code conforms to the [SUIT code style](https://github.com/suitcss/suit/blob/master/doc/STYLE.md)
103+
by using the [stylelint-config-suitcss](https://github.com/stylelint/stylelint-config-suitcss) package.
104+
105+
Stylelint [configuration options](http://stylelint.io/?/docs/user-guide/configuration.md) can also be overridden:
103106

104107
```js
105108
{
106109
lint: true,
107110
stylelint: {
111+
extends: 'stylelint-config-suitcss',
108112
rules: {
109113
indentation: [4, 'tab'],
110114
}
@@ -122,8 +126,6 @@ project root. For example:
122126
}
123127
```
124128

125-
This would also need the [stylelint-config-suitcss](https://github.com/stylelint/stylelint-config-suitcss) package to be installed.
126-
127129
**Note**: This works the same with the CLI `-l` flag.
128130

129131
##### `minify`

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@
2929
"postcss-import": "^7.1.3",
3030
"postcss-reporter": "^1.3.0",
3131
"read-file-stdin": "0.2.0",
32-
"stylelint": "^2.3.5",
33-
"stylelint-config-suitcss": "^1.0.0"
32+
"stylelint": "^2.3.5"
3433
},
3534
"devDependencies": {
3635
"chai": "^3.4.1",
@@ -39,7 +38,8 @@
3938
"mocha": "^2.3.4",
4039
"postcss-property-lookup": "^1.1.4",
4140
"rewire": "^2.5.1",
42-
"sinon": "^1.17.2"
41+
"sinon": "^1.17.2",
42+
"stylelint-config-suitcss": "^1.0.0"
4343
},
4444
"scripts": {
4545
"test": "npm run lint && mocha --reporter spec --slow 400",

0 commit comments

Comments
 (0)