mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-04 19:11:16 +08:00
R=jacktfranklin@chromium.org Bug: none Change-Id: I961be18530d3ccbc4efed0c2cda9bd603b14e27b Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3372931 Reviewed-by: Jack Franklin <jacktfranklin@chromium.org> Commit-Queue: Tim Van der Lippe <tvanderlippe@chromium.org>
17 lines
353 B
JavaScript
17 lines
353 B
JavaScript
'use strict';
|
|
|
|
/** @typedef {import('stylelint').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;
|
|
};
|