How to use the stylelint.linter function in stylelint

To help you get started, we’ve selected a few stylelint examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github liferay / liferay-frontend-source-formatter / lib / lint_css.js View on Github external
globOptions
	).forEach(
		(item, index) => {
			var id = ruleUtils.getRuleId(item);

			customRules[id] = require(item);

			plugins.push(path.resolve(rootDir, './lib', item));
		}
	);

	return runLinter(contents, file, context);
};

module.exports.stylelint = stylelint;
module.exports.linter = stylelint.linter;
module.exports.runLinter = runLinter;