Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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;