Skip to content

Commit bf50a4d

Browse files
renovate[bot]JounQinautofix-ci[bot]
authored
chore(deps): update all dependencies (#299)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: JounQin <[email protected]> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
1 parent 9769f3c commit bf50a4d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+840
-1008
lines changed

.changeset/long-steaks-retire.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"eslint-plugin-import-x": patch
3+
---
4+
5+
chore(deps): bump `@typescript-eslint/utils` to v8.30

.eslintrc.cjs

+1-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@ const noEslintrc = +version.split('.')[0] > 8
66

77
const testCompiled = process.env.TEST_COMPILED === '1'
88

9-
/**
10-
* @type {import('eslint').Linter.Config}
11-
*/
9+
/** @type {import('eslint').Linter.Config} */
1210
module.exports = {
1311
root: true,
1412
reportUnusedDisableDirectives: true,

.github/workflows/autofix.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
2020

2121
- name: Setup Node.js LTS
22-
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4
22+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
2323
with:
2424
node-version: lts/*
2525
cache: yarn

.github/workflows/ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
3939

4040
- name: Setup Node.js ${{ matrix.node }}
41-
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4
41+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
4242
with:
4343
node-version: ${{ matrix.node }}
4444
cache: yarn
@@ -61,6 +61,6 @@ jobs:
6161
PARSER_NO_WATCH: true
6262

6363
- name: Codecov
64-
uses: codecov/codecov-action@0565863a31f2c772f9f0395002a31e3f06189574 # v5
64+
uses: codecov/codecov-action@ad3126e916f78f00edff4ed0317cf185271ccc2d # v5.4.2
6565
with:
6666
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/pkg-pr-new.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
1818

1919
- name: Setup Node.js LTS
20-
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4
20+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
2121
with:
2222
node-version: lts/*
2323
cache: yarn

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
fetch-depth: 0
2727

2828
- name: Setup Node.js LTS
29-
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4
29+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
3030
with:
3131
node-version: lts/*
3232
cache: yarn
File renamed without changes.

.yarn/releases/yarn-4.9.0.cjs renamed to .yarn/releases/yarn-4.9.1.cjs

+169-169
Large diffs are not rendered by default.

.yarnrc.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ plugins:
77
path: .yarn/plugins/plugin-prepare-lifecycle.cjs
88
spec: 'https://github.com/un-es/yarn-plugin-prepare-lifecycle/releases/download/v0.0.1/index.js'
99

10-
yarnPath: .yarn/releases/yarn-4.9.0.cjs
10+
yarnPath: .yarn/releases/yarn-4.9.1.cjs

babel.config.cjs

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
/**
2-
* @type {import('@babel/core').TransformOptions}
3-
*/
1+
/** @type {import('@babel/core').TransformOptions} */
42
module.exports = {
53
presets: [
64
[

docs/rules/no-deprecated.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@ using a JSDoc `@deprecated` tag:
1111
// @file: ./answer.js
1212

1313
/**
14-
* this is what you get when you trust a mouse talk show
15-
* @deprecated need to restart the experiment
16-
* @returns {Number} nonsense
14+
* This is what you get when you trust a mouse talk show
15+
*
16+
* @deprecated Need to restart the experiment
17+
* @returns {Number} Nonsense
1718
*/
1819
export function multiply(six, nine) {
1920
return 42

docs/rules/no-internal-modules.md

+4-12
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,7 @@ And the .eslintrc file:
4848
The following patterns are considered problems:
4949

5050
```js
51-
/**
52-
* in my-project/entry.js
53-
*/
51+
/** In my-project/entry.js */
5452

5553
import { settings } from './app/index' // Reaching to "./app/index" is not allowed
5654
import userReducer from './reducer/user' // Reaching to "./reducer/user" is not allowed
@@ -63,9 +61,7 @@ export * from './reducer/user' // Reaching to "./reducer/user" is not allowed
6361
The following patterns are NOT considered problems:
6462

6563
```js
66-
/**
67-
* in my-project/entry.js
68-
*/
64+
/** In my-project/entry.js */
6965

7066
import 'source-map-support/register'
7167
import { settings } from '../app'
@@ -110,9 +106,7 @@ And the .eslintrc file:
110106
The following patterns are considered problems:
111107

112108
```js
113-
/**
114-
* in my-project/entry.js
115-
*/
109+
/** In my-project/entry.js */
116110

117111
import 'source-map-support/register'
118112
import getUser from '../actions/getUser'
@@ -124,9 +118,7 @@ export getUser from '../actions/getUser'
124118
The following patterns are NOT considered problems:
125119

126120
```js
127-
/**
128-
* in my-project/entry.js
129-
*/
121+
/** In my-project/entry.js */
130122

131123
import 'source-map-support'
132124
import { getUser } from '../actions'

docs/rules/no-relative-packages.md

+4-12
Original file line numberDiff line numberDiff line change
@@ -38,32 +38,24 @@ And the .eslintrc file:
3838
The following patterns are considered problems:
3939

4040
```js
41-
/**
42-
* in my-project/packages/foo.js
43-
*/
41+
/** In my-project/packages/foo.js */
4442

4543
import bar from '../bar' // Import sibling package using relative path
4644
import entry from '../../entry.js' // Import from parent package using relative path
4745

48-
/**
49-
* in my-project/entry.js
50-
*/
46+
/** In my-project/entry.js */
5147

5248
import bar from './packages/bar' // Import child package using relative path
5349
```
5450

5551
The following patterns are NOT considered problems:
5652

5753
```js
58-
/**
59-
* in my-project/packages/foo.js
60-
*/
54+
/** In my-project/packages/foo.js */
6155

6256
import bar from 'bar' // Import sibling package using package name
6357

64-
/**
65-
* in my-project/entry.js
66-
*/
58+
/** In my-project/entry.js */
6759

6860
import bar from 'bar' // Import sibling package using package name
6961
```

docs/rules/no-relative-parent-imports.md

+3-9
Original file line numberDiff line numberDiff line change
@@ -98,26 +98,20 @@ And the .eslintrc file:
9898
The following patterns are considered problems:
9999

100100
```js
101-
/**
102-
* in my-project/lib/a.js
103-
*/
101+
/** In my-project/lib/a.js */
104102

105103
import bar from '../main' // Import parent file using a relative path
106104
```
107105

108106
The following patterns are NOT considered problems:
109107

110108
```js
111-
/**
112-
* in my-project/main.js
113-
*/
109+
/** In my-project/main.js */
114110

115111
import foo from 'foo' // Import package using module path
116112
import a from './lib/a' // Import child file using relative path
117113

118-
/**
119-
* in my-project/lib/a.js
120-
*/
114+
/** In my-project/lib/a.js */
121115

122116
import b from './b' // Import sibling file using relative path
123117
```

docs/rules/no-useless-path-segments.md

+2-6
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@ my-project
2828
The following patterns are considered problems:
2929

3030
```js
31-
/**
32-
* in my-project/app.js
33-
*/
31+
/** In my-project/app.js */
3432

3533
import './../my-project/pages/about.js' // should be "./pages/about.js"
3634
import './../my-project/pages/about' // should be "./pages/about"
@@ -45,9 +43,7 @@ import './pages/index.js' // should be "./pages" (except if there is a ./pages.j
4543
The following patterns are NOT considered problems:
4644

4745
```js
48-
/**
49-
* in my-project/app.js
50-
*/
46+
/** In my-project/app.js */
5147

5248
import './header.js'
5349
import './pages'

package.json

+17-17
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"author": "JounQin <[email protected]> (https://www.1stG.me)",
88
"funding": "https://opencollective.com/eslint-plugin-import-x",
99
"license": "MIT",
10-
"packageManager": "[email protected].0",
10+
"packageManager": "[email protected].1",
1111
"engines": {
1212
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
1313
},
@@ -71,9 +71,9 @@
7171
"eslint": "^8.57.0 || ^9.0.0"
7272
},
7373
"dependencies": {
74-
"@pkgr/core": "^0.2.2",
74+
"@pkgr/core": "^0.2.3",
7575
"@types/doctrine": "^0.0.9",
76-
"@typescript-eslint/utils": "^8.29.1",
76+
"@typescript-eslint/utils": "^8.30.1",
7777
"debug": "^4.4.0",
7878
"doctrine": "^3.0.0",
7979
"eslint-import-resolver-node": "^0.3.9",
@@ -86,12 +86,12 @@
8686
"unrs-resolver": "^1.5.0"
8787
},
8888
"devDependencies": {
89-
"@1stg/commitlint-config": "^5.0.4",
90-
"@1stg/lint-staged": "^4.0.8",
91-
"@1stg/prettier-config": "^5.0.0",
92-
"@1stg/remark-preset": "^3.0.3",
93-
"@1stg/simple-git-hooks": "^1.0.2",
94-
"@1stg/tsconfig": "^3.0.2",
89+
"@1stg/commitlint-config": "^5.0.6",
90+
"@1stg/lint-staged": "^4.0.9",
91+
"@1stg/prettier-config": "^5.1.3",
92+
"@1stg/remark-preset": "^3.1.1",
93+
"@1stg/simple-git-hooks": "^2.0.1",
94+
"@1stg/tsconfig": "^3.0.3",
9595
"@angular-eslint/template-parser": "^19.3.0",
9696
"@babel/core": "^7.26.10",
9797
"@babel/eslint-parser": "^7.27.0",
@@ -103,13 +103,13 @@
103103
"@babel/preset-typescript": "^7.27.0",
104104
"@babel/register": "^7.25.9",
105105
"@changesets/changelog-github": "^0.5.1",
106-
"@changesets/cli": "^2.28.1",
106+
"@changesets/cli": "^2.29.0",
107107
"@commitlint/cli": "^19.8.0",
108108
"@eslint/import-test-order-redirect-scoped": "link:./test/fixtures/order-redirect-scoped",
109109
"@eslint/js": "^9.24.0",
110-
"@pkgr/rollup": "^6.0.2",
110+
"@pkgr/rollup": "^6.0.3",
111111
"@swc-node/jest": "^1.8.13",
112-
"@swc/core": "^1.11.20",
112+
"@swc/core": "^1.11.21",
113113
"@swc/helpers": "^0.5.17",
114114
"@test-scope/some-module": "link:./test/fixtures/symlinked-module",
115115
"@total-typescript/ts-reset": "^0.6.1",
@@ -122,9 +122,9 @@
122122
"@types/klaw-sync": "^6.0.5",
123123
"@types/node": "^22.14.1",
124124
"@types/pnpapi": "^0.0.5",
125-
"@typescript-eslint/eslint-plugin": "^8.29.1",
126-
"@typescript-eslint/parser": "^8.29.1",
127-
"@typescript-eslint/rule-tester": "^8.29.1",
125+
"@typescript-eslint/eslint-plugin": "^8.30.1",
126+
"@typescript-eslint/parser": "^8.30.1",
127+
"@typescript-eslint/rule-tester": "^8.30.1",
128128
"@unts/patch-package": "^8.1.1",
129129
"clean-pkg-json": "^1.2.1",
130130
"eslint": "^9.24.0",
@@ -148,7 +148,7 @@
148148
"hermes-eslint": "^0.28.0",
149149
"jest": "^30.0.0-alpha.7",
150150
"klaw-sync": "^7.0.0",
151-
"lint-staged": "^15.5.1",
151+
"nano-staged": "^0.8.0",
152152
"npm-run-all2": "^7.0.2",
153153
"path-serializer": "^0.3.4",
154154
"prettier": "^3.5.3",
@@ -159,7 +159,7 @@
159159
"ts-node": "^10.9.2",
160160
"type-fest": "^4.39.1",
161161
"typescript": "^5.8.3",
162-
"typescript-eslint": "^8.29.1",
162+
"typescript-eslint": "^8.30.1",
163163
"yarn-berry-deduplicate": "^6.1.1",
164164
"zod": "^3.24.2"
165165
},

src/config/electron.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import type { PluginConfig } from '../types.js'
22

3-
/**
4-
* Default settings for Electron applications.
5-
*/
3+
/** Default settings for Electron applications. */
64
export default {
75
settings: {
86
'import-x/core-modules': ['electron'],

src/config/errors.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { PluginConfig } from '../types.js'
22

33
/**
4-
* unopinionated config. just the things that are necessarily runtime errors
4+
* Unopinionated config. just the things that are necessarily runtime errors
55
* waiting to happen.
66
*/
77
export default {

src/config/flat/electron.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import type { PluginFlatConfig } from '../../types.js'
22

3-
/**
4-
* Default settings for Electron applications.
5-
*/
3+
/** Default settings for Electron applications. */
64
export default {
75
settings: {
86
'import-x/core-modules': ['electron'],

src/config/flat/errors.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { PluginFlatConfig } from '../../types.js'
22

33
/**
4-
* unopinionated config. just the things that are necessarily runtime errors
4+
* Unopinionated config. just the things that are necessarily runtime errors
55
* waiting to happen.
66
*/
77
export default {

src/config/flat/react-native.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import type { PluginFlatBaseConfig } from '../../types.js'
22

3-
/**
4-
* adds platform extensions to Node resolver
5-
*/
3+
/** Adds platform extensions to Node resolver */
64
export default {
75
settings: {
86
'import-x/resolver': {

src/config/flat/react.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import type { PluginFlatBaseConfig } from '../../types.js'
44
* Adds `.jsx` as an extension, and enables JSX parsing.
55
*
66
* Even if _you_ aren't using JSX (or .jsx) directly, if your dependencies
7-
* define jsnext:main and have JSX internally, you may run into problems
8-
* if you don't enable these settings at the top level.
7+
* define jsnext:main and have JSX internally, you may run into problems if you
8+
* don't enable these settings at the top level.
99
*/
1010
export default {
1111
settings: {

src/config/flat/recommended.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import type { PluginFlatBaseConfig } from '../../types.js'
22

3-
/**
4-
* The basics.
5-
*/
3+
/** The basics. */
64
export default {
75
rules: {
86
// analysis/correctness

src/config/flat/typescript.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ import type { PluginFlatBaseConfig } from '../../types.js'
22

33
/**
44
* This config:
5-
* 1) adds `.jsx`, `.ts`, `.cts`, `.mts`, and `.tsx` as an extension
6-
* 2) enables JSX/TSX parsing
5+
*
6+
* 1. Adds `.jsx`, `.ts`, `.cts`, `.mts`, and `.tsx` as an extension
7+
* 2. Enables JSX/TSX parsing
78
*/
89

910
// Omit `.d.ts` because 1) TypeScript compilation already confirms that

0 commit comments

Comments
 (0)