Skip to content

Commit f113cdd

Browse files
authored
Chore: upgrade eslint-plugin-eslint-plugin (#14738)
1 parent 1b8997a commit f113cdd

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

lib/rules/dot-notation.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ module.exports = {
9494

9595
// Don't perform any fixes if there are comments inside the brackets.
9696
if (sourceCode.commentsExistBetween(leftBracket, rightBracket)) {
97-
return; // eslint-disable-line eslint-plugin/fixer-return -- false positive
97+
return;
9898
}
9999

100100
// Replace the brackets by an identifier.
@@ -154,12 +154,12 @@ module.exports = {
154154

155155
// A statement that starts with `let[` is parsed as a destructuring variable declaration, not a MemberExpression.
156156
if (node.object.type === "Identifier" && node.object.name === "let" && !node.optional) {
157-
return; // eslint-disable-line eslint-plugin/fixer-return -- false positive
157+
return;
158158
}
159159

160160
// Don't perform any fixes if there are comments between the dot and the property name.
161161
if (sourceCode.commentsExistBetween(dotToken, node.property)) {
162-
return; // eslint-disable-line eslint-plugin/fixer-return -- false positive
162+
return;
163163
}
164164

165165
// Replace the identifier to brackets.

lib/rules/prefer-arrow-callback.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ module.exports = {
295295
* If the callback function has duplicates in its list of parameters (possible in sloppy mode),
296296
* don't replace it with an arrow function, because this is a SyntaxError with arrow functions.
297297
*/
298-
return; // eslint-disable-line eslint-plugin/fixer-return -- false positive
298+
return;
299299
}
300300

301301
// Remove `.bind(this)` if exists.
@@ -307,7 +307,7 @@ module.exports = {
307307
* E.g. `(foo || function(){}).bind(this)`
308308
*/
309309
if (memberNode.type !== "MemberExpression") {
310-
return; // eslint-disable-line eslint-plugin/fixer-return -- false positive
310+
return;
311311
}
312312

313313
const callNode = memberNode.parent;
@@ -320,12 +320,12 @@ module.exports = {
320320
* ^^^^^^^^^^^^
321321
*/
322322
if (astUtils.isParenthesised(sourceCode, memberNode)) {
323-
return; // eslint-disable-line eslint-plugin/fixer-return -- false positive
323+
return;
324324
}
325325

326326
// If comments exist in the `.bind(this)`, don't remove those.
327327
if (sourceCode.commentsExistBetween(firstTokenToRemove, lastTokenToRemove)) {
328-
return; // eslint-disable-line eslint-plugin/fixer-return -- false positive
328+
return;
329329
}
330330

331331
yield fixer.removeRange([firstTokenToRemove.range[0], lastTokenToRemove.range[1]]);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
"ejs": "^3.0.2",
9696
"eslint": "file:.",
9797
"eslint-config-eslint": "file:packages/eslint-config-eslint",
98-
"eslint-plugin-eslint-plugin": "^3.0.3",
98+
"eslint-plugin-eslint-plugin": "^3.2.0",
9999
"eslint-plugin-internal-rules": "file:tools/internal-rules",
100100
"eslint-plugin-jsdoc": "^25.4.3",
101101
"eslint-plugin-node": "^11.1.0",

0 commit comments

Comments
 (0)