How to use the formatters function from stylelint

Find comprehensive JavaScript stylelint.formatters code examples handpicked from public code repositorys.

141
142
143
144
145
146
147
148
149
150
	configFile: '.stylelintrc.json',
	files: 'src/scss/**/*.scss',
	fix: true
})
	.then((data) => {
		const output = stylelint.formatters.string(data.results);

		if (output) console.log(output);
		finishLog('css-l');
		res(!!output);
fork icon0
star icon0
watch icon3

176
177
178
179
180
181
182
183
184
185
  results.push(...fileResults.results);
}

// Output results.
if (results.length) {
  const output = stylelint.formatters.string(results);
  if (output) {
    logLine(output);
  }
}
fork icon0
star icon0
watch icon0