You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Each imported file is linted with [postcss-bem-linter](https://github.com/postcss/postcss-bem-linter) and minification is provided by [cssnano](http://cssnano.co/). Additional plugins can be added via the configuration options.
18
+
Each imported file is linted with [postcss-bem-linter](https://github.com/postcss/postcss-bem-linter) and minification is provided by [cssnano](http://cssnano.co/). Code style can also be checked with [stylelint](http://stylelint.io/)
19
+
20
+
Additional plugins can be added via the configuration options.
19
21
20
22
## Installation
21
23
@@ -41,6 +43,7 @@ Options:
41
43
-h, --help output usage information
42
44
-V, --version output the version number
43
45
-m, --minify minify output with cssnano
46
+
-l, --lint ensure code adheres to the SUIT code style
44
47
-i, --import-root [path] the root directory for imported css files
45
48
-c, --config [path] a custom PostCSS config file
46
49
-v, --verbose log verbose output for debugging
@@ -91,6 +94,24 @@ preprocessor(css, {
91
94
92
95
Where to resolve imports from. Passed to [`postcss-import`](https://github.com/postcss/postcss-import/blob/master/README.md#root).
93
96
97
+
##### `lint`
98
+
99
+
* Type: `Boolean`
100
+
* Default: `false`
101
+
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:
103
+
104
+
```js
105
+
{
106
+
lint:true,
107
+
stylelint: {
108
+
rules: {
109
+
indentation: [4, 'tab'],
110
+
}
111
+
}
112
+
}
113
+
```
114
+
94
115
##### `minify`
95
116
96
117
* Type: `Boolean`
@@ -125,7 +146,7 @@ A list of plugins that are passed to PostCSS. This can be used to add new plugin
0 commit comments