Skip to content

Commit

Permalink
ESLint
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Feb 9, 2025
1 parent 212c282 commit ce1d702
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export default [
"packages/babel-standalone/babel.min.js",
"packages/babel-parser/test/expressions",
"packages/babel-core/src/vendor",
"packages/babel-parser/typings/**/*",
"eslint/*/lib",
"eslint/*/node_modules",
"eslint/*/test/fixtures",
Expand Down
1 change: 0 additions & 1 deletion packages/babel-helpers/src/helpers/asyncIterator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ declare class AsyncFromSyncIterator<T = any, TReturn = any, TNext = undefined>
// This makes ESLint and TypeScript complain a lot, but it's the only way
function AsyncFromSyncIterator<T, TReturn = any, TNext = undefined>(s: any) {
// @ts-expect-error - Intentionally overriding the constructor.
// eslint-disable-next-line no-class-assign
AsyncFromSyncIterator = function (
this: AsyncFromSyncIterator,
s: Iterator<T>,
Expand Down
1 change: 0 additions & 1 deletion packages/babel-helpers/src/helpers/isNativeFunction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
export default function _isNativeFunction(fn: unknown): fn is Function {
// Note: This function returns "true" for core-js functions.
try {
// eslint-disable-next-line @typescript-eslint/prefer-includes
return Function.toString.call(fn).indexOf("[native code]") !== -1;
} catch (_e) {
// Firefox 31 throws when "toString" is applied to an HTMLElement
Expand Down

0 comments on commit ce1d702

Please sign in to comment.