@eslint-react/core 5.3.3-beta.1 → 5.3.3-beta.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.
- package/dist/index.js +3 -3
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -385,7 +385,7 @@ function isAssignmentToThisState(node) {
|
|
|
385
385
|
*/
|
|
386
386
|
function getClassComponentCollector(context) {
|
|
387
387
|
const components = /* @__PURE__ */ new Map();
|
|
388
|
-
const api = { getAllComponents(
|
|
388
|
+
const api = { getAllComponents(_) {
|
|
389
389
|
return [...components.values()];
|
|
390
390
|
} };
|
|
391
391
|
const getText = (n) => context.sourceCode.getText(n);
|
|
@@ -884,7 +884,7 @@ function getFunctionComponentCollector(context, options = {}) {
|
|
|
884
884
|
return functionEntries.pop();
|
|
885
885
|
};
|
|
886
886
|
return {
|
|
887
|
-
api: { getAllComponents(
|
|
887
|
+
api: { getAllComponents(_) {
|
|
888
888
|
return [...components.values()];
|
|
889
889
|
} },
|
|
890
890
|
visitor: {
|
|
@@ -965,7 +965,7 @@ function getHookCollector(context) {
|
|
|
965
965
|
functionEntries.pop();
|
|
966
966
|
};
|
|
967
967
|
return {
|
|
968
|
-
api: { getAllHooks(
|
|
968
|
+
api: { getAllHooks(_) {
|
|
969
969
|
return [...hooks.values()];
|
|
970
970
|
} },
|
|
971
971
|
visitor: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/core",
|
|
3
|
-
"version": "5.3.3-beta.
|
|
3
|
+
"version": "5.3.3-beta.2",
|
|
4
4
|
"description": "ESLint React's ESLint utility module for static analysis of React core APIs and patterns.",
|
|
5
5
|
"homepage": "https://github.com/Rel1cx/eslint-react",
|
|
6
6
|
"bugs": {
|
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
"@typescript-eslint/types": "^8.59.0",
|
|
35
35
|
"@typescript-eslint/utils": "^8.59.0",
|
|
36
36
|
"ts-pattern": "^5.9.0",
|
|
37
|
-
"@eslint-react/ast": "5.3.3-beta.
|
|
38
|
-
"@eslint-react/eslint": "5.3.3-beta.
|
|
39
|
-
"@eslint-react/jsx": "5.3.3-beta.
|
|
40
|
-
"@eslint-react/shared": "5.3.3-beta.
|
|
41
|
-
"@eslint-react/var": "5.3.3-beta.
|
|
37
|
+
"@eslint-react/ast": "5.3.3-beta.2",
|
|
38
|
+
"@eslint-react/eslint": "5.3.3-beta.2",
|
|
39
|
+
"@eslint-react/jsx": "5.3.3-beta.2",
|
|
40
|
+
"@eslint-react/shared": "5.3.3-beta.2",
|
|
41
|
+
"@eslint-react/var": "5.3.3-beta.2"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@typescript-eslint/typescript-estree": "^8.59.0",
|