ESLintError.js 242 B

123456789101112131415
  1. "use strict";
  2. class ESLintError extends Error {
  3. /**
  4. * @param {string=} messages
  5. */
  6. constructor(messages) {
  7. super(`[eslint] ${messages}`);
  8. this.name = 'ESLintError';
  9. this.stack = '';
  10. }
  11. }
  12. module.exports = ESLintError;