message.js 266 B

12345678
  1. 'use strict';
  2. const semver = require('semver');
  3. const eslintPkg = require('eslint/package.json');
  4. module.exports = function getMessageData(messageId, message) {
  5. return messageId && semver.satisfies(eslintPkg.version, '>= 4.15') ? { messageId } : { message };
  6. };