Skip to content

Commit

Permalink
docs: Publish v8.40.0 release highlights (eslint#439)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdjermanovic authored May 5, 2023
1 parent 40627b0 commit 31030c4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/content/blog/2023-05-05-eslint-v8.40.0-released.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,20 @@ layout: post
title: ESLint v8.40.0 released
teaser: "We just pushed ESLint v8.40.0, which is a minor release upgrade of ESLint. This release adds some new features and fixes several bugs found in the previous release."
image: release-notes-minor.png
draft: true
authors:
- eslintbot
- mdjermanovic
categories:
- Release Notes
tags:
- Release
---


## Highlights

* Rules can now use properties `context.sourceCode`, `context.cwd`, `context.filename`, and `context.physicalFilename` instead of methods `context.getSourceCode()`, `context.getCwd()`, `context.getFilename()`, and `context.getPhysicalFilename()` respectively. The methods are now considered deprecated.
* The `FlatESLint` class has a new method `findConfigFile()`. It returns the path to the config file being used by the instance or `undefined` if no config file is being used.
* The [semi](/docs/latest/rules/semi) rule has a new option `omitLastInOneLineClassBody`.



Expand Down

0 comments on commit 31030c4

Please sign in to comment.