Skip to content

Releases: eslint/eslint

v8.44.0

30 Jun 23:12

Choose a tag to compare

Features

  • 1766771 feat: add es2023 and es2024 environments (#17328) (Milos Djermanovic)
  • 4c50400 feat: add ecmaVersion: 2024, regexp v flag parsing (#17324) (Milos Djermanovic)
  • 4d411e4 feat: add ternaryOperandBinaryExpressions option to no-extra-parens rule (#17270) (Percy Ma)
  • c8b1f4d feat: Move parserServices to SourceCode (#17311) (Milos Djermanovic)
  • ef6e24e feat: treat unknown nodes as having the lowest precedence (#17302) (Brad Zacher)
  • 1866e1d feat: allow flat config files to export a Promise (#17301) (Milos Djermanovic)

Bug Fixes

  • a36bcb6 fix: no-unused-vars false positive with logical assignment operators (#17320) (Gweesin Chan)
  • 7620b89 fix: Remove no-unused-labels autofix before potential directives (#17314) (Francesco Trotta)
  • 391ed38 fix: Remove no-extra-semi autofix before potential directives (#17297) (Francesco Trotta)

Documentation

  • 526e911 docs: resubmit pr 17115 doc changes (#17291) (ε”―η„Ά)
  • e1314bf docs: Integration section and tutorial (#17132) (Ben Perlmutter)
  • 19a8c5d docs: Update README (GitHub Actions Bot)

Chores

v8.43.0

16 Jun 21:53

Choose a tag to compare

Features

  • 14581ff feat: directive prologue detection and autofix condition in quotes (#17284) (Francesco Trotta)
  • e50fac3 feat: add declaration loc to message in block-scoped-var (#17252) (Milos Djermanovic)
  • 1b7faf0 feat: add skipJSXText option to no-irregular-whitespace rule (#17182) (Azat S)

Bug Fixes

  • 5338b56 fix: normalize cwd passed to ESLint/FlatESLint constructor (#17277) (Milos Djermanovic)
  • 54383e6 fix: Remove no-extra-parens autofix for potential directives (#17022) (Francesco Trotta)

Documentation

  • 8b855ea docs: resubmit pr17061 doc changes (#17292) (ε”―η„Ά)
  • 372722e docs: resubmit pr17012 doc changes (#17293) (ε”―η„Ά)
  • 67e7af3 docs: resubmit custom-rules doc changes (#17294) (ε”―η„Ά)
  • 9e3d77c docs: Resubmit Fix formatting in Custom Rules docs (#17281) (Milos Djermanovic)
  • 503647a docs: Resubmit markVariableAsUsed docs (#17280) (Nicholas C. Zakas)
  • e0cf0d8 docs: Custom rule & plugin tutorial (#17024) (Ben Perlmutter)
  • 8e51ea9 docs: resubmit no-new rule documentation (#17264) (Nitin Kumar)
  • 1b217f8 docs: resubmit Custom Processors documentation (#17265) (Nitin Kumar)
  • 428fc76 docs: resubmit Create Plugins documentation (#17268) (Nitin Kumar)
  • bdca88c docs: resubmit Configuration Files documentation (#17267) (Nitin Kumar)
  • f5c01f2 docs: resubmit Manage Issues documentation (#17266) (Nitin Kumar)
  • b199295 docs: Resubmit custom rules update docs (#17273) (Ben Perlmutter)
  • 0e9980c docs: add new omitLastInOneLineClassBody option to the semi rule (#17263) (Nitin Kumar)
  • cb2560f docs: Resubmit getScope/getDeclaredVariables docs (#17262) (Nicholas C. Zakas)
  • 85d2b30 docs: explain how to include predefined globals (#17261) (Marcus Wyatt)
  • de4d3c1 docs: update flat config default ignore patterns (#17258) (Milos Djermanovic)
  • 3912f3a docs: Improve ignores documentation (#17239) (Francesco Trotta)
  • 35e11d3 docs: fix typos and missing info (#17257) (Ed Lucas)
  • 0bc257c docs: Clarify no-div-regex rule docs (#17051) (#17255) (Francesco Trotta)
  • 788d836 docs: add references to MIT License (#17248) (Milos Djermanovic)
  • 58aab6b docs: Update README (GitHub Actions Bot)
  • 3ef5814 docs: Revert all changes after the license change (#17227) (Milos Djermanovic)
  • 03fc4aa docs: Update README (GitHub Actions Bot)

Chores

v8.42.0

02 Jun 23:47

Choose a tag to compare

Features

  • b8448ff feat: correct no-useless-return behaviour in try statements (#16996) (Nitin Kumar)

Bug Fixes

  • a589636 fix: Config with ignores and without files should not always apply (#17181) (Milos Djermanovic)
  • c4fad17 fix: Correct ignore message for "node_modules" subfolders (#17217) (Francesco Trotta)

Documentation

  • 01d7142 docs: Update README (GitHub Actions Bot)
  • e5182b7 docs: Update README (GitHub Actions Bot)

Chores

  • 6ca5b7c chore: upgrade @eslint/[email protected] (#17236) (Milos Djermanovic)
  • 67fc5e7 chore: package.json update for @eslint/js release (ESLint Jenkins)
  • 0892412 refactor: remove Identifier listener in no-irregular-whitespace (#17235) (Milos Djermanovic)
  • f67d298 test: Add FlatESLint tests with missing config files (#17164) (Milos Djermanovic)
  • 5b68d51 chore: Fix fixedsize attribute in code path analysis DOT debug output (#17202) (Milos Djermanovic)
  • 37432f2 chore: update descriptions in key-spacing tests (#17195) (Milos Djermanovic)

v8.41.0

19 May 20:53

Choose a tag to compare

Features

  • 880a431 feat: change default ignore pattern to **/node_modules/ in flat config (#17184) (Milos Djermanovic)
  • 8bf5505 feat: expose shouldUseFlatConfig (#17169) (Connor Prussin)

Bug Fixes

  • 4f5440d fix: incorrect warning message for ignored dotfiles (#17196) (Milos Djermanovic)
  • 94da96c fix: unify LintMessage type (#17076) (Brandon Mills)
  • 0c415cd fix: validate ignorePatterns constructor option in FlatESLint class (#17139) (Milos Djermanovic)
  • 9682d66 fix: switch grapheme-splitter to graphemer (#17160) (fisker Cheung)

Documentation

  • 7709b14 docs: Update README (GitHub Actions Bot)
  • 7f183e0 docs: Update triage process description (#17157) (Nicholas C. Zakas)
  • b68346b docs: fix license to reflect relicensing of jshint (#17165) (Stefan Bischof)

Chores

  • f43216a chore: upgrade @eslint/[email protected] (#17200) (Milos Djermanovic)
  • 95c3007 chore: package.json update for @eslint/js release (ESLint Jenkins)
  • ddc5291 chore: don't use deprecated context methods in ast-utils tests (#17194) (Milos Djermanovic)
  • b1516db chore: Fix return type of findFlatConfigFile (#17161) (Milos Djermanovic)
  • 918b0fd perf: Store indent descriptors in a plain array (#17148) (Francesco Trotta)
  • 4caa344 refactor: locateConfigFileToUse returns an Error object (#17159) (ε”―η„Ά)

v8.40.0

05 May 20:42

Choose a tag to compare

Features

  • 5db7808 feat: improve flat config errors for invalid rule options and severities (#17140) (Josh Goldberg ✨)
  • f5574dc feat: Add findConfigFile() method to FlatESLint (#17142) (Nicholas C. Zakas)
  • e52b98b feat: add sourceCode property to the rule context (#17107) (Nitin Kumar)
  • 1468f5b feat: add physicalFilename property to the rule context (#17111) (Nitin Kumar)
  • 0df4d4f feat: add cwd to rule context (#17106) (Nitin Kumar)
  • 52018f2 feat: add filename property to the rule context (#17108) (Nitin Kumar)
  • 559ff4e feat: add new omitLastInOneLineClassBody option to the semi rule (#17105) (Nitin Kumar)

Bug Fixes

  • f076e54 fix: Ensure FlatESLint#findConfigFile() doesn't throw. (#17151) (Nicholas C. Zakas)

Documentation

  • e980bf3 docs: Update README (GitHub Actions Bot)
  • e92a6fc docs: Update README (GitHub Actions Bot)
  • af5fe64 docs: Fix custom rule schema docs (#17115) (Adam Jones)
  • 4a352a9 docs: explain how to include predefined globals (#17114) (Marcus Wyatt)
  • 5ea15d9 docs: add mastodon link in readme (#17110) (ε”―η„Ά)

Chores

v8.39.0

21 Apr 21:05

Choose a tag to compare

Features

  • 3f7af9f feat: Implement SourceCode#markVariableAsUsed() (#17086) (Nicholas C. Zakas)

Documentation

  • 6987dc5 docs: Fix formatting in Custom Rules docs (#17097) (Milos Djermanovic)
  • 4ee92e5 docs: Update README (GitHub Actions Bot)
  • d8e9887 docs: Custom Rules cleanup/expansion (#16906) (Ben Perlmutter)
  • 1fea279 docs: Clarify how to add to tsc agenda (#17084) (Nicholas C. Zakas)
  • 970ef1c docs: Update triage board location (Nicholas C. Zakas)
  • 6d8bffd docs: Update README (GitHub Actions Bot)

Chores

  • 60a6f26 chore: upgrade @eslint/[email protected] (#17102) (Milos Djermanovic)
  • d5ba5c0 chore: package.json update for @eslint/js release (ESLint Jenkins)
  • f57eff2 ci: run tests on Node.js v20 (#17093) (Nitin Kumar)
  • 9d1b8fc perf: Binary search in token store utils.search (#17066) (Francesco Trotta)
  • 07a4435 chore: Add request for minimal repro to bug report (#17081) (Nicholas C. Zakas)
  • eac4943 refactor: remove unnecessary use of SourceCode#getAncestors in rules (#17075) (Milos Djermanovic)
  • 0a7b60a chore: update description of SourceCode#getDeclaredVariables (#17072) (Milos Djermanovic)
  • 6e2df71 chore: remove unnecessary references to the LICENSE file (#17071) (Milos Djermanovic)

v8.38.0

07 Apr 23:08

Choose a tag to compare

Features

  • a1d561d feat: Move getDeclaredVariables and getAncestors to SourceCode (#17059) (Nicholas C. Zakas)

Bug Fixes

  • 1c1ece2 fix: do not report on RegExp(...args) in require-unicode-regexp (#17037) (Francesco Trotta)

Documentation

  • 7162d34 docs: Mention new config system is complete (#17068) (Nicholas C. Zakas)
  • 0fd6bb2 docs: Update README (GitHub Actions Bot)
  • c83531c docs: Update/remove external links, eg. point to eslint-community (#17061) (Pelle Wessman)
  • a3aa6f5 docs: Clarify no-div-regex rule docs (#17051) (Francesco Trotta)
  • b0f11cf docs: Update README (GitHub Actions Bot)
  • da8d52a docs: Update the second object instance for the "no-new" rule (#17020) (Ahmadou Waly NDIAYE)
  • 518130a docs: switch language based on current path (#16687) (Percy Ma)
  • 24206c4 docs: Update README (GitHub Actions Bot)

Chores

v8.37.0

28 Mar 22:47

Choose a tag to compare

Features

  • b6ab8b2 feat: require-unicode-regexp add suggestions (#17007) (Josh Goldberg)
  • 10022b1 feat: Copy getScope() to SourceCode (#17004) (Nicholas C. Zakas)
  • 1665c02 feat: Use plugin metadata for flat config serialization (#16992) (Nicholas C. Zakas)
  • b3634f6 feat: docs license (#17010) (Samuel Roldan)
  • 892e6e5 feat: languageOptions.parser must be an object. (#16985) (Nicholas C. Zakas)

Bug Fixes

  • 619f3fd fix: correctly handle null default config in RuleTester (#17023) (Brad Zacher)
  • 1fbf118 fix: getFirstToken/getLastToken on comment-only node (#16889) (Francesco Trotta)
  • 129e252 fix: Fix typo in logical-assignment-operators rule description (#17000) (Francesco Trotta)

Documentation

  • 75339df docs: fix typos and missing info in id-match docs (#17029) (Ed Lucas)
  • ec2d830 docs: Fix typos in the semi rule docs (#17012) (Andrii Lundiak)
  • e39f28d docs: add back to top button (#16979) (Tanuj Kanti)
  • 721c717 docs: Custom Processors cleanup and expansion (#16838) (Ben Perlmutter)
  • d049f97 docs: 'How ESLint is Maintained' page (#16961) (Ben Perlmutter)
  • 5251a92 docs: Describe guard options for guard-for-in (#16986) (alope107)
  • 6157d81 docs: Add example to guard-for-in docs. (#16983) (alope107)
  • fd47998 docs: update Array.prototype.toSorted specification link (#16982) (Milos Djermanovic)
  • 3e1cf6b docs: Copy edits on Maintain ESLint docs (#16939) (Ben Perlmutter)

Chores

v8.36.0

10 Mar 22:16

Choose a tag to compare

Features

Bug Fixes

  • 92c1943 fix: correctly iterate files matched by glob patterns (#16831) (Nitin Kumar)

Documentation

  • b98fdd4 docs: Update README (GitHub Actions Bot)
  • caf08ce docs: fix estree link in custom formatters docs (#16967) (Milos Djermanovic)
  • 3398431 docs: Custom Parsers cleanup/expansion (#16887) (Ben Perlmutter)
  • 19d3531 docs: Update README (GitHub Actions Bot)
  • b09a512 docs: detect and fix broken links (#16837) (Nitin Kumar)

Chores

v8.35.0

26 Feb 09:16

Choose a tag to compare

Features

  • 8e34a04 feat: add afterHashbangComment option to lines-around-comment rule (#16920) (SUZUKI Sosuke)
  • c8c0c71 feat: Move all and recommended configs into package. (#16844) (Nicholas C. Zakas)
  • 71f6f0d feat: report more cases with ?? in no-constant-binary-expression (#16826) (Daiki Nishikawa)

Bug Fixes

Documentation

  • f9f195e docs: Plugin docs cleanup & expansion (#16862) (Ben Perlmutter)
  • df809fd docs: Custom Formatters page cleanup/expansion (#16886) (Ben Perlmutter)
  • 0700d1b docs: Add PostCSS/Autoprefixer/CSSNano (#16502) (Nick Schonning)
  • 7b9e9bf docs: support unicode anchors (#16782) (Percy Ma)
  • 5fbc0bf docs: Update README (GitHub Actions Bot)
  • 67865a0 docs: Remove mention of mailing list (#16869) (Amaresh S M)
  • 43af24a docs: Add explanation of when to use 'warn' severity (#16882) (Nicholas C. Zakas)
  • ed2999b docs: Shareable configs page edits and expansion (#16824) (Ben Perlmutter)
  • 2780635 docs: fix typos (#16884) (Lioness100)
  • 5bdaae2 docs: Ways to Extend ESLint page (#16861) (Ben Perlmutter)

Chores