securityos/node_modules/eslint-plugin-react/lib/util/message.js

9 lines
266 B
JavaScript
Raw Permalink Normal View History

2024-09-06 15:32:35 +00:00
'use strict';
const semver = require('semver');
const eslintPkg = require('eslint/package.json');
module.exports = function getMessageData(messageId, message) {
return messageId && semver.satisfies(eslintPkg.version, '>= 4.15') ? { messageId } : { message };
};