@eslint-react/jsx 0.8.8-beta.7 → 0.8.8

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.
@@ -831,6 +831,7 @@ function getExternalRefs(params) {
831
831
  */ function getVariablesUpToGlobal(startScope) {
832
832
  const scopeRef = tools.MutRef.make(startScope);
833
833
  const variablesRef = tools.MutRef.make(tools.MutRef.get(scopeRef).variables);
834
+ // eslint-disable-next-line functional/no-loop-statements
834
835
  while(tools.MutRef.get(scopeRef).type !== scopeManager.ScopeType.global){
835
836
  tools.MutRef.set(scopeRef, tools.MutRef.get(scopeRef).upper);
836
837
  tools.MutRef.update(variablesRef, (variables)=>variables.concat(tools.MutRef.get(scopeRef).variables));
@@ -831,6 +831,7 @@ function getExternalRefs(params) {
831
831
  */ function getVariablesUpToGlobal(startScope) {
832
832
  const scopeRef = tools.MutRef.make(startScope);
833
833
  const variablesRef = tools.MutRef.make(tools.MutRef.get(scopeRef).variables);
834
+ // eslint-disable-next-line functional/no-loop-statements
834
835
  while(tools.MutRef.get(scopeRef).type !== scopeManager.ScopeType.global){
835
836
  tools.MutRef.set(scopeRef, tools.MutRef.get(scopeRef).upper);
836
837
  tools.MutRef.update(variablesRef, (variables)=>variables.concat(tools.MutRef.get(scopeRef).variables));
@@ -810,6 +810,7 @@ function getExternalRefs(params) {
810
810
  */ function getVariablesUpToGlobal(startScope) {
811
811
  const scopeRef = MutRef.make(startScope);
812
812
  const variablesRef = MutRef.make(MutRef.get(scopeRef).variables);
813
+ // eslint-disable-next-line functional/no-loop-statements
813
814
  while(MutRef.get(scopeRef).type !== ScopeType.global){
814
815
  MutRef.set(scopeRef, MutRef.get(scopeRef).upper);
815
816
  MutRef.update(variablesRef, (variables)=>variables.concat(MutRef.get(scopeRef).variables));
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint-react/ast",
3
- "version": "0.8.8-beta.7",
3
+ "version": "0.8.8",
4
4
  "description": "ESLint x React's TSESTree AST primitive utility module.",
5
5
  "homepage": "https://github.com/rel1cx/eslint-react",
6
6
  "bugs": {
@@ -9117,7 +9117,7 @@ var effectData_esm = /*#__PURE__*/Object.freeze({
9117
9117
  * @since 0.0.1
9118
9118
  */ const asConst = (a)=>a;
9119
9119
 
9120
- /**
9120
+ /* eslint-disable functional/prefer-immutable-types */ /**
9121
9121
  * Infers embedded primitive type of any type
9122
9122
  * @since 0.0.1
9123
9123
  * @param T Type to infer
@@ -35,7 +35,7 @@ type ArrayElement<A> = A extends readonly (infer T)[] ? T : never;
35
35
  * @param fn The function to get the value to compare.
36
36
  * @returns new array with unique values.
37
37
  */
38
- declare function uniqueBy<T>(arr: T[], fn: (x: T) => unknown): T[];
38
+ declare function uniqueBy<T>(arr: readonly T[], fn: (x: T) => unknown): T[];
39
39
 
40
40
  /**
41
41
  * @since 0.0.1
@@ -35,7 +35,7 @@ type ArrayElement<A> = A extends readonly (infer T)[] ? T : never;
35
35
  * @param fn The function to get the value to compare.
36
36
  * @returns new array with unique values.
37
37
  */
38
- declare function uniqueBy<T>(arr: T[], fn: (x: T) => unknown): T[];
38
+ declare function uniqueBy<T>(arr: readonly T[], fn: (x: T) => unknown): T[];
39
39
 
40
40
  /**
41
41
  * @since 0.0.1
@@ -9117,7 +9117,7 @@ var effectData_esm = /*#__PURE__*/Object.freeze({
9117
9117
  * @since 0.0.1
9118
9118
  */ const asConst = (a)=>a;
9119
9119
 
9120
- /**
9120
+ /* eslint-disable functional/prefer-immutable-types */ /**
9121
9121
  * Infers embedded primitive type of any type
9122
9122
  * @since 0.0.1
9123
9123
  * @param T Type to infer
@@ -9115,7 +9115,7 @@ var effectData_esm = /*#__PURE__*/Object.freeze({
9115
9115
  * @since 0.0.1
9116
9116
  */ const asConst = (a)=>a;
9117
9117
 
9118
- /**
9118
+ /* eslint-disable functional/prefer-immutable-types */ /**
9119
9119
  * Infers embedded primitive type of any type
9120
9120
  * @since 0.0.1
9121
9121
  * @param T Type to infer
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint-react/tools",
3
- "version": "0.8.8-beta.7",
3
+ "version": "0.8.8",
4
4
  "description": "ESLint x React's std library and primitives.",
5
5
  "homepage": "https://github.com/rel1cx/eslint-react",
6
6
  "bugs": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint-react/types",
3
- "version": "0.8.8-beta.7",
3
+ "version": "0.8.8",
4
4
  "description": "ESLint x React's type definitions.",
5
5
  "homepage": "https://github.com/rel1cx/eslint-react",
6
6
  "bugs": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint-react/jsx",
3
- "version": "0.8.8-beta.7",
3
+ "version": "0.8.8",
4
4
  "description": "ESLint x React's TSESTree AST utility module for static analysis of JSX.",
5
5
  "homepage": "https://github.com/rel1cx/eslint-react",
6
6
  "bugs": {
@@ -40,9 +40,9 @@
40
40
  },
41
41
  "devDependencies": {
42
42
  "micro-memoize": "4.1.2",
43
- "@eslint-react/ast": "0.8.8-beta.7",
44
- "@eslint-react/tools": "0.8.8-beta.7",
45
- "@eslint-react/types": "0.8.8-beta.7"
43
+ "@eslint-react/ast": "0.8.8",
44
+ "@eslint-react/tools": "0.8.8",
45
+ "@eslint-react/types": "0.8.8"
46
46
  },
47
47
  "bundleDependencies": [
48
48
  "@eslint-react/ast",