@infra-x/create-eslint-config 0.2.1 → 0.2.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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @infra-x/eslint-config@0.1.6 build /home/runner/work/infra-code/infra-code/packages/eslint-config
2
+ > @infra-x/eslint-config@0.1.8 build /home/runner/work/infra-code/infra-code/packages/eslint-config
3
3
  > tsdown
4
4
 
5
5
  ℹ tsdown v0.21.4 powered by rolldown v1.0.0-rc.9
@@ -7,7 +7,7 @@
7
7
  ℹ entry: src/index.ts
8
8
  ℹ tsconfig: tsconfig.json
9
9
  ℹ Build start
10
- ℹ dist/index.mjs 16.72 kB │ gzip: 4.79 kB
10
+ ℹ dist/index.mjs 16.59 kB │ gzip: 4.75 kB
11
11
  ℹ dist/index.d.mts  7.11 kB │ gzip: 2.31 kB
12
- ℹ 2 files, total: 23.83 kB
13
- ✔ Build complete in 1801ms
12
+ ℹ 2 files, total: 23.70 kB
13
+ ✔ Build complete in 1852ms
@@ -47,7 +47,7 @@
47
47
  "eslint-plugin-package-json": "^0.91.0",
48
48
  "eslint-plugin-react-hooks": "^7.0.1",
49
49
  "eslint-plugin-react-refresh": "^0.5.2",
50
- "eslint-plugin-oxlint": "^0.16.0",
50
+ "eslint-plugin-oxlint": "^0.18.0",
51
51
  "eslint-plugin-storybook": "^10.2.14",
52
52
  "eslint-plugin-unicorn": "^63.0.0",
53
53
  "typescript-eslint": "^8.56.1"
@@ -80,8 +80,6 @@ export function imports(options: ImportsOptions = {}): Linter.Config[] {
80
80
  'import-x/no-named-as-default': 'warn',
81
81
  // maxDepth 避免全图遍历导致性能问题
82
82
  'import-x/no-cycle': ['error', { maxDepth: 5 }],
83
- // ignoreExports 防止入口文件的导出被误报为未使用
84
- 'import-x/no-unused-modules': ['error', { unusedExports: true, ignoreExports: ['**/index.ts', '**/index.tsx'] }],
85
83
  'import-x/no-deprecated': 'warn',
86
84
  'import-x/no-extraneous-dependencies': 'error',
87
85
  'import-x/no-relative-parent-imports': noRelativeParentImports ? 'error' : 'off',
@@ -25,10 +25,10 @@ import { imports } from './configs/imports'
25
25
  import { javascript } from './configs/javascript'
26
26
  import { jsdoc } from './configs/jsdoc'
27
27
  import { nextjs } from './configs/nextjs'
28
+ import { oxlintConfig } from './configs/oxlint'
28
29
  import { packageJson } from './configs/package-json'
29
30
  import { react } from './configs/react'
30
31
  import { storybook } from './configs/storybook'
31
- import { oxlintConfig } from './configs/oxlint'
32
32
  import { stylistic } from './configs/stylistic'
33
33
  import { typescript } from './configs/typescript'
34
34
  import { unicorn } from './configs/unicorn'
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@infra-x/create-eslint-config",
3
3
  "type": "module",
4
- "version": "0.2.1",
4
+ "version": "0.2.2",
5
5
  "description": "CLI to copy ESLint config source into a monorepo.",
6
6
  "author": "infra-x",
7
7
  "license": "MIT",
@@ -29,8 +29,8 @@
29
29
  "eslint": "^10.0.2",
30
30
  "tsdown": "^0.21.0",
31
31
  "typescript": "^5.9.3",
32
- "@infra-x/typescript-config": "0.1.6",
33
- "@infra-x/eslint-config": "0.1.6"
32
+ "@infra-x/eslint-config": "0.1.8",
33
+ "@infra-x/typescript-config": "0.1.6"
34
34
  },
35
35
  "exports": {
36
36
  ".": "./dist/index.mjs",