-
Notifications
You must be signed in to change notification settings - Fork 47.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(eslint-plugin-react-hooks): change array type and improve co…
…nditionals (#32400) - [build(eslint-plugin-react-hooks): add ts-linting](4c0fbe7) This change adds configuration to the eslint config governing `eslint-plugin-react-hooks` to use the typescript-eslint plugin and parser. It adds the typescript-recommended config, and configures the team's preferred `array-type` convention. - [refactor(eslint-plugin-react-hooks): improve conditionals](540d0d9) This change addresses several feedback items from #32240 - [ci (eslint-e2e): exclude nested node_modules from cache](a3279f4) This change removes the nested fixture `node_modules` from being cached, so that the symbolic link can be made after the build happens.
- Loading branch information
1 parent
eb1f77d
commit 4632e36
Showing
6 changed files
with
97 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2410,6 +2410,11 @@ | |
dependencies: | ||
eslint-visitor-keys "^3.3.0" | ||
|
||
"@eslint-community/regexpp@^4.5.1": | ||
version "4.12.1" | ||
resolved "https://registry.yarnpkg.com/@eslint-community/regexpp/-/regexpp-4.12.1.tgz#cfc6cffe39df390a3841cde2abccf92eaa7ae0e0" | ||
integrity sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ== | ||
|
||
"@eslint-community/regexpp@^4.6.1": | ||
version "4.10.0" | ||
resolved "https://registry.yarnpkg.com/@eslint-community/regexpp/-/regexpp-4.10.0.tgz#548f6de556857c8bb73bbee70c35dc82a2e74d63" | ||
|
@@ -3718,6 +3723,23 @@ | |
dependencies: | ||
"@types/node" "*" | ||
|
||
"@typescript-eslint/eslint-plugin@^6.21.0": | ||
version "6.21.0" | ||
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.21.0.tgz#30830c1ca81fd5f3c2714e524c4303e0194f9cd3" | ||
integrity sha512-oy9+hTPCUFpngkEZUSzbf9MxI65wbKFoQYsgPdILTfbUldp5ovUuphZVe4i30emU9M/kP+T64Di0mxl7dSw3MA== | ||
dependencies: | ||
"@eslint-community/regexpp" "^4.5.1" | ||
"@typescript-eslint/scope-manager" "6.21.0" | ||
"@typescript-eslint/type-utils" "6.21.0" | ||
"@typescript-eslint/utils" "6.21.0" | ||
"@typescript-eslint/visitor-keys" "6.21.0" | ||
debug "^4.3.4" | ||
graphemer "^1.4.0" | ||
ignore "^5.2.4" | ||
natural-compare "^1.4.0" | ||
semver "^7.5.4" | ||
ts-api-utils "^1.0.1" | ||
|
||
"@typescript-eslint/[email protected]": | ||
version "2.34.0" | ||
resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-2.34.0.tgz#d3524b644cdb40eebceca67f8cf3e4cc9c8f980f" | ||
|
@@ -3780,6 +3802,17 @@ | |
"@typescript-eslint/typescript-estree" "5.62.0" | ||
debug "^4.3.4" | ||
|
||
"@typescript-eslint/parser@^6.21.0": | ||
version "6.21.0" | ||
resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-6.21.0.tgz#af8fcf66feee2edc86bc5d1cf45e33b0630bf35b" | ||
integrity sha512-tbsV1jPne5CkFQCgPBcDOt30ItF7aJoZL997JSF7MhGQqOeT3svWRYxiqlfA5RUdlHN6Fi+EI9bxqbdyAUZjYQ== | ||
dependencies: | ||
"@typescript-eslint/scope-manager" "6.21.0" | ||
"@typescript-eslint/types" "6.21.0" | ||
"@typescript-eslint/typescript-estree" "6.21.0" | ||
"@typescript-eslint/visitor-keys" "6.21.0" | ||
debug "^4.3.4" | ||
|
||
"@typescript-eslint/[email protected]": | ||
version "4.1.0" | ||
resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-4.1.0.tgz#9e389745ee9cfe12252ed1e9958808abd6b3a683" | ||
|
@@ -3804,6 +3837,16 @@ | |
"@typescript-eslint/types" "6.21.0" | ||
"@typescript-eslint/visitor-keys" "6.21.0" | ||
|
||
"@typescript-eslint/[email protected]": | ||
version "6.21.0" | ||
resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-6.21.0.tgz#6473281cfed4dacabe8004e8521cee0bd9d4c01e" | ||
integrity sha512-rZQI7wHfao8qMX3Rd3xqeYSMCL3SoiSQLBATSiVKARdFGCYSRvmViieZjqc58jKgs8Y8i9YvVVhRbHSTA4VBag== | ||
dependencies: | ||
"@typescript-eslint/typescript-estree" "6.21.0" | ||
"@typescript-eslint/utils" "6.21.0" | ||
debug "^4.3.4" | ||
ts-api-utils "^1.0.1" | ||
|
||
"@typescript-eslint/[email protected]": | ||
version "3.10.1" | ||
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-3.10.1.tgz#1d7463fa7c32d8a23ab508a803ca2fe26e758727" | ||
|
@@ -3892,7 +3935,7 @@ | |
semver "^7.5.4" | ||
ts-api-utils "^1.0.1" | ||
|
||
"@typescript-eslint/utils@^6.0.0": | ||
"@typescript-eslint/utils@6.21.0", "@typescript-eslint/utils@^6.0.0": | ||
version "6.21.0" | ||
resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-6.21.0.tgz#4714e7a6b39e773c1c8e97ec587f520840cd8134" | ||
integrity sha512-NfWVaC8HP9T8cbKQxHcsJBY5YE1O33+jpMwN45qzWWaPDZgLIbo12toGMWnmhvCpd3sIxkpDw3Wv1B3dYrbDQQ== | ||
|
@@ -9799,6 +9842,11 @@ ignore@^5.2.0: | |
resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.3.1.tgz#5073e554cd42c5b33b394375f538b8593e34d4ef" | ||
integrity sha512-5Fytz/IraMjqpwfd34ke28PTVMjZjJG2MPn5t7OE4eUCUNf8BAa7b5WUS9/Qvr6mwOQS7Mk6vdsMno5he+T8Xw== | ||
|
||
ignore@^5.2.4: | ||
version "5.3.2" | ||
resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.3.2.tgz#3cd40e729f3643fd87cb04e50bf0eb722bc596f5" | ||
integrity sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g== | ||
|
||
[email protected]: | ||
version "1.1.1" | ||
resolved "https://registry.yarnpkg.com/image-size/-/image-size-1.1.1.tgz#ddd67d4dc340e52ac29ce5f546a09f4e29e840ac" | ||
|