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
Copy file name to clipboardExpand all lines: README.md
+42-5Lines changed: 42 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -61,12 +61,26 @@ Specify the config file location to be used by `stylelint`.
61
61
62
62
A string indicating the root of your files.
63
63
64
+
### `exclude`
65
+
66
+
- Type: `String|Array[String]`
67
+
- Default: `'node_modules'`
68
+
69
+
Specify the files and/or directories to exclude. Must be relative to `options.context`.
70
+
71
+
### `extensions`
72
+
73
+
- Type: `String|Array[String]`
74
+
- Default: `['css', 'scss', 'sass']`
75
+
76
+
Specify extensions that should be checked.
77
+
64
78
### `files`
65
79
66
80
- Type: `String|Array[String]`
67
-
- Default: `'**/*.(s(c|a)ss|css)'`
81
+
- Default: `null`
68
82
69
-
Specify the glob pattern for finding files. Must be relative to `options.context`.
83
+
Specify directories, files, or globs. Must be relative to `options.context`. Directories are traveresed recursively looking for files matching `options.extensions`. File and glob patterns ignore `options.extensions`.
70
84
71
85
### `fix`
72
86
@@ -96,6 +110,13 @@ Lint only changed files, skip lint on start.
96
110
97
111
Path to `stylelint` instance that will be used for linting.
98
112
113
+
### `threads`
114
+
115
+
- Type: `Boolean | Number`
116
+
- Default: `false`
117
+
118
+
Set to true for an auto-selected pool size based on number of cpus. Set to a number greater than 1 to set an explicit pool size. Set to false, 1, or less to disable and only run in main process.
119
+
99
120
### Errors and Warning
100
121
101
122
**By default the plugin will auto adjust error reporting depending on stylelint errors/warnings counts.**
@@ -106,21 +127,21 @@ You can still force this behavior by using `emitError` **or** `emitWarning` opti
106
127
- Type: `Boolean`
107
128
- Default: `false`
108
129
109
-
Will always return errors, if set to `true`.
130
+
The errors found will always be emitted, to disable set to `false`.
110
131
111
132
#### `emitWarning`
112
133
113
134
- Type: `Boolean`
114
135
- Default: `false`
115
136
116
-
Will always return warnings, if set to `true`.
137
+
The warnings found will always be emitted, to disable set to `false`.
117
138
118
139
#### `failOnError`
119
140
120
141
- Type: `Boolean`
121
142
- Default: `false`
122
143
123
-
Will cause the module build to fail if there are any errors, if set to `true`.
144
+
Will cause the module build to fail if there are any errors, to disable set to `false`.
124
145
125
146
#### `failOnWarning`
126
147
@@ -136,6 +157,22 @@ Will cause the module build to fail if there are any warnings, if set to `true`.
136
157
137
158
Will process and report errors only and ignore warnings, if set to `true`.
138
159
160
+
#### `outputReport`
161
+
162
+
- Type: `Boolean|Object`
163
+
- Default: `false`
164
+
165
+
Write the output of the errors to a file, for example a `json` file for use for reporting.
166
+
The `filePath` is relative to the webpack config: `output.path`.
167
+
You can pass in a different formatter for the output file, if none is passed in the default/configured formatter will be used.
0 commit comments