Skip to content

Commit

Permalink
Remove unused ESLint comments
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Oct 9, 2024
1 parent 63abd9b commit 115702f
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ type NodeWithDescription =
type: NodeTypesWithDescriptions;
};

// eslint-disable-next-line no-confusing-arrow
const toNodeDescription = (node: NodeWithDescription) =>
node.type === "UpdateExpression"
? NodeDescriptions.UpdateExpression[`${node.prefix}`]
Expand Down
2 changes: 0 additions & 2 deletions packages/babel-parser/test/helpers/difference.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint-disable no-confusing-arrow */

import { isIdentifierName } from "@babel/helper-validator-identifier";

const { isArray } = Array;
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-parser/test/helpers/fixture-error.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const { defineProperty, entries, fromEntries } = Object;

const named = (name, object) => defineProperty(object, "name", { value: name });
const mapEntries = (object, f) => fromEntries(entries(object).map(f));
// eslint-disable-next-line no-confusing-arrow

const toContextError = error =>
isArray(error) ? error.map(toContextError) : error.context || error;

Expand Down
1 change: 0 additions & 1 deletion packages/babel-parser/test/helpers/serialization.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ const toBigInt = global.BigInt || (() => null);

const SerializationKey = "$$ babel internal serialized type";

/* eslint-disable no-confusing-arrow */
export const deserialize = (filename, options, string) =>
withErrors(
options.throws,
Expand Down
1 change: 0 additions & 1 deletion packages/babel-parser/test/helpers/to-fuzzed-options.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable no-confusing-arrow */
const random = (min, max) => Math.floor(Math.random() * (max - min + 1) + min);
const clone = value => JSON.parse(JSON.stringify(value));

Expand Down
2 changes: 1 addition & 1 deletion packages/babel-types/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export { default as createUnionTypeAnnotation } from "./builders/flow/createFlow
export { default as createFlowUnionType } from "./builders/flow/createFlowUnionType.ts";
export { default as createTSUnionType } from "./builders/typescript/createTSUnionType.ts";
export * from "./builders/generated/index.ts";
// eslint-disable-next-line import/export

export * from "./builders/generated/uppercase.js";
export * from "./builders/productions.ts";

Expand Down

0 comments on commit 115702f

Please sign in to comment.