@ntnyq/eslint-config 2.0.0-beta.2 → 2.0.0-beta.21

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
@@ -5,9 +5,29 @@
5
5
  [![CI](https://github.com/ntnyq/eslint-config/workflows/CI/badge.svg)](https://github.com/ntnyq/eslint-config/actions)
6
6
  [![NPM VERSION](https://img.shields.io/npm/v/@ntnyq/eslint-config/next.svg)](https://www.npmjs.com/package/@ntnyq/eslint-config/v/next)
7
7
 
8
+ ## Install
9
+
10
+ ```bash
11
+ pnpm add @ntnyq/eslint-config@next eslint-define-config -D
12
+ ```
13
+
14
+ ## Usage
15
+
16
+ Config in `eslint.config.js`:
17
+
18
+ ```js
19
+ import { defineFlatConfig } from 'eslint-define-config'
20
+ import { all } from '@ntnyq/eslint-config'
21
+
22
+ export default defineFlatConfig(all)
23
+ ```
24
+
25
+ Make sure to config `"eslint.experimental.useFlatConfig": true` in `.vscode/settings.json`
26
+
8
27
  ## Credits
9
28
 
10
29
  - [@sxzz/eslint-config](https://github.com/sxzz/eslint-config)
30
+ - [@antfu/eslint-config](https://github.com/antfu/eslint-config)
11
31
 
12
32
  ## License
13
33