ESLint Blog
フィード

ESLint v10.3.0 released
ESLint Blog
Highlightsno-unused-private-class-members SuggestionsThe no-unused-private-class-members rule now provides suggestions to remove reported unused private class members.For example, for the following code, in which the rule reports #doSomethingElse as unused:class C { /** * My public method. */ doSomething() { } /** * My private method. */ #doSomethingElse() { }}12345678910111213141516Copy code to clipboard It will now suggest removing #doSomethingElse. After applying the suggestion, the method and related comment will be removed:class C { /** * My public method. */ doSomething() { }}123456789Copy code to clipboard Features379571a feat: add suggestions for no-unused-private-class-members (#20773) (sethamus)Bug Fixesb6ae5cf fix: handle unavailable require cache (#20812) (Simon Podlipsky)6fb3685 fix: rule suggestions cause continuation in class body (#20787) (Milos Djermanovic)Documentation32cc7ab docs: fix typos in docs and comments (#20809) (Tanuj Kanti)7f47937 docs: Update README (GitHu
6日前

ESLint v10.2.1 released
ESLint Blog
Bug Fixes14be92b fix: model generator yield resumption paths in code path analysis (#20665) (sethamus)84a19d2 fix: no-async-promise-executor false positives for shadowed Promise (#20740) (xbinaryx)af764af fix: clarify language and processor validation errors (#20729) (Pixel998)e251b89 fix: update eslint (#20715) (renovate[bot])Documentationca92ca0 docs: reuse markdown-it instance for markdown filter (#20768) (Amaresh S M)57d2ee2 docs: Enable Eleventy incremental mode for watch (#20767) (Amaresh S M)c1621b9 docs: fix typos in code-path-analyzer.js (#20700) (Ayush Shukla)1418d52 docs: Update README (GitHub Actions Bot)39771e6 docs: Update README (GitHub Actions Bot)71e0469 docs: fix incomplete JSDoc param description in no-shadow rule (#20728) (kuldeep kumar)22119ce docs: clarify scope of for-direction rule with dead code examples (#20723) (Amaresh S M)8f3fb77 docs: document meta.docs.dialects (#20718) (Pixel998)Chores7ddfea9 chore: update dependency prettier to v3.8.2 (#20770) (renovate
20日前

ESLint v10.2.0 released
ESLint Blog
HighlightsLanguage-aware rulesESLint v10.2.0 adds support for language-aware rules through the new meta.languages property. Rule authors can now explicitly declare which languages a rule supports, and ESLint will throw a runtime error if that rule is enabled for an unsupported language, as specified by the language configuration option.Here is an example of a rule that only supports the JavaScript language:const rule = { meta: { type: "problem", docs: { description: "Example JavaScript rule", }, languages: ["js/js"], }, create(context) { return {}; },};123456789101112Copy code to clipboard Currently, none of the ESLint built-in rules restrict the languages they are designed to work with, but this may change in the future.More information about the meta.languages property can be found in the custom rules documentation.Temporal supportWith the Temporal proposal now at TC39 stage 4, ESLint v10.2.0 recognizes Temporal as a built-in global. As a result, the no-undef rule no longer flags Tem
1ヶ月前

ESLint v10.1.0 released
ESLint Blog
HighlightsAPI Support for Bulk SuppressionsESLint v10.1.0 introduces API support for the bulk suppressions feature that was previously only available in the CLI.ESLint API consumers, such as IDEs, can now pass the applySuppressions: true option to the ESLint constructor. With this option, suppressions from the suppressions file are automatically applied to results from ESLint#lintFiles() and ESLint#lintText() methods.const eslint = new ESLint({ applySuppressions: true, // optional, defaults to `eslint-suppressions.json` suppressionsLocation: "./config/my-suppressions.json",});123456Copy code to clipboard Please see the Bulk Suppressions - Usage with the Node.js API section for more details.Featuresff4382b feat: apply fix for no-var in TSModuleBlock (#20638) (Tanuj Kanti)0916995 feat: Implement api support for bulk-suppressions (#20565) (Blake Sager)Bug Fixes2b8824e fix: Prevent no-var autofix when a variable is used before declaration (#20464) (Amaresh S M)e58b4bf fix: update eslint (#
2ヶ月前

ESLint v9.39.4 released
ESLint Blog
HighlightsThis release sets the minimatch dependency version used in ESLint to ^3.1.5. This change avoids a bug in a previous minimatch release that could cause ESLint to not recognize certain files. A transitive dependency on minimatch was also updated to ^3.1.5 to include a fix for a recently published security issue.Bug Fixesf18f6c8 fix: update dependency minimatch to ^3.1.5 (#20564) (Milos Djermanovic)a3c868f fix: update dependency @eslint/eslintrc to ^3.3.4 (#20554) (Milos Djermanovic)234d005 fix: minimatch security vulnerability patch for v9.x (#20549) (Andrej Beles)b1b37ee fix: update ajv to 6.14.0 to address security vulnerabilities (#20538) (루밀LuMir)Documentation4675152 docs: add deprecation notice partial (#20520) (Milos Djermanovic)Choresb8b4eb1 chore: update dependencies for ESLint v9.39.4 (#20596) (Francesco Trotta)71b2f6b chore: package.json update for @eslint/js release (Jenkins)1d16c2f ci: pin Node.js 25.6.1 (#20563) (Milos Djermanovic)
2ヶ月前

ESLint v10.0.3 released
ESLint Blog
HighlightsThis release sets the minimatch dependency version used in ESLint to ^10.2.4. This change avoids a bug in a previous minimatch release that could cause ESLint to not recognize certain files.Bug Fixese511b58 fix: update eslint (#20595) (renovate[bot])f4c9cf9 fix: include variable name in no-useless-assignment message (#20581) (sethamus)ee9ff31 fix: update dependency minimatch to ^10.2.4 (#20562) (Milos Djermanovic)Documentation9fc31b0 docs: Update README (GitHub Actions Bot)4efaa36 docs: add info box for eslint-plugin-eslint-comments (#20570) (DesselBane)23b2759 docs: add v10 migration guide link to Use docs index (#20577) (Pixel998)80259a9 docs: Remove deprecated eslintrc documentation files (#20472) (Copilot)9b9b4ba docs: fix typo in no-await-in-loop documentation (#20575) (Pixel998)e7d72a7 docs: document TypeScript 5.3 minimum supported version (#20547) (sethamus)Choresef8fb92 chore: package.json update for eslint-config-eslint release (Jenkins)e8f2104 chore: updates for v9
2ヶ月前

ESLint v10.0.2 released
ESLint Blog
HighlightsThis release updates the ajv dependency to v6.14.0 which includes the fix for a recently published security issue.Bug Fixes2b72361 fix: update ajv to 6.14.0 to address security vulnerabilities (#20537) (루밀LuMir)Documentation13eeedb docs: link rule type explanation to CLI option --fix-type (#20548) (Mike McCready)98cbf6b docs: update migration guide per Program range change (#20534) (Huáng Jùnliàng)61a2405 docs: add missing semicolon in vars-on-top rule example (#20533) (Abilash)Chores951223b chore: update dependency @eslint/eslintrc to ^3.3.4 (#20553) (renovate[bot])6aa1afe chore: update dependency eslint-plugin-jsdoc to ^62.7.0 (#20536) (Milos Djermanovic)
2ヶ月前
ESLint v9.39.3 released
ESLint Blog
HighlightsThis version restores TypeScript 4.0 compatibility in types.Bug Fixes791bf8d fix: restore TypeScript 4.0 compatibility in types (#20504) (sethamus)Chores8594a43 chore: upgrade @eslint/[email protected] (#20529) (Milos Djermanovic)9ceef92 chore: package.json update for @eslint/js release (Jenkins)af498c6 chore: ignore /docs/v9.x in link checker (#20453) (Milos Djermanovic)
3ヶ月前

ESLint v10.0.1 released
ESLint Blog
HighlightsThis release updates the minimatch dependency to v10.2.1 which includes the fix for a recently published security issue.Bug Fixesc87d5bd fix: update eslint (#20531) (renovate[bot])d841001 fix: update minimatch to 10.2.1 to address security vulnerabilities (#20519) (루밀LuMir)04c2147 fix: update error message for unused suppressions (#20496) (fnx)38b089c fix: update dependency @eslint/config-array to ^0.23.1 (#20484) (renovate[bot])Documentation5b3dbce docs: add AI acknowledgement section to templates (#20431) (루밀LuMir)6f23076 docs: toggle nav in no-JS mode (#20476) (Tanuj Kanti)b69cfb3 docs: Update README (GitHub Actions Bot)Chorese5c281f chore: updates for v9.39.3 release (Jenkins)8c3832a chore: update @typescript-eslint/parser to ^8.56.0 (#20514) (Milos Djermanovic)8330d23 test: add tests for config-api (#20493) (Milos Djermanovic)37d6e91 chore: remove eslint v10 prereleases from eslint-config-eslint deps (#20494) (Milos Djermanovic)da7cd0e refactor: cleanup error message tem
3ヶ月前

ESLint v10.0.0 released
ESLint Blog
HighlightsESLint v10.0.0 is a major release that includes several new features and breaking changes. Here are some of the most notable updates.InstallingBecause this is a major release, you may not automatically be upgraded by npm. To ensure you are using this version, run:npm i [email protected] --save-dev1Copy code to clipboard Node.js < v20.19.0, v21.x, v23.x no longer supportedAs of this post, Node.js v24.x is the LTS release, and as such we are dropping support for all versions of Node.js prior to v20.19.0 as well as v21.x and v23.x.Migration GuideAs there are a lot of changes, we’ve created a migration guide describing the breaking changes in great detail along with the steps you should take to address them. We expect that most users should be able to upgrade without any build changes, but the migration guide should be a useful resource if you encounter problems.New configuration file lookup algorithmESLint v10.0.0 locates eslint.config.* by starting from the directory of each linted
3ヶ月前