Skip to content

Releases: eslint/eslint

v8.40.0

05 May 20:42
Compare
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

  • 4053004 chore: upgrade @eslint/js@8.40.0 (#17156) (Milos Djermanovic)
  • 50fed1d chore: package.json update for @eslint/js release (ESLint Jenkins)
  • 4c7a170 chore: upgrade @eslint/eslintrc@2.0.3 (#17155) (Milos Djermanovic)
  • e80b7cc chore: upgrade espree@9.5.2 (#17154) (Milos Djermanovic)
  • ce3ac91 chore: upgrade eslint-visitor-keys@3.4.1 (#17153) (Milos Djermanovic)
  • 9094d79 chore: add latest/ to meta.docs.url in all core rules (#17136) (Milos Djermanovic)
  • d85efad perf: don't use grapheme-splitter on ASCII strings in key-spacing rule (#17122) (Milos Djermanovic)

v8.39.0

21 Apr 21:05
Compare
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/js@8.39.0 (#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
Compare
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

  • 59ed060 chore: upgrade @eslint/js@8.38.0 (#17069) (Milos Djermanovic)
  • 88c0898 chore: package.json update for @eslint/js release (ESLint Jenkins)
  • cf682d2 refactor: simplify new-parens rule schema (#17060) (MHO)
  • 0dde022 ci: bump actions/add-to-project from 0.4.1 to 0.5.0 (#17055) (dependabot[bot])

v8.37.0

28 Mar 22:47
Compare
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

  • c67f299 chore: upgrade @eslint/js@8.37.0 (#17033) (Milos Djermanovic)
  • ee9ddbd chore: package.json update for @eslint/js release (ESLint Jenkins)
  • dddb475 chore: upgrade @eslint/eslintrc@2.0.2 (#17032) (Milos Djermanovic)
  • 522431e chore: upgrade espree@9.5.1 (#17031) (Milos Djermanovic)
  • f5f9a88 chore: upgrade eslint-visitor-keys@3.4.0 (#17030) (Milos Djermanovic)
  • 4dd8d52 ci: bump actions/stale from 7 to 8 (#17026) (dependabot[bot])
  • ad9dd6a chore: remove duplicate scss, (#17005) (Strek)
  • ada6a3e ci: unpin Node 19 (#16993) (Milos Djermanovic)
  • c3da975 chore: Remove triage label from template (#16990) (Nicholas C. Zakas)
  • 69bc0e2 ci: pin Node 19 to 19.7.0 (#16987) (Milos Djermanovic)

v8.36.0

10 Mar 22:16
Compare
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

  • 602b111 chore: upgrade @eslint/js@8.36.0 (#16978) (Milos Djermanovic)
  • 43c2345 chore: package.json update for @eslint/js release (ESLint Jenkins)
  • 00afb84 chore: upgrade @eslint/eslintrc@2.0.1 (#16977) (Milos Djermanovic)
  • 698c5aa chore: upgrade espree@9.5.0 (#16976) (Milos Djermanovic)
  • 75acdd2 chore: lint more js files in docs (#16964) (Milos Djermanovic)
  • 89d9844 ci: bump actions/add-to-project from 0.4.0 to 0.4.1 (#16943) (dependabot[bot])

v8.35.0

26 Feb 09:16
Compare
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

  • cdcbe12 chore: upgrade @eslint/js@8.35.0 (#16935) (Brandon Mills)
  • c954c34 chore: package.json update for @eslint/js release (ESLint Jenkins)
  • 5a517da chore: package.json update for @eslint/js release (ESLint Jenkins)
  • 9f10926 chore: upgrade @eslint/eslintrc@2.0.0 (#16928) (Milos Djermanovic)
  • da728fa ci: use LTS node version in workflows (#16907) (Nitin Kumar)
  • c57b4f3 perf: upgrade to esquery@1.4.2 (#16901) (Milos Djermanovic)
  • 9122f07 chore: Update stale bot settings (#16870) (Nicholas C. Zakas)

v8.34.0

10 Feb 20:15
Compare
Choose a tag to compare

Features

  • 9b2fcf7 feat: array-callback-return supports Array.prototype.toSorted (#16845) (SUZUKI Sosuke)

Bug Fixes

  • 923f61d fix: false positive with assignment in no-extra-parens (#16872) (Francesco Trotta)

Documentation

  • f0a9883 docs: split rules documentation (#16797) (Ben Perlmutter)
  • 67aa37b docs: fix typo in command-line-interface.md (#16871) (Kevin Rouchut)
  • 337f7ed docs: fix width of language input (#16849) (Tanuj Kanti)
  • 71349a1 docs: Configure a Parser page (#16803) (Ben Perlmutter)
  • de7e925 docs: remove extra line numbers in example (#16848) (jonz94)
  • ad38d77 docs: Update README (GitHub Actions Bot)

Chores

  • 9dbe06d chore: add type property to array-element-newline schema (#16877) (MHO)
  • a061527 chore: Remove unused functions (#16868) (Nicholas C. Zakas)

v8.33.0

28 Jan 23:26
Compare
Choose a tag to compare

Features

  • 2cc7954 feat: add restrictDefaultExports option to no-restricted-exports rule (#16785) (Nitin Kumar)

Documentation

  • 17f4be2 docs: Fix examples in no-multiple-empty-lines rule (#16835) (jonz94)
  • 9c7cfe3 docs: 'Source Code' content in 'Set up Development Environment' page (#16780) (Ben Perlmutter)
  • ede5c64 docs: Custom processors page (#16802) (Ben Perlmutter)
  • 2620614 docs: Code of Conduct page (#16781) (Ben Perlmutter)
  • 50a8efd docs: report a sec vulnerability page (#16808) (Ben Perlmutter)
  • ed60afd docs: Update page titles, section landing pages, and side TOC (#16760) (Ben Perlmutter)
  • 333c712 docs: add background to code-path-diagrams for dark-mode (#16822) (Tanuj Kanti)
  • f5f7b9b docs: Update README (GitHub Actions Bot)
  • 2aa4f5f docs: no-constant-condition: Add multi-comparison example (#16776) (Sebastian Simon)
  • 40287db docs: Remove Google Group icon (#16779) (Nicholas C. Zakas)
  • ea10ca5 docs: 'a .eslint' -> 'an .eslint' for consistency (#16809) (Ben Perlmutter)
  • 3be0748 docs: add example for nodejs lintText api (#16789) (Siva K)
  • ce4f5ff docs: Replace removed related rules with a valid rule (#16800) (Ville Saalo)

v8.32.0

15 Jan 04:15
Compare
Choose a tag to compare

Features

  • fc20f24 feat: add suggestions for redundant wrapping in prefer-regex-literals (#16658) (YeonJuan)

Bug Fixes

  • b4f8329 fix: ignore directives for no-fallthrough (#16757) (gfyoung)

Documentation

  • 17b65ad docs: IA Update page URL move (#16665) (Ben Perlmutter)
  • 5981296 docs: fix theme switcher button (#16752) (Sam Chen)
  • 6669413 docs: deploy prerelease docs under the /docs/next/ path (#16541) (Nitin Kumar)
  • 78ecfe0 docs: use inline code for rule options name (#16768) (Percy Ma)
  • fc2ea59 docs: Update README (GitHub Actions Bot)
  • 762a872 docs: Update README (GitHub Actions Bot)

Chores

  • 2952d6e chore: sync templates/*.md files with issue templates (#16758) (gfyoung)
  • 3e34418 chore: Add new issues to triage project (#16740) (Nicholas C. Zakas)

v8.31.0

31 Dec 05:40
Compare
Choose a tag to compare

Features

  • 52c7c73 feat: check assignment patterns in no-underscore-dangle (#16693) (Milos Djermanovic)
  • b401cde feat: add options to check destructuring in no-underscore-dangle (#16006) (Morten Kaltoft)
  • 30d0daf feat: group properties with values in parentheses in key-spacing (#16677) (Francesco Trotta)

Bug Fixes

  • 35439f1 fix: correct syntax error in prefer-arrow-callback autofix (#16722) (Francesco Trotta)
  • 87b2470 fix: new instance of FlatESLint should load latest config file version (#16608) (Milos Djermanovic)

Documentation

  • 4339dc4 docs: Update README (GitHub Actions Bot)
  • 4e4049c docs: optimize code block structure (#16669) (Sam Chen)
  • 54a7ade docs: do not escape code blocks of formatters examples (#16719) (Sam Chen)
  • e5ecfef docs: Add function call example for no-undefined (#16712) (Elliot Huffman)
  • a3262f0 docs: Add mastodon link (#16638) (Amaresh S M)
  • a14ccf9 docs: clarify files property (#16709) (Sam Chen)
  • 3b29eb1 docs: fix npm link (#16710) (Abdullah Osama)
  • a638673 docs: fix search bar focus on Esc (#16700) (Shanmughapriyan S)
  • f62b722 docs: country flag missing in windows (#16698) (Shanmughapriyan S)
  • 4d27ec6 docs: display zh-hans in the docs language switcher (#16686) (Percy Ma)
  • 8bda20e docs: remove manually maintained anchors (#16685) (Percy Ma)
  • b68440f docs: User Guide Getting Started expansion (#16596) (Ben Perlmutter)

Chores

  • 65d4e24 chore: Upgrade @eslint/eslintrc@1.4.1 (#16729) (Brandon Mills)
  • 8d93081 chore: fix CI failure (#16721) (Sam Chen)
  • 8f17247 chore: Set up automatic updating of README (#16717) (Nicholas C. Zakas)
  • 4cd87cb ci: bump actions/stale from 6 to 7 (#16713) (dependabot[bot])
  • fd20c75 chore: sort package.json scripts in alphabetical order (#16705) (Darius Dzien)
  • 10a5c78 chore: update ignore patterns in eslint.config.js (#16678) (Milos Djermanovic)