@ntnyq/eslint-config 2.8.0 → 2.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -3,6 +3,7 @@
3
3
  > Flat ESLint config for JavaScript, TypeScript, Vue 2, Vue 3, Prettier.
4
4
 
5
5
  [![CI](https://github.com/ntnyq/eslint-config/workflows/CI/badge.svg)](https://github.com/ntnyq/eslint-config/actions)
6
+ [![NPM DOWNLOADS](https://img.shields.io/npm/dy/@ntnyq/eslint-config)](https://www.npmjs.com/package/@ntnyq/eslint-config)
6
7
  [![NPM VERSION](https://img.shields.io/npm/v/@ntnyq/eslint-config/latest.svg)](https://www.npmjs.com/package/@ntnyq/eslint-config/v/latest)
7
8
 
8
9
  ## Install
@@ -13,7 +14,7 @@ pnpm add @ntnyq/eslint-config -D
13
14
 
14
15
  ## Usage
15
16
 
16
- Config in `eslint.config.mjs`:
17
+ Config in `eslint.config.{mjs,mts}`:
17
18
 
18
19
  ```js
19
20
  import { ntnyq } from '@ntnyq/eslint-config'
@@ -21,6 +22,14 @@ import { ntnyq } from '@ntnyq/eslint-config'
21
22
  export default ntnyq()
22
23
  ```
23
24
 
25
+ Config in `eslint.config.{cjs,cts}`
26
+
27
+ ```js
28
+ const ntnyq = require('@ntnyq/eslint-config')
29
+
30
+ module.exports = ntnyq()
31
+ ```
32
+
24
33
  ## Credits
25
34
 
26
35
  - [@sxzz/eslint-config](https://github.com/sxzz/eslint-config)