Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

chore: replace 'eslint-plugin-import' (#2957)

Alex Yang33097382c6b2
diff --git a/.eslintrc.js b/.eslintrc.js
index 0d9eb8072b..e623a6fb21 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -83,7 +83,7 @@ const config = {
'@typescript-eslint',
'simple-import-sort',
'sonarjs',
- 'import',
+ 'i',
'unused-imports',
'unicorn',
],
diff --git a/package.json b/package.json
index f99aaf50f2..1ad52bc92a 100644
--- a/package.json
+++ b/package.json
@@ -71,7 +71,7 @@
"@vitest/ui": "^0.32.2",
"eslint": "^8.44.0",
"eslint-config-prettier": "^8.8.0",
- "eslint-plugin-import": "^2.27.5",
+ "eslint-plugin-i": "^2.27.5-3",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.6.0",
diff --git a/yarn.lock b/yarn.lock
index 961ef1576d..9bedbd56d0 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -354,7 +354,7 @@ __metadata:
"@vitest/ui": ^0.32.2
eslint: ^8.44.0
eslint-config-prettier: ^8.8.0
- eslint-plugin-import: ^2.27.5
+ eslint-plugin-i: ^2.27.5-3
eslint-plugin-prettier: ^4.2.1
eslint-plugin-react: ^7.32.2
eslint-plugin-react-hooks: ^4.6.0
@@ -18199,7 +18199,32 @@ __metadata:
languageName: node
linkType: hard
-"eslint-plugin-import@npm:^2.26.0, eslint-plugin-import@npm:^2.27.5":
+"eslint-plugin-i@npm:^2.27.5-3":
+ version: 2.27.5
+ resolution: "eslint-plugin-i@npm:2.27.5"
+ dependencies:
+ array-includes: ^3.1.6
+ array.prototype.flat: ^1.3.1
+ array.prototype.flatmap: ^1.3.1
+ debug: ^3.2.7
+ doctrine: ^2.1.0
+ eslint-import-resolver-node: ^0.3.7
+ eslint-module-utils: ^2.7.4
+ get-tsconfig: ^4.2.0
+ has: ^1.0.3
+ is-core-module: ^2.11.0
+ is-glob: ^4.0.3
+ minimatch: ^3.1.2
+ object.values: ^1.1.6
+ resolve: ^1.22.1
+ semver: ^6.3.0
+ peerDependencies:
+ eslint: ^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8
+ checksum: 64b0c6400be15709ed87eab2af7f67569adead44420c994634efe3e2f31794d9fd81ddfcbce5dc7174621d789234f57583025a9852e377c62002053cc0ee4066
+ languageName: node
+ linkType: hard
+
+"eslint-plugin-import@npm:^2.26.0":
version: 2.27.5
resolution: "eslint-plugin-import@npm:2.27.5"
dependencies:
@@ -19879,6 +19904,15 @@ __metadata:
languageName: node
linkType: hard
+"get-tsconfig@npm:^4.2.0":
+ version: 4.6.2
+ resolution: "get-tsconfig@npm:4.6.2"
+ dependencies:
+ resolve-pkg-maps: ^1.0.0
+ checksum: e791e671a9b55e91efea3ca819ecd7a25beae679e31c83234bf3dd62ddd93df070c1b95ae7e29d206358ebb6408f6f79ac6d83a32a3bbd6a6d217babe23de077
+ languageName: node
+ linkType: hard
+
"get-tsconfig@npm:^4.5.0":
version: 4.6.0
resolution: "get-tsconfig@npm:4.6.0"