This repository has been archived on 2020-11-02. You can view files and clone it, but cannot push or open issues or pull requests.
TripSit_Suite/node_modules/stylelint/lib/utils/configurationError.js
2020-11-01 22:46:04 +00:00

16 lines
281 B
JavaScript

'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;
};