@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.
|
|
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
|
[34mℹ[39m tsdown [2mv0.21.4[22m powered by rolldown [2mv1.0.0-rc.9[22m
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
[34mℹ[39m entry: [34msrc/index.ts[39m
|
|
8
8
|
[34mℹ[39m tsconfig: [34mtsconfig.json[39m
|
|
9
9
|
[34mℹ[39m Build start
|
|
10
|
-
[34mℹ[39m [2mdist/[22m[1mindex.mjs[22m [2m16.
|
|
10
|
+
[34mℹ[39m [2mdist/[22m[1mindex.mjs[22m [2m16.59 kB[22m [2m│ gzip: 4.75 kB[22m
|
|
11
11
|
[34mℹ[39m [2mdist/[22m[32m[1mindex.d.mts[22m[39m [2m 7.11 kB[22m [2m│ gzip: 2.31 kB[22m
|
|
12
|
-
[34mℹ[39m 2 files, total: 23.
|
|
13
|
-
[32m✔[39m Build complete in [
|
|
12
|
+
[34mℹ[39m 2 files, total: 23.70 kB
|
|
13
|
+
[32m✔[39m Build complete in [32m1852ms[39m
|
|
@@ -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.
|
|
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.
|
|
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/
|
|
33
|
-
"@infra-x/
|
|
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",
|