Skip to content

Commit

Permalink
no-useless-promise-resolve-reject: Fix typo in lint message (#1736)
Browse files Browse the repository at this point in the history
  • Loading branch information
dasa committed Feb 19, 2022
1 parent 5ffdf5d commit 9bfde90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rules/no-useless-promise-resolve-reject.js
Expand Up @@ -5,7 +5,7 @@ const {getParenthesizedRange} = require('./utils/parentheses.js');
const MESSAGE_ID_RESOLVE = 'resolve';
const MESSAGE_ID_REJECT = 'reject';
const messages = {
[MESSAGE_ID_RESOLVE]: 'Prefer `{{type}} value` over `{{type}} Promise.resolve(error)`.',
[MESSAGE_ID_RESOLVE]: 'Prefer `{{type}} value` over `{{type}} Promise.resolve(value)`.',
[MESSAGE_ID_REJECT]: 'Prefer `throw error` over `{{type}} Promise.reject(error)`.',
};

Expand Down

0 comments on commit 9bfde90

Please sign in to comment.