@eslint-react/jsx 0.9.8 → 0.10.0-beta.0

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.cjs CHANGED
@@ -10,7 +10,7 @@ const RE_JSX_ANNOTATION_REGEX = /@jsx\s+(\S+)/u;
10
10
  // Does not check for reserved keywords or unicode characters
11
11
  const RE_JS_IDENTIFIER_REGEX = /^[$A-Z_a-z][\w$]*$/u;
12
12
  function getFragmentFromContext(context) {
13
- const settings = shared.parse(shared.ESLintSettingsSchema, context.settings);
13
+ const settings = shared.parseSchema(shared.ESLintSettingsSchema, context.settings);
14
14
  const fragment = settings.eslintReact?.jsx?.fragment;
15
15
  if (tools._.isString(fragment) && RE_JS_IDENTIFIER_REGEX.test(fragment)) {
16
16
  return fragment;
@@ -18,7 +18,7 @@ function getFragmentFromContext(context) {
18
18
  return "Fragment";
19
19
  }
20
20
  const getPragmaFromContext = memo((context)=>{
21
- const settings = shared.parse(shared.ESLintSettingsSchema, context.settings);
21
+ const settings = shared.parseSchema(shared.ESLintSettingsSchema, context.settings);
22
22
  const pragma = settings.eslintReact?.jsx?.pragma;
23
23
  const { sourceCode } = context;
24
24
  const pragmaNode = sourceCode.getAllComments().find((node)=>RE_JSX_ANNOTATION_REGEX.test(node.value));
package/dist/index.js CHANGED
@@ -10,7 +10,7 @@ const RE_JSX_ANNOTATION_REGEX = /@jsx\s+(\S+)/u;
10
10
  // Does not check for reserved keywords or unicode characters
11
11
  const RE_JS_IDENTIFIER_REGEX = /^[$A-Z_a-z][\w$]*$/u;
12
12
  function getFragmentFromContext(context) {
13
- const settings = shared.parse(shared.ESLintSettingsSchema, context.settings);
13
+ const settings = shared.parseSchema(shared.ESLintSettingsSchema, context.settings);
14
14
  const fragment = settings.eslintReact?.jsx?.fragment;
15
15
  if (tools._.isString(fragment) && RE_JS_IDENTIFIER_REGEX.test(fragment)) {
16
16
  return fragment;
@@ -18,7 +18,7 @@ function getFragmentFromContext(context) {
18
18
  return "Fragment";
19
19
  }
20
20
  const getPragmaFromContext = memo((context)=>{
21
- const settings = shared.parse(shared.ESLintSettingsSchema, context.settings);
21
+ const settings = shared.parseSchema(shared.ESLintSettingsSchema, context.settings);
22
22
  const pragma = settings.eslintReact?.jsx?.pragma;
23
23
  const { sourceCode } = context;
24
24
  const pragmaNode = sourceCode.getAllComments().find((node)=>RE_JSX_ANNOTATION_REGEX.test(node.value));
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { getVariablesUpToGlobal, findVariableByName, NodeType, isOneOf, is, traverseUp, isJSXTagNameExpression, findVariableByNameUpToGlobal, getVariableInit, getNestedReturnStatements, ESLintCommunityESLintUtils, traverseUpGuard, isStringLiteral, isMultiLine } from '@eslint-react/ast';
2
- import { parse, ESLintSettingsSchema } from '@eslint-react/shared';
2
+ import { parseSchema, ESLintSettingsSchema } from '@eslint-react/shared';
3
3
  import { F, O as O$1, _ as _$1 } from '@eslint-react/tools';
4
4
  import memo from 'micro-memoize';
5
5
  import { AST_NODE_TYPES } from '@typescript-eslint/types';
@@ -8,7 +8,7 @@ const RE_JSX_ANNOTATION_REGEX = /@jsx\s+(\S+)/u;
8
8
  // Does not check for reserved keywords or unicode characters
9
9
  const RE_JS_IDENTIFIER_REGEX = /^[$A-Z_a-z][\w$]*$/u;
10
10
  function getFragmentFromContext(context) {
11
- const settings = parse(ESLintSettingsSchema, context.settings);
11
+ const settings = parseSchema(ESLintSettingsSchema, context.settings);
12
12
  const fragment = settings.eslintReact?.jsx?.fragment;
13
13
  if (_$1.isString(fragment) && RE_JS_IDENTIFIER_REGEX.test(fragment)) {
14
14
  return fragment;
@@ -16,7 +16,7 @@ function getFragmentFromContext(context) {
16
16
  return "Fragment";
17
17
  }
18
18
  const getPragmaFromContext = memo((context)=>{
19
- const settings = parse(ESLintSettingsSchema, context.settings);
19
+ const settings = parseSchema(ESLintSettingsSchema, context.settings);
20
20
  const pragma = settings.eslintReact?.jsx?.pragma;
21
21
  const { sourceCode } = context;
22
22
  const pragmaNode = sourceCode.getAllComments().find((node)=>RE_JSX_ANNOTATION_REGEX.test(node.value));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint-react/jsx",
3
- "version": "0.9.8",
3
+ "version": "0.10.0-beta.0",
4
4
  "description": "ESLint React's TSESTree AST utility module for static analysis of JSX.",
5
5
  "homepage": "https://github.com/rel1cx/eslint-react",
6
6
  "bugs": {
@@ -39,15 +39,13 @@
39
39
  "@typescript-eslint/types": "6.15.0",
40
40
  "@typescript-eslint/utils": "6.15.0",
41
41
  "micro-memoize": "4.1.2",
42
- "@eslint-react/ast": "0.9.8",
43
- "@eslint-react/eslint-utils": "0.9.8",
44
- "@eslint-react/shared": "0.9.8",
45
- "@eslint-react/tools": "0.9.8",
46
- "@eslint-react/types": "0.9.8"
42
+ "@eslint-react/ast": "0.10.0-beta.0",
43
+ "@eslint-react/shared": "0.10.0-beta.0",
44
+ "@eslint-react/tools": "0.10.0-beta.0",
45
+ "@eslint-react/types": "0.10.0-beta.0"
47
46
  },
48
47
  "scripts": {
49
48
  "build": "rollup -c rollup.config.ts --configPlugin swc3 && cp dist/index.d.ts dist/index.d.mts",
50
- "build:docs": "typedoc",
51
49
  "lint:publish": "publint",
52
50
  "lint:type": "tsc --noEmit"
53
51
  }
package/README.md DELETED
@@ -1,10 +0,0 @@
1
- # `@eslint-react/jsx`
2
-
3
- > ESLint React's ESLint utility module for static analysis of React core API and Patterns.
4
-
5
- ## ✋ Internal Package
6
-
7
- This is an internal package to the [ESLint React monorepo](https://github.com/Rel1cx/eslint-react).
8
- You likely don't want to use it directly.
9
-
10
- 👉 See **<https://eslint-react.rel1cx.io>** for docs on ESLint React.