@arcgis/eslint-config 5.2.0-next.23 → 5.2.0-next.25
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,4 +1,4 @@
|
|
|
1
|
-
import { m as makeEslintPlugin } from "../../makePlugin-
|
|
1
|
+
import { m as makeEslintPlugin } from "../../makePlugin-CxBo24w5.js";
|
|
2
2
|
import { AST_NODE_TYPES, AST_TOKEN_TYPES } from "@typescript-eslint/utils";
|
|
3
3
|
import { generateDifferences, showInvisibles } from "prettier-linter-helpers";
|
|
4
4
|
import path, { relative, win32, posix, normalize } from "path";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as makeEslintPlugin } from "../../makePlugin-
|
|
1
|
+
import { m as makeEslintPlugin } from "../../makePlugin-CxBo24w5.js";
|
|
2
2
|
import { AST_NODE_TYPES, ESLintUtils, AST_TOKEN_TYPES } from "@typescript-eslint/utils";
|
|
3
3
|
import { l as luminaJsxExportName, a as luminaEntrypointName, b as luminaTestEntrypointName, s as sourceCodeDeclaresComponent, p as parsePropertyDecorator, c as getProperty, i as isGetterWithoutSetter, e as extractDeclareElementsInterface, d as isCreateEvent, h as hasDecorator, f as getName, j as checkForLuminaJsx, k as isBindThisCallee, g as getComponentDeclaration, u as unwrapExpression } from "../../estree-CDc-die8.js";
|
|
4
4
|
import ts from "typescript";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as makeEslintPlugin } from "../../makePlugin-
|
|
1
|
+
import { m as makeEslintPlugin } from "../../makePlugin-CxBo24w5.js";
|
|
2
2
|
import { TSESTree, AST_TOKEN_TYPES, AST_NODE_TYPES, TSESLint } from "@typescript-eslint/utils";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { resolve } from "path/posix";
|
|
@@ -944,8 +944,8 @@ plugin.createRule({
|
|
|
944
944
|
};
|
|
945
945
|
}
|
|
946
946
|
});
|
|
947
|
-
const description =
|
|
948
|
-
const packagesToEnforce = ["@arcgis/core/", "@amcharts/amcharts4/", "@amcharts/amcharts5/"];
|
|
947
|
+
const description = `Imports of certain packages need to end with .js for better compatibility with CDN and bundlers.`;
|
|
948
|
+
const packagesToEnforce = ["@arcgis/core/", "@amcharts/amcharts4/", "@amcharts/amcharts5/", "@vaadin/grid/"];
|
|
949
949
|
plugin.createRule({
|
|
950
950
|
name: "require-js-in-imports",
|
|
951
951
|
meta: {
|
|
@@ -954,7 +954,7 @@ plugin.createRule({
|
|
|
954
954
|
defaultLevel: "warn"
|
|
955
955
|
},
|
|
956
956
|
messages: {
|
|
957
|
-
|
|
957
|
+
requireJsInImports: description
|
|
958
958
|
},
|
|
959
959
|
type: "problem",
|
|
960
960
|
fixable: "code",
|
|
@@ -978,7 +978,7 @@ plugin.createRule({
|
|
|
978
978
|
}
|
|
979
979
|
context.report({
|
|
980
980
|
node: node.source,
|
|
981
|
-
messageId: "
|
|
981
|
+
messageId: "requireJsInImports",
|
|
982
982
|
fix: (fixer) => fixer.replaceText(node.source, `"${specifier}.js"`)
|
|
983
983
|
});
|
|
984
984
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcgis/eslint-config",
|
|
3
|
-
"version": "5.2.0-next.
|
|
3
|
+
"version": "5.2.0-next.25",
|
|
4
4
|
"description": "ESLint configuration for WebGIS SDK",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"tslib": "^2.8.1",
|
|
36
36
|
"typescript": "~6.0.2",
|
|
37
37
|
"typescript-eslint": "^8.58.0",
|
|
38
|
-
"@arcgis/toolkit": "5.2.0-next.
|
|
38
|
+
"@arcgis/toolkit": "5.2.0-next.25"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"eslint": "^10.2.0"
|