Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit cc819b4

Browse filesBrowse files
aduh95richardlau
authored andcommitted
tools: fix typo in avoid-prototype-pollution lint rule
PR-URL: #44446 Backport-PR-URL: #44926 Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
1 parent 254358c commit cc819b4
Copy full SHA for cc819b4

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Collapse file

‎tools/eslint-rules/avoid-prototype-pollution.js‎

Copy file name to clipboardExpand all lines: tools/eslint-rules/avoid-prototype-pollution.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,15 +168,15 @@ module.exports = {
168168
[CallExpression('PromisePrototypeCatch')](node) {
169169
context.report({
170170
node,
171-
message: '%Promise.prototype.catch% look up the `then` property of ' +
171+
message: '%Promise.prototype.catch% looks up the `then` property of ' +
172172
'the `this` argument, use PromisePrototypeThen instead',
173173
});
174174
},
175175

176176
[CallExpression('PromisePrototypeFinally')](node) {
177177
context.report({
178178
node,
179-
message: '%Promise.prototype.finally% look up the `then` property of ' +
179+
message: '%Promise.prototype.finally% looks up the `then` property of ' +
180180
'the `this` argument, use SafePromisePrototypeFinally or ' +
181181
'try/finally instead',
182182
});

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.