Skip to content

Commit 2ff9907

Browse files
committed
Fix exported types not working with ESLint import/named
A bug in eslint-plugin-import cauess ESLint to error when trying to import exported TypeScript types. Upgrading to version 2.17 fixes this. See import-js/eslint-plugin-import#1282
1 parent f1dadf6 commit 2ff9907

File tree

2 files changed

+42
-8
lines changed

2 files changed

+42
-8
lines changed

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@
6969
"concurrently": "^4.1.0",
7070
"cross-env": "^5.2.0",
7171
"eslint": "^5.8.0",
72+
"eslint-plugin-import": "^2.17.2",
7273
"eslint-plugin-vue": "^5.0.0",
7374
"imports-loader": "^0.8.0",
7475
"lint-staged": "^7.2.0",

yarn.lock

+41-8
Original file line numberDiff line numberDiff line change
@@ -1754,6 +1754,14 @@ array-from@^2.1.1:
17541754
resolved "https://registry.yarnpkg.com/array-from/-/array-from-2.1.1.tgz#cfe9d8c26628b9dc5aecc62a9f5d8f1f352c1195"
17551755
integrity sha1-z+nYwmYoudxa7MYqn12PHzUsEZU=
17561756

1757+
array-includes@^3.0.3:
1758+
version "3.0.3"
1759+
resolved "https://registry.yarnpkg.com/array-includes/-/array-includes-3.0.3.tgz#184b48f62d92d7452bb31b323165c7f8bd02266d"
1760+
integrity sha1-GEtI9i2S10UrsxsyMWXH+L0CJm0=
1761+
dependencies:
1762+
define-properties "^1.1.2"
1763+
es-abstract "^1.7.0"
1764+
17571765
array-map@~0.0.0:
17581766
version "0.0.0"
17591767
resolved "https://registry.yarnpkg.com/array-map/-/array-map-0.0.0.tgz#88a2bab73d1cf7bcd5c1b118a003f66f665fa662"
@@ -3975,7 +3983,7 @@ error-stack-parser@^2.0.0:
39753983
dependencies:
39763984
stackframe "^1.0.4"
39773985

3978-
es-abstract@^1.12.0:
3986+
es-abstract@^1.12.0, es-abstract@^1.7.0:
39793987
version "1.13.0"
39803988
resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.13.0.tgz#ac86145fdd5099d8dd49558ccba2eaf9b88e24e9"
39813989
integrity sha512-vDZfg/ykNxQVwup/8E1BZhVzFfBxs9NqMzGcvIJrqg5k2/5Za2bWo40dK2J1pgLngZ7c+Shh8lwYtLGyrwPutg==
@@ -4092,6 +4100,14 @@ eslint-module-utils@^2.3.0:
40924100
debug "^2.6.8"
40934101
pkg-dir "^2.0.0"
40944102

4103+
eslint-module-utils@^2.4.0:
4104+
version "2.4.0"
4105+
resolved "https://registry.yarnpkg.com/eslint-module-utils/-/eslint-module-utils-2.4.0.tgz#8b93499e9b00eab80ccb6614e69f03678e84e09a"
4106+
integrity sha512-14tltLm38Eu3zS+mt0KvILC3q8jyIAH518MlG+HO0p+yK885Lb1UHTY/UgR91eOyGdmxAPb+OLoW4znqIT6Ndw==
4107+
dependencies:
4108+
debug "^2.6.8"
4109+
pkg-dir "^2.0.0"
4110+
40954111
eslint-plugin-import@^2.14.0:
40964112
version "2.16.0"
40974113
resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.16.0.tgz#97ac3e75d0791c4fac0e15ef388510217be7f66f"
@@ -4108,6 +4124,23 @@ eslint-plugin-import@^2.14.0:
41084124
read-pkg-up "^2.0.0"
41094125
resolve "^1.9.0"
41104126

4127+
eslint-plugin-import@^2.17.2:
4128+
version "2.17.2"
4129+
resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.17.2.tgz#d227d5c6dc67eca71eb590d2bb62fb38d86e9fcb"
4130+
integrity sha512-m+cSVxM7oLsIpmwNn2WXTJoReOF9f/CtLMo7qOVmKd1KntBy0hEcuNZ3erTmWjx+DxRO0Zcrm5KwAvI9wHcV5g==
4131+
dependencies:
4132+
array-includes "^3.0.3"
4133+
contains-path "^0.1.0"
4134+
debug "^2.6.9"
4135+
doctrine "1.5.0"
4136+
eslint-import-resolver-node "^0.3.2"
4137+
eslint-module-utils "^2.4.0"
4138+
has "^1.0.3"
4139+
lodash "^4.17.11"
4140+
minimatch "^3.0.4"
4141+
read-pkg-up "^2.0.0"
4142+
resolve "^1.10.0"
4143+
41114144
eslint-plugin-vue@^4.7.1:
41124145
version "4.7.1"
41134146
resolved "https://registry.yarnpkg.com/eslint-plugin-vue/-/eslint-plugin-vue-4.7.1.tgz#c829b9fc62582c1897b5a0b94afd44ecca511e63"
@@ -9510,19 +9543,19 @@ [email protected]:
95109543
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.1.7.tgz#203114d82ad2c5ed9e8e0411b3932875e889e97b"
95119544
integrity sha1-IDEU2CrSxe2ejgQRs5ModeiJ6Xs=
95129545

9513-
resolve@^1.3.2, resolve@^1.4.0, resolve@^1.5.0:
9514-
version "1.8.1"
9515-
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.8.1.tgz#82f1ec19a423ac1fbd080b0bab06ba36e84a7a26"
9516-
dependencies:
9517-
path-parse "^1.0.5"
9518-
9519-
resolve@^1.8.1, resolve@^1.9.0:
9546+
resolve@^1.10.0, resolve@^1.8.1, resolve@^1.9.0:
95209547
version "1.10.0"
95219548
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.10.0.tgz#3bdaaeaf45cc07f375656dfd2e54ed0810b101ba"
95229549
integrity sha512-3sUr9aq5OfSg2S9pNtPA9hL1FVEAjvfOC4leW0SNf/mpnaakz2a9femSd6LqAww2RaFctwyf1lCqnTHuF1rxDg==
95239550
dependencies:
95249551
path-parse "^1.0.6"
95259552

9553+
resolve@^1.3.2, resolve@^1.4.0, resolve@^1.5.0:
9554+
version "1.8.1"
9555+
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.8.1.tgz#82f1ec19a423ac1fbd080b0bab06ba36e84a7a26"
9556+
dependencies:
9557+
path-parse "^1.0.5"
9558+
95269559
restore-cursor@^1.0.1:
95279560
version "1.0.1"
95289561
resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-1.0.1.tgz#34661f46886327fed2991479152252df92daa541"

0 commit comments

Comments
 (0)