eslint-plugin-react-jsx 5.6.2 → 5.6.3-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.js +7 -5
- package/package.json +6 -5
package/dist/index.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { DEFAULT_ESLINT_REACT_SETTINGS } from "@eslint-react/shared";
|
|
2
2
|
import { ESLintUtils } from "@typescript-eslint/utils";
|
|
3
3
|
import { merge } from "@eslint-react/eslint";
|
|
4
|
-
import {
|
|
4
|
+
import { findAttribute, getChildren, getElementFullType, hasAnyAttribute, hasChildren, isFragmentElement, isHostElement, isWhitespaceText } from "@eslint-react/jsx";
|
|
5
5
|
import { AST_NODE_TYPES } from "@typescript-eslint/types";
|
|
6
6
|
import { Check, isOneOf } from "@eslint-react/ast";
|
|
7
|
+
import * as core from "@eslint-react/core";
|
|
8
|
+
import ts from "typescript";
|
|
7
9
|
|
|
8
10
|
//#region \0rolldown/runtime.js
|
|
9
11
|
var __defProp = Object.defineProperty;
|
|
@@ -24,7 +26,7 @@ var __exportAll = (all, no_symbols) => {
|
|
|
24
26
|
//#endregion
|
|
25
27
|
//#region package.json
|
|
26
28
|
var name$2 = "eslint-plugin-react-jsx";
|
|
27
|
-
var version = "5.6.
|
|
29
|
+
var version = "5.6.3-beta.0";
|
|
28
30
|
|
|
29
31
|
//#endregion
|
|
30
32
|
//#region src/utils/create-rule.ts
|
|
@@ -267,8 +269,8 @@ var no_key_after_spread_default = createRule({
|
|
|
267
269
|
defaultOptions: []
|
|
268
270
|
});
|
|
269
271
|
function create$4(context) {
|
|
270
|
-
const { jsx } = getJsxConfig(context);
|
|
271
|
-
if (!(jsx === JsxEmit.ReactJSX || jsx === JsxEmit.ReactJSXDev)) return {};
|
|
272
|
+
const { jsx } = core.getJsxConfig(context);
|
|
273
|
+
if (!(jsx === ts.JsxEmit.ReactJSX || jsx === ts.JsxEmit.ReactJSXDev)) return {};
|
|
272
274
|
return merge({ JSXOpeningElement(node) {
|
|
273
275
|
let firstSpreadPropIndex = null;
|
|
274
276
|
for (const [index, prop] of node.attributes.entries()) {
|
|
@@ -479,7 +481,7 @@ var no_useless_fragment_default = createRule({
|
|
|
479
481
|
});
|
|
480
482
|
function create(context, [option]) {
|
|
481
483
|
const { allowEmptyFragment = false, allowExpressions = true } = option;
|
|
482
|
-
const jsxConfig = getJsxConfig(context);
|
|
484
|
+
const jsxConfig = core.getJsxConfig(context);
|
|
483
485
|
/**
|
|
484
486
|
* Whether the fragment has too few meaningful children to justify its
|
|
485
487
|
* existence (the "contains less than two children" reason).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-jsx",
|
|
3
|
-
"version": "5.6.
|
|
3
|
+
"version": "5.6.3-beta.0",
|
|
4
4
|
"description": "ESLint React's ESLint plugin for React Flavored JSX rules.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -39,10 +39,11 @@
|
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@typescript-eslint/types": "^8.59.1",
|
|
41
41
|
"@typescript-eslint/utils": "^8.59.1",
|
|
42
|
-
"@eslint-react/ast": "5.6.
|
|
43
|
-
"@eslint-react/
|
|
44
|
-
"@eslint-react/
|
|
45
|
-
"@eslint-react/
|
|
42
|
+
"@eslint-react/ast": "5.6.3-beta.0",
|
|
43
|
+
"@eslint-react/core": "5.6.3-beta.0",
|
|
44
|
+
"@eslint-react/eslint": "5.6.3-beta.0",
|
|
45
|
+
"@eslint-react/jsx": "5.6.3-beta.0",
|
|
46
|
+
"@eslint-react/shared": "5.6.3-beta.0"
|
|
46
47
|
},
|
|
47
48
|
"devDependencies": {
|
|
48
49
|
"@types/react": "^19.2.14",
|