@arcgis/eslint-config 4.33.0-next.21 → 4.33.0-next.23
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/{chunk-4NV76LZR.js → chunk-CV2SPOGJ.js} +6 -1
- package/dist/{chunk-5OD4V6NC.js → chunk-HLFIWMEC.js} +1 -1
- package/dist/{chunk-EYJZAW4L.js → chunk-VP2NM2CI.js} +1 -1
- package/dist/config/index.js +2 -2
- package/dist/config/lumina.js +2 -2
- package/dist/plugins/lumina/index.js +2 -2
- package/dist/plugins/lumina/utils/estree.d.ts +1 -0
- package/dist/plugins/webgis/index.js +2 -2
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeEslintPlugin
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-HLFIWMEC.js";
|
|
4
4
|
|
|
5
5
|
// src/plugins/lumina/rules/add-missing-jsx-import.ts
|
|
6
6
|
import { AST_NODE_TYPES as AST_NODE_TYPES2 } from "@typescript-eslint/utils";
|
|
@@ -15,6 +15,7 @@ var createRule = ESLintUtils.RuleCreator(
|
|
|
15
15
|
import { AST_NODE_TYPES } from "@typescript-eslint/utils";
|
|
16
16
|
var unwrapExpression = (expression) => expression.type === AST_NODE_TYPES.TSAsExpression || expression.type === AST_NODE_TYPES.TSNonNullExpression || expression.type === AST_NODE_TYPES.TSSatisfiesExpression ? unwrapExpression(expression.expression) : expression;
|
|
17
17
|
var luminaEntrypointName = "@arcgis/lumina";
|
|
18
|
+
var luminaTestEntrypointName = "@arcgis/lumina-compiler/testing";
|
|
18
19
|
var luminaJsxExportName = "h";
|
|
19
20
|
function checkForLuminaJsx() {
|
|
20
21
|
const ImportDeclaration = (node) => {
|
|
@@ -128,6 +129,10 @@ var addMissingJsxImport = createRule({
|
|
|
128
129
|
return {
|
|
129
130
|
ImportDeclaration(node) {
|
|
130
131
|
lastImportDeclaration = node;
|
|
132
|
+
if (node.source.value === luminaTestEntrypointName) {
|
|
133
|
+
isUsingLumina = true;
|
|
134
|
+
return;
|
|
135
|
+
}
|
|
131
136
|
if (node.source.value !== luminaEntrypointName) {
|
|
132
137
|
return;
|
|
133
138
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeEslintPlugin
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-HLFIWMEC.js";
|
|
4
4
|
|
|
5
5
|
// src/plugins/utils/helpers.ts
|
|
6
6
|
var isTestFile = (filePath) => filePath.includes("/test") || filePath.includes(".test") || filePath.includes(".spec") || filePath.includes("e2e") || filePath.includes("__") || filePath.includes("/.");
|
package/dist/config/index.js
CHANGED
package/dist/config/lumina.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { TSESTree } from "@typescript-eslint/utils";
|
|
2
2
|
export declare const unwrapExpression: <T extends TSESTree.Node>(expression: T) => T | TSESTree.Expression;
|
|
3
3
|
export declare const luminaEntrypointName = "@arcgis/lumina";
|
|
4
|
+
export declare const luminaTestEntrypointName = "@arcgis/lumina-compiler/testing";
|
|
4
5
|
export declare const luminaJsxExportName = "h";
|
|
5
6
|
type LuminaJsxCheck = (node: TSESTree.ImportDeclaration) => void;
|
|
6
7
|
export declare function checkForLuminaJsx(): LuminaJsxCheck & {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcgis/eslint-config",
|
|
3
|
-
"version": "4.33.0-next.
|
|
3
|
+
"version": "4.33.0-next.23",
|
|
4
4
|
"description": "ESLint configuration for arcgis-web-components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
],
|
|
20
20
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@arcgis/components-utils": "4.33.0-next.
|
|
22
|
+
"@arcgis/components-utils": "4.33.0-next.23",
|
|
23
23
|
"@eslint/js": "^9.17.0",
|
|
24
24
|
"@types/confusing-browser-globals": "^1.0.3",
|
|
25
25
|
"confusing-browser-globals": "^1.0.11",
|