source:
frontend/node_modules/eslint-plugin-react/lib/util/report.js
| Last change on this file was 9af201e, checked in by , 12 days ago | |
|---|---|
|
|
| File size: 235 bytes | |
| Line | |
|---|---|
| 1 | 'use strict'; |
| 2 | |
| 3 | const getMessageData = require('./message'); |
| 4 | |
| 5 | module.exports = function report(context, message, messageId, data) { |
| 6 | context.report( |
| 7 | Object.assign( |
| 8 | getMessageData(messageId, message), |
| 9 | data |
| 10 | ) |
| 11 | ); |
| 12 | }; |
Note:
See TracBrowser
for help on using the repository browser.
