Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit db3468b

Browse files
docs: tweak wording around ambiguous CJS-vs-ESM config (#20865)
eslint config MJS
1 parent d84393d commit db3468b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

docs/src/use/configure/configuration-files.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export default defineConfig([
4545

4646
In this example, the `defineConfig()` helper is used to define a configuration array with just one configuration object. The configuration object enables two rules: `semi` and `prefer-const`. These rules are applied to all of the files ESLint processes using this config file.
4747

48-
If your project does not specify `"type":"module"` in its `package.json` file, then `eslint.config.js` must be in CommonJS format, such as:
48+
If your project specifies `"type": "commonjs"` in its `package.json` file, then `eslint.config.js` must be in CommonJS format, such as:
4949

5050
```js
5151
// eslint.config.js

packages/eslint-config-eslint/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ bun add eslint-config-eslint -D
4848

4949
## Usage
5050

51-
### ESM (`"type":"module"`) projects
51+
### ESM (`"type": "module"`) projects
5252

5353
In your `eslint.config.js` file, add:
5454

0 commit comments

Comments
 (0)