thingsboard/ui/node_modules/stylelint/lib/utils/configurationError.js

16 lines
280 B
JavaScript
Raw Normal View History

2020-05-19 11:43:42 +03:00
'use strict';
/**
* Create configurationError from text and set CLI exit code
* @param {string} text
* @returns {Object}
*/
module.exports = function(text) /* Object */ {
/** @type {Error & {code?: number}} */
const err = new Error(text);
err.code = 78;
return err;
};