@sxzz/eslint-config 5.2.0 → 6.0.0

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.
Files changed (4) hide show
  1. package/README.md +6 -6
  2. package/dist/index.d.ts +6831 -12992
  3. package/dist/index.js +131 -85
  4. package/package.json +19 -18
package/README.md CHANGED
@@ -1,12 +1,12 @@
1
1
  # @sxzz/eslint-config [![npm](https://img.shields.io/npm/v/@sxzz/eslint-config.svg)](https://npmjs.com/package/@sxzz/eslint-config)
2
2
 
3
- A opinionated ESLint config preset for JavaScript, TypeScript, Vue 2 or Vue 3,
3
+ A opinionated ESLint config preset for JavaScript, TypeScript, Vue,
4
4
  and Prettier.
5
5
 
6
6
  ## Features
7
7
 
8
8
  - Format with Prettier.
9
- - Designed to work with TypeScript, Vue 2 and 3 out-of-box.
9
+ - Designed to work with TypeScript, Vue out-of-box.
10
10
  - Support JSON(5), YAML, Markdown...
11
11
  - Sort imports, `package.json`, `tsconfig.json`...
12
12
  - [ESLint Flat config](https://eslint.org/docs/latest/use/configure/configuration-files-new), compose easily!
@@ -27,9 +27,6 @@ Require Node.js >= 18.18, and ESLint >= 9.5.0.
27
27
  ```js
28
28
  import { sxzz } from '@sxzz/eslint-config'
29
29
  export default sxzz(
30
- [
31
- /* your custom config */
32
- ],
33
30
  // Features: it'll detect installed dependency and enable necessary features automatically
34
31
  {
35
32
  prettier: true,
@@ -37,7 +34,10 @@ export default sxzz(
37
34
  vue: true, // auto detection
38
35
  unocss: false, // auto detection
39
36
  },
40
- )
37
+ [
38
+ /* your custom config */
39
+ ],
40
+ ).removeRules('foo/bar') // see more in https://github.com/antfu/eslint-flat-config-utils
41
41
  ```
42
42
 
43
43
  ### Presets