
Highlights
- Rules can now use properties
context.sourceCode,context.cwd,context.filename, andcontext.physicalFilenameinstead of methodscontext.getSourceCode(),context.getCwd(),context.getFilename(), andcontext.getPhysicalFilename()respectively. The methods are now considered deprecated. - The
FlatESLintclass has a new methodfindConfigFile(). It returns the path to the config file being used by the instance orundefinedif no config file is being used. - The semi rule has a new option
omitLastInOneLineClassBody.
Features
5db7808feat: improve flat config errors for invalid rule options and severities (#17140) (Josh Goldberg ✨)f5574dcfeat: Add findConfigFile() method to FlatESLint (#17142) (Nicholas C. Zakas)e52b98bfeat: addsourceCodeproperty to the rule context (#17107) (Nitin Kumar)1468f5bfeat: addphysicalFilenameproperty to the rule context (#17111) (Nitin Kumar)0df4d4ffeat: addcwdto rule context (#17106) (Nitin Kumar)52018f2feat: addfilenameproperty to the rule context (#17108) (Nitin Kumar)559ff4efeat: add newomitLastInOneLineClassBodyoption to thesemirule (#17105) (Nitin Kumar)
Bug Fixes
Documentation
e980bf3docs: Update README (GitHub Actions Bot)e92a6fcdocs: Update README (GitHub Actions Bot)af5fe64docs: Fix custom rule schema docs (#17115) (Adam Jones)4a352a9docs: explain how to include predefined globals (#17114) (Marcus Wyatt)5ea15d9docs: add mastodon link in readme (#17110) (唯然)
Chores
4053004chore: upgrade @eslint/js@8.40.0 (#17156) (Milos Djermanovic)50fed1dchore: package.json update for @eslint/js release (ESLint Jenkins)4c7a170chore: upgrade @eslint/eslintrc@2.0.3 (#17155) (Milos Djermanovic)e80b7ccchore: upgrade espree@9.5.2 (#17154) (Milos Djermanovic)ce3ac91chore: upgrade eslint-visitor-keys@3.4.1 (#17153) (Milos Djermanovic)9094d79chore: addlatest/tometa.docs.urlin all core rules (#17136) (Milos Djermanovic)d85efadperf: don’t usegrapheme-splitteron ASCII strings in key-spacing rule (#17122) (Milos Djermanovic)
