ec0lint-style
Version:
CSS linter for reducing digital footprint with ec0lint.
17 lines (12 loc) • 357 B
JavaScript
;
/** @typedef {import('ec0lint-style').ConfigurationError} ConfigurationError */
/**
* Create configurationError from text and set CLI exit code
* @param {string} text
* @returns {ConfigurationError}
*/
module.exports = function (text) {
const err = /** @type {ConfigurationError} */ (new Error(text));
err.code = 78;
return err;
};