@eslint-react/jsx 1.22.1 → 1.22.2-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.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -5
- package/dist/index.mjs +1 -1
- package/package.json +10 -11
package/dist/index.d.mts
CHANGED
|
@@ -2,7 +2,7 @@ import { TSESTree } from '@typescript-eslint/types';
|
|
|
2
2
|
import { O } from '@eslint-react/eff';
|
|
3
3
|
import { Scope } from '@typescript-eslint/scope-manager';
|
|
4
4
|
import { TSESTree as TSESTree$1 } from '@typescript-eslint/utils';
|
|
5
|
-
import * as
|
|
5
|
+
import * as _eslint_react_types from '@eslint-react/types';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Returns the tag name associated with a JSXOpeningElement.
|
|
@@ -144,7 +144,7 @@ declare function traverseUpProp(node: TSESTree.Node, predicate?: (node: TSESTree
|
|
|
144
144
|
*/
|
|
145
145
|
declare function unescapeStringLiteralText(text: string): string;
|
|
146
146
|
|
|
147
|
-
declare const xhtmlEntities:
|
|
147
|
+
declare const xhtmlEntities: _eslint_react_types.BiRecord<{
|
|
148
148
|
readonly Aacute: "Á";
|
|
149
149
|
readonly aacute: "á";
|
|
150
150
|
readonly Acirc: "Â";
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { TSESTree } from '@typescript-eslint/types';
|
|
|
2
2
|
import { O } from '@eslint-react/eff';
|
|
3
3
|
import { Scope } from '@typescript-eslint/scope-manager';
|
|
4
4
|
import { TSESTree as TSESTree$1 } from '@typescript-eslint/utils';
|
|
5
|
-
import * as
|
|
5
|
+
import * as _eslint_react_types from '@eslint-react/types';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Returns the tag name associated with a JSXOpeningElement.
|
|
@@ -144,7 +144,7 @@ declare function traverseUpProp(node: TSESTree.Node, predicate?: (node: TSESTree
|
|
|
144
144
|
*/
|
|
145
145
|
declare function unescapeStringLiteralText(text: string): string;
|
|
146
146
|
|
|
147
|
-
declare const xhtmlEntities:
|
|
147
|
+
declare const xhtmlEntities: _eslint_react_types.BiRecord<{
|
|
148
148
|
readonly Aacute: "Á";
|
|
149
149
|
readonly aacute: "á";
|
|
150
150
|
readonly Acirc: "Â";
|
package/dist/index.js
CHANGED
|
@@ -5,9 +5,7 @@ var AST = require('@eslint-react/ast');
|
|
|
5
5
|
var eff = require('@eslint-react/eff');
|
|
6
6
|
var VAR = require('@eslint-react/var');
|
|
7
7
|
var tsPattern = require('ts-pattern');
|
|
8
|
-
var
|
|
9
|
-
|
|
10
|
-
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
8
|
+
var types$1 = require('@eslint-react/types');
|
|
11
9
|
|
|
12
10
|
function _interopNamespace(e) {
|
|
13
11
|
if (e && e.__esModule) return e;
|
|
@@ -29,7 +27,6 @@ function _interopNamespace(e) {
|
|
|
29
27
|
|
|
30
28
|
var AST__namespace = /*#__PURE__*/_interopNamespace(AST);
|
|
31
29
|
var VAR__namespace = /*#__PURE__*/_interopNamespace(VAR);
|
|
32
|
-
var birecord__default = /*#__PURE__*/_interopDefault(birecord);
|
|
33
30
|
|
|
34
31
|
// src/get-element-name.ts
|
|
35
32
|
function resolveJSXMemberExpressions(object, property) {
|
|
@@ -252,7 +249,7 @@ function traverseUpProp(node, predicate = eff.F.constTrue) {
|
|
|
252
249
|
};
|
|
253
250
|
return AST__namespace.traverseUpGuard(node, guard);
|
|
254
251
|
}
|
|
255
|
-
var xhtmlEntities =
|
|
252
|
+
var xhtmlEntities = types$1.birecord({
|
|
256
253
|
Aacute: "\xC1",
|
|
257
254
|
aacute: "\xE1",
|
|
258
255
|
Acirc: "\xC2",
|
package/dist/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import * as AST from '@eslint-react/ast';
|
|
|
3
3
|
import { O, F, isString } from '@eslint-react/eff';
|
|
4
4
|
import * as VAR from '@eslint-react/var';
|
|
5
5
|
import { match, P } from 'ts-pattern';
|
|
6
|
-
import birecord from '
|
|
6
|
+
import { birecord } from '@eslint-react/types';
|
|
7
7
|
|
|
8
8
|
// src/get-element-name.ts
|
|
9
9
|
function resolveJSXMemberExpressions(object, property) {
|
package/package.json
CHANGED
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/jsx",
|
|
3
|
-
"version": "1.22.
|
|
3
|
+
"version": "1.22.2-beta.2",
|
|
4
4
|
"description": "ESLint React's TSESTree AST utility module for static analysis of JSX.",
|
|
5
|
-
"homepage": "https://github.com/
|
|
5
|
+
"homepage": "https://github.com/rEl1cx/eslint-react",
|
|
6
6
|
"bugs": {
|
|
7
|
-
"url": "https://github.com/
|
|
7
|
+
"url": "https://github.com/rEl1cx/eslint-react/issues"
|
|
8
8
|
},
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
|
-
"url": "https://github.com/
|
|
11
|
+
"url": "git+https://github.com/rEl1cx/eslint-react.git",
|
|
12
12
|
"directory": "packages/utilities/jsx"
|
|
13
13
|
},
|
|
14
14
|
"license": "MIT",
|
|
15
15
|
"author": "Eva1ent<rel1cx@proton.me>",
|
|
16
|
-
"sideEffects": false,
|
|
17
16
|
"exports": {
|
|
18
17
|
".": {
|
|
19
18
|
"import": {
|
|
@@ -28,7 +27,6 @@
|
|
|
28
27
|
"./package.json": "./package.json"
|
|
29
28
|
},
|
|
30
29
|
"main": "dist/index.js",
|
|
31
|
-
"module": "dist/index.mjs",
|
|
32
30
|
"types": "dist/index.d.ts",
|
|
33
31
|
"files": [
|
|
34
32
|
"dist",
|
|
@@ -38,17 +36,18 @@
|
|
|
38
36
|
"@typescript-eslint/scope-manager": "^8.18.2",
|
|
39
37
|
"@typescript-eslint/types": "^8.18.2",
|
|
40
38
|
"@typescript-eslint/utils": "^8.18.2",
|
|
41
|
-
"birecord": "^0.1.1",
|
|
42
39
|
"ts-pattern": "^5.6.0",
|
|
43
|
-
"@eslint-react/ast": "1.22.
|
|
44
|
-
"@eslint-react/types": "1.22.
|
|
45
|
-
"@eslint-react/
|
|
46
|
-
"@eslint-react/
|
|
40
|
+
"@eslint-react/ast": "1.22.2-beta.2",
|
|
41
|
+
"@eslint-react/types": "1.22.2-beta.2",
|
|
42
|
+
"@eslint-react/var": "1.22.2-beta.2",
|
|
43
|
+
"@eslint-react/eff": "1.22.2-beta.2"
|
|
47
44
|
},
|
|
48
45
|
"devDependencies": {
|
|
49
46
|
"tsup": "^8.3.5",
|
|
50
47
|
"@workspace/configs": "0.0.0"
|
|
51
48
|
},
|
|
49
|
+
"sideEffects": false,
|
|
50
|
+
"module": "dist/index.mjs",
|
|
52
51
|
"scripts": {
|
|
53
52
|
"build": "tsup",
|
|
54
53
|
"lint:publish": "publint",
|