Published under: Release Notes
1 min read
Highlights
- Rules can now use
SourceCode#getDeclaredVariables(node)
andSourceCode#getAncestors(node)
methods. These methods work the same ascontext.getDeclaredVariables(node)
andcontext.getAncestors()
respectively, except thatSourceCode#getAncestors
isn’t limited to the currently traversed node and thenode
argument is mandatory.context.getDeclaredVariables
andcontext.getAncestors
are now considered deprecated in favor of theSourceCode
methods. This change is part of the implementation of language plugins.
Features
Bug Fixes
1c1ece2
fix: do not report onRegExp(...args)
inrequire-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 toeslint-community
(#17061) (Pelle Wessman)a3aa6f5
docs: Clarifyno-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)