Skip to content

Commit 731c1b4

Browse files
committed
Update README to show ESLint 9 usage
1 parent 1c9b334 commit 731c1b4

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,13 @@ Note that it requires ESlint v9 and above.
2020

2121
## Usage
2222

23-
In your `.eslintrc` file, put `@oncehub/eslint-config` under `extends` array as shown below.
23+
Import the package inside of an eslint.config.js file and add it into the exported array, like this:
2424

2525
```js
26-
module.exports = {
27-
extends: ["@oncehub/eslint-config"],
28-
};
26+
// eslint.config.js
27+
import oncehub from "@oncehub/eslint-config";
28+
29+
export default [...oncehub];
2930
```
3031

3132
## Development

0 commit comments

Comments
 (0)