Repository navigation
v5.0.0
Major Changes
-
Update ESLint to v10. (by @alexander-akait in #225)
Breaking changes:
- requires
eslint>= 10.15.0and Node.js^22.13.0 || >= 24.0.0 - import rules now use
eslint-plugin-import-x, renameimport/*rule overrides andeslint-disabledirectives toimport-x/*(e.g.import/extensions->import-x/extensions)
- requires
Minor Changes
-
Enable more
unicornrules andjsdoc/normalize-see-links: (by @alexander-akait in #236)- in every config:
consistent-conditional-object-spread,consistent-json-file-read,consistent-tuple-labels,no-accidental-bitwise-operator,no-duplicate-if-branches,no-duplicate-loops,no-incomplete-accessor-override,no-invalid-argument-count,no-invalid-file-input-accept,no-invalid-integrity,no-leading-empty-lines,no-mismatched-map-key,no-object-methods-with-collections,no-typeof-undefined,no-unreadable-iife,no-unused-iterator-helper,no-useless-concat,no-useless-recursion,no-useless-set-construction,prefer-set-size,switch-case-break-position; - for the ECMAScript versions that have the API:
prefer-at(ES2022),prefer-url-can-parse(ES2023),prefer-group-byandprefer-promise-with-resolvers(ES2024),prefer-iterator-helpers,prefer-iterator-to-arrayandprefer-iterator-to-array-at-end(ES2025),prefer-promise-try(ES2026, because Node.js 22 has noPromise.try()),prefer-error-is-errorandprefer-iterator-concat(ES2026); - in
node/module, when every Node.js versionengines.nodeallows hasimport.meta.dirname(^20.11.0 || >=21.2.0):prefer-import-meta-properties.
- in every config:
-
Enable
webpack/prefer-import-tag,webpack/no-duplicate-import-tagandwebpack/no-unused-import-tagintypescript/jsdoc, so every recommended config checks JSDoc@importtags whentypescriptis installed.webpack/specialnow only enableswebpack/require-license-comment. (by @alexander-akait in #235) -
Lint Markdown content, not only its code blocks.
markdown/recommendednow parses**/*.mdwith the GitHub-flavored Markdown language and enables the@eslint/markdownrecommended rules, in the same ESLint run that lints the fenced code blocks. It also enables theunicornrules that support Markdown and that we use for JavaScript (no-abusive-eslint-disable,prefer-https,relative-url-stylewith"always"), the Markdown-onlyunicorn/no-empty-link-textandunicorn/no-javascript-url, and reports unused<!-- eslint-disable -->comments as errors, as for JavaScript. (by @alexander-akait in #230)The
browser/*,stylistic/*and standalonenode/commonjs,node/moduleandnode/dirtyconfigs now apply only to the JavaScript and TypeScript files the JavaScript config lints, so their rules and language options no longer reach Markdown files. -
Add the
node-test/recommendedconfig with the recommended rules ofeslint-node-testfor tests written with the built-in Node.js test runner, enabled in every recommended config. It makes the same choices asjest/recommended(node-test/consistent-test-it,node-test/no-commented-tests,node-test/prefer-lowercase-titleexcept fordescribe,node-test/no-unneeded-async-rejects-callback;node-test/no-conditional-assertionandnode-test/no-done-callbackoff). The rules only apply to files that importnode:test(assertion rules also to files that importnode:assert). (by @alexander-akait in #232) -
Add the
performance/recommendedconfig with theperformance/no-case-insensitive-unicode-rangerule, enabled in every recommended config. (by @alexander-akait in #217) -
Add the
performance/require-precompiled-schemarule, enabled in every recommended config: options validated against a schema need a check precompiled withschema-utils precompile, in plugins (compiler.validate), loaders (this.getOptions) and directschema-utilsvalidatecalls. (by @alexander-akait in #220) -
Added markdown and json presets. (by @alexander-akait in #231)
Patch Changes
-
Stop marking
webpack/require-license-commentas fixable, since it has no fixer. (by @alexander-akait in #228) -
Enable
unicorn/prefer-top-level-awaitonly for ECMAScript modules (node/module,browser/recommendedandbrowser/recommended-outdated-module), so it no longer reports CommonJS files such as.jsfiles in a package without"type": "module", which can't use top-levelawait. (by @alexander-akait in #237) -
Update
eslint-plugin-jsdocto^65.5.0and@eslint-react/eslint-pluginto^5.30.5. (by @alexander-akait in #229)