npm / @lobehub/lint
@lobehub/lint
What changed in @lobehub/lint 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-28.
11 breaking7 new APIs and options3 behavior and defaults4 tooling6 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@lobehub/lint 231 changes
Breaking changes 11
Un-aborted fetch requests are now errors; abort requests on cleanup with an AbortController.
React-hooks violations, including missing hook dependencies, are reported once; use react-hooks/* ids in disable comments because the nine @eslint-react copies are off.
@lobehub/eslint-config and @lobehub/lint now require typescript >=5 <7 as a peer; TypeScript 7 is unsupported, so install typescript@^6.
The rule ID is renamed to jsx-no-namespace; disable comments using the old ID become unused directives.
Rule IDs are renamed to dom-no-*; disable comments using the old IDs become unused directives.
Adds an error for placing a key prop after a spread in JSX; it is not autofixable.
Reports the same violations as react-hooks/rules-of-hooks, so each violation is reported twice.
Rule IDs are renamed to naming-convention-*; disable comments using the old IDs become unused directives.
The rule ID is renamed to rsc-function-definition; disable comments using the old ID become unused directives.
Rule IDs are renamed to web-api-no-leaked-*; disable comments using the old IDs become unused directives.
eslint-config now bans default exports, so code using them will violate the lint rules.
New APIs and options 7
Adds a warning for leaked dollar usage in JSX.
Adds a warning for leaked semicolon usage in JSX.
Adds a CommonJS changelog configuration entry point.
Adds a CommonJS entry point for release configuration.
Adds a CommonJS entry point for monorepo release configuration.
Adds a warning for leaked fetch usage.
Adds a warning for leaked IntersectionObserver usage.
Behavior and default changes 3
The scaffolder installs TypeScript 6 instead of the latest 7.
Perf commits now appear in release notes.
The rule is turned off to stop circular autofixes with regexp/strict.
Tooling 4
check-release.mjs now checks every workspace package.
Adds an error when an element has both a children prop and children content; an editor suggestion is available.
Adds a warning for JSX children-prop usage.
The ESLint configuration now supports MDX files.
Fixes and other changes 6
require() is allowed in commonjs and rc config files, which no longer fail no-require-imports.
The config no longer fails with ERR_PACKAGE_PATH_NOT_EXPORTED for zod-validation-error/v4; pnpm lockfiles that hold 3.5.4 still need an update.
The skill writes this configuration file and migrates workspace packages.
Stylelint fixes for logical properties now preserve CSS-in-JS interpolations.
Stops the rule from merging imports into invalid type imports.
The skill now always writes this file and verifies it with getConfig; it also writes it when semantic-release is below 22.