@arcgis/eslint-config 4.33.0-next.4 → 4.33.0-next.41

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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  makeEslintPlugin
3
- } from "./chunk-RFSDPXHO.js";
3
+ } from "./chunk-JEZIZSTC.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-RFSDPXHO.js";
3
+ } from "./chunk-JEZIZSTC.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("/.");
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "4.33.0-next.4";
2
+ var version = "4.33.0-next.41";
3
3
 
4
4
  // src/plugins/utils/makePlugin.ts
5
5
  function makeEslintPlugin(pluginName, rules) {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  webgis_default
3
- } from "../chunk-R55MHDPF.js";
4
- import "../chunk-RFSDPXHO.js";
3
+ } from "../chunk-HNCXDAXP.js";
4
+ import "../chunk-JEZIZSTC.js";
5
5
 
6
6
  // src/config/index.ts
7
7
  import eslint from "@eslint/js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  lumina_default
3
- } from "../chunk-SN7D56XE.js";
4
- import "../chunk-RFSDPXHO.js";
3
+ } from "../chunk-2CGIG36Q.js";
4
+ import "../chunk-JEZIZSTC.js";
5
5
 
6
6
  // src/config/storybook.ts
7
7
  import eslintPluginStorybook from "eslint-plugin-storybook";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  lumina_default
3
- } from "../../chunk-SN7D56XE.js";
4
- import "../../chunk-RFSDPXHO.js";
3
+ } from "../../chunk-2CGIG36Q.js";
4
+ import "../../chunk-JEZIZSTC.js";
5
5
  export {
6
6
  lumina_default as default
7
7
  };
@@ -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 & {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  webgis_default
3
- } from "../../chunk-R55MHDPF.js";
4
- import "../../chunk-RFSDPXHO.js";
3
+ } from "../../chunk-HNCXDAXP.js";
4
+ import "../../chunk-JEZIZSTC.js";
5
5
  export {
6
6
  webgis_default as default
7
7
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/eslint-config",
3
- "version": "4.33.0-next.4",
3
+ "version": "4.33.0-next.41",
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.4",
22
+ "@arcgis/components-utils": "4.33.0-next.41",
23
23
  "@eslint/js": "^9.17.0",
24
24
  "@types/confusing-browser-globals": "^1.0.3",
25
25
  "confusing-browser-globals": "^1.0.11",