Skip to content

Commit

Permalink
fix: ESM import syntax in blog post (#335)
Browse files Browse the repository at this point in the history
* fix: ESM import syntax in blog post

* Fix second import
  • Loading branch information
nzakas committed Aug 30, 2022
1 parent 304b989 commit a9fc84c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/content/blog/2022-08-08-new-config-system-part-3.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ For now, you can access `FlatESLint` through the `use-at-your-own-risk` entrypoi

```js
// ESM
import { FlatESLint } from "eslint/use-at-your-own-risk";
import pkg from "eslint/use-at-your-own-risk";
const { FlatESLint } = pkg;

// CommonJS
const { FlatESLint } = require("eslint/use-at-your-own-risk");
Expand Down Expand Up @@ -76,7 +77,8 @@ Similar to the `ESLint` class, there was no easy way to provide an option to swi

```js
// ESM
import { FlatRuleTester } from "eslint/use-at-your-own-risk";
import pkg from "eslint/use-at-your-own-risk";
const { FlatRuleTester } = pkg;

// CommonJS
const { FlatRuleTester } = require("eslint/use-at-your-own-risk");
Expand Down

0 comments on commit a9fc84c

Please sign in to comment.