@eslint-react/jsx 0.8.6-beta.3 → 0.8.6-beta.6

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.
@@ -638,10 +638,10 @@ const isParenthesized = eslintUtils__namespace.isParenthesized;
638
638
  }, (x)=>x.id).with({
639
639
  type: NodeType.ClassExpression,
640
640
  parent: {
641
- type: NodeType.VariableDeclarator,
642
641
  id: {
643
642
  type: NodeType.Identifier
644
- }
643
+ },
644
+ type: NodeType.VariableDeclarator
645
645
  }
646
646
  }, (x)=>x.parent.id).otherwise(()=>null);
647
647
  }
@@ -638,10 +638,10 @@ const isParenthesized = eslintUtils__namespace.isParenthesized;
638
638
  }, (x)=>x.id).with({
639
639
  type: NodeType.ClassExpression,
640
640
  parent: {
641
- type: NodeType.VariableDeclarator,
642
641
  id: {
643
642
  type: NodeType.Identifier
644
- }
643
+ },
644
+ type: NodeType.VariableDeclarator
645
645
  }
646
646
  }, (x)=>x.parent.id).otherwise(()=>null);
647
647
  }
@@ -617,10 +617,10 @@ const isParenthesized = eslintUtils.isParenthesized;
617
617
  }, (x)=>x.id).with({
618
618
  type: NodeType.ClassExpression,
619
619
  parent: {
620
- type: NodeType.VariableDeclarator,
621
620
  id: {
622
621
  type: NodeType.Identifier
623
- }
622
+ },
623
+ type: NodeType.VariableDeclarator
624
624
  }
625
625
  }, (x)=>x.parent.id).otherwise(()=>null);
626
626
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint-react/ast",
3
- "version": "0.8.6-beta.3",
3
+ "version": "0.8.6-beta.6",
4
4
  "description": "TSESTree AST primitive utility module.",
5
5
  "homepage": "https://github.com/rel1cx/eslint-react",
6
6
  "bugs": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint-react/tools",
3
- "version": "0.8.6-beta.3",
3
+ "version": "0.8.6-beta.6",
4
4
  "description": "Std library and primitives for @eslint-react packages.",
5
5
  "homepage": "https://github.com/rel1cx/eslint-react",
6
6
  "bugs": {
@@ -57,7 +57,7 @@ type NegativeDescriptive = "complicated" | "confusing" | "constructed" | "duplic
57
57
  type PositiveDescriptive = "explicit" | "optimal" | "optimized" | "standard" | "strict";
58
58
  type NeutralDescriptive = "access" | "calling" | "inside" | "outside";
59
59
  type Descriptive = NegativeDescriptive | NeutralDescriptive | PositiveDescriptive;
60
- type Term = "argument" | "array" | "array-index" | "arrow-function" | "attribute" | "callback" | "children" | "class" | "class-component" | "class-method" | "class-property" | "clone-element" | "comment" | "component" | "components" | "computed" | "computed-property" | "conditional-rendering" | "const" | "constant" | "constructor" | "context" | "context-consumer" | "context-provider" | "context-value" | "create-ref" | "custom-hooks" | "default-props" | "deps" | "destructuring" | "destructuring-assignment" | "direct-mutation" | "display-name" | "document" | "effect" | "element" | "error" | "event" | "event-handler" | "exhaustive-deps" | "expression" | "false" | "filename" | "forward-ref" | "fragment" | "function" | "function-component" | "function-name" | "global" | "handler" | "hook" | "html" | "id" | "index" | "input" | "key" | "literal" | "map" | "memo" | "memoized-function" | "method" | "name" | "namespace" | "node" | "parameter" | "prop" | "ref" | "render" | "return" | "spread" | "state" | "string" | "string-refs" | "style" | "textnodes" | "use-callback" | "use-context" | "use-effect" | "use-imperative-handle" | "use-layout-effect" | "use-memo" | "use-reducer" | "use-ref" | "use-state" | "value" | "variable";
60
+ type Term = "argument" | "array" | "array-index" | "arrow-function" | "attribute" | "callback" | "children" | "class" | "class-component" | "class-method" | "class-property" | "clone-element" | "comment" | "component" | "components" | "computed" | "computed-property" | "conditional-rendering" | "const" | "constant" | "constructor" | "context" | "context-consumer" | "context-provider" | "context-value" | "create-ref" | "custom-hooks" | "default-props" | "deps" | "destructuring" | "destructuring-assignment" | "direct-mutation" | "display-name" | "document" | "effect" | "element" | "error" | "event" | "event-handler" | "exhaustive-deps" | "expression" | "false" | "filename" | "forward-ref" | "fragment" | "function" | "function-component" | "function-name" | "global" | "handler" | "hook" | "html" | "id" | "index" | "input" | "key" | "list-rendering" | "literal" | "map" | "memo" | "memoized-function" | "method" | "name" | "namespace" | "node" | "parameter" | "prop" | "ref" | "render" | "return" | "spread" | "state" | "string" | "string-refs" | "style" | "textnodes" | "use-callback" | "use-context" | "use-effect" | "use-imperative-handle" | "use-layout-effect" | "use-memo" | "use-reducer" | "use-ref" | "use-state" | "value" | "variable";
61
61
  type Additional = string;
62
62
  type RuleName = `${Ban}-${Term}` | `${NeutralModifier}-${Term}` | `${NegativeModifier}-${NegativeDescriptive}-${Term}` | `${NegativeModifier}-${NeutralDescriptive}-${Term}` | `${PositiveModifier}-${NeutralDescriptive}-${Term}` | `${PositiveModifier}-${PositiveDescriptive}-${Term}`;
63
63
  type RuleNameWithAdditional = `${RuleName}-${Additional}`;
@@ -57,7 +57,7 @@ type NegativeDescriptive = "complicated" | "confusing" | "constructed" | "duplic
57
57
  type PositiveDescriptive = "explicit" | "optimal" | "optimized" | "standard" | "strict";
58
58
  type NeutralDescriptive = "access" | "calling" | "inside" | "outside";
59
59
  type Descriptive = NegativeDescriptive | NeutralDescriptive | PositiveDescriptive;
60
- type Term = "argument" | "array" | "array-index" | "arrow-function" | "attribute" | "callback" | "children" | "class" | "class-component" | "class-method" | "class-property" | "clone-element" | "comment" | "component" | "components" | "computed" | "computed-property" | "conditional-rendering" | "const" | "constant" | "constructor" | "context" | "context-consumer" | "context-provider" | "context-value" | "create-ref" | "custom-hooks" | "default-props" | "deps" | "destructuring" | "destructuring-assignment" | "direct-mutation" | "display-name" | "document" | "effect" | "element" | "error" | "event" | "event-handler" | "exhaustive-deps" | "expression" | "false" | "filename" | "forward-ref" | "fragment" | "function" | "function-component" | "function-name" | "global" | "handler" | "hook" | "html" | "id" | "index" | "input" | "key" | "literal" | "map" | "memo" | "memoized-function" | "method" | "name" | "namespace" | "node" | "parameter" | "prop" | "ref" | "render" | "return" | "spread" | "state" | "string" | "string-refs" | "style" | "textnodes" | "use-callback" | "use-context" | "use-effect" | "use-imperative-handle" | "use-layout-effect" | "use-memo" | "use-reducer" | "use-ref" | "use-state" | "value" | "variable";
60
+ type Term = "argument" | "array" | "array-index" | "arrow-function" | "attribute" | "callback" | "children" | "class" | "class-component" | "class-method" | "class-property" | "clone-element" | "comment" | "component" | "components" | "computed" | "computed-property" | "conditional-rendering" | "const" | "constant" | "constructor" | "context" | "context-consumer" | "context-provider" | "context-value" | "create-ref" | "custom-hooks" | "default-props" | "deps" | "destructuring" | "destructuring-assignment" | "direct-mutation" | "display-name" | "document" | "effect" | "element" | "error" | "event" | "event-handler" | "exhaustive-deps" | "expression" | "false" | "filename" | "forward-ref" | "fragment" | "function" | "function-component" | "function-name" | "global" | "handler" | "hook" | "html" | "id" | "index" | "input" | "key" | "list-rendering" | "literal" | "map" | "memo" | "memoized-function" | "method" | "name" | "namespace" | "node" | "parameter" | "prop" | "ref" | "render" | "return" | "spread" | "state" | "string" | "string-refs" | "style" | "textnodes" | "use-callback" | "use-context" | "use-effect" | "use-imperative-handle" | "use-layout-effect" | "use-memo" | "use-reducer" | "use-ref" | "use-state" | "value" | "variable";
61
61
  type Additional = string;
62
62
  type RuleName = `${Ban}-${Term}` | `${NeutralModifier}-${Term}` | `${NegativeModifier}-${NegativeDescriptive}-${Term}` | `${NegativeModifier}-${NeutralDescriptive}-${Term}` | `${PositiveModifier}-${NeutralDescriptive}-${Term}` | `${PositiveModifier}-${PositiveDescriptive}-${Term}`;
63
63
  type RuleNameWithAdditional = `${RuleName}-${Additional}`;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint-react/types",
3
- "version": "0.8.6-beta.3",
3
+ "version": "0.8.6-beta.6",
4
4
  "description": "Type definitions for @eslint-react packages.",
5
5
  "homepage": "https://github.com/rel1cx/eslint-react",
6
6
  "bugs": {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@eslint-react/jsx",
3
- "version": "0.8.6-beta.3",
4
- "description": "ESLint plugin for React Hooks related rules.",
3
+ "version": "0.8.6-beta.6",
4
+ "description": "TSESTree AST utility module for static analysis of JSX.",
5
5
  "homepage": "https://github.com/rel1cx/eslint-react",
6
6
  "bugs": {
7
7
  "url": "https://github.com/rel1cx/eslint-react/issues"
@@ -40,9 +40,9 @@
40
40
  },
41
41
  "devDependencies": {
42
42
  "micro-memoize": "4.1.2",
43
- "@eslint-react/ast": "0.8.6-beta.3",
44
- "@eslint-react/tools": "0.8.6-beta.3",
45
- "@eslint-react/types": "0.8.6-beta.3"
43
+ "@eslint-react/ast": "0.8.6-beta.6",
44
+ "@eslint-react/tools": "0.8.6-beta.6",
45
+ "@eslint-react/types": "0.8.6-beta.6"
46
46
  },
47
47
  "bundleDependencies": [
48
48
  "@eslint-react/ast",