Published under: Sponsorships
1 min read
Highlights
- Rules can now use properties
context.sourceCode
,context.cwd
,context.filename
, andcontext.physicalFilename
instead of methodscontext.getSourceCode()
,context.getCwd()
,context.getFilename()
, andcontext.getPhysicalFilename()
respectively. The methods are now considered deprecated. - The
FlatESLint
class has a new methodfindConfigFile()
. It returns the path to the config file being used by the instance orundefined
if no config file is being used. - The semi rule has a new option
omitLastInOneLineClassBody
.
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: addsourceCode
property to the rule context (#17107) (Nitin Kumar)1468f5b
feat: addphysicalFilename
property to the rule context (#17111) (Nitin Kumar)0df4d4f
feat: addcwd
to rule context (#17106) (Nitin Kumar)52018f2
feat: addfilename
property to the rule context (#17108) (Nitin Kumar)559ff4e
feat: add newomitLastInOneLineClassBody
option to thesemi
rule (#17105) (Nitin Kumar)
Bug Fixes
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: addlatest/
tometa.docs.url
in all core rules (#17136) (Milos Djermanovic)d85efad
perf: don’t usegrapheme-splitter
on ASCII strings in key-spacing rule (#17122) (Milos Djermanovic)