@arcgis/eslint-config 5.0.0-next.67 → 5.0.0-next.69
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/config/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* See setup documentation & rationale behind ESLint:
|
|
3
|
-
* https://
|
|
3
|
+
* https://webgis.esri.com/references/support-packages/eslint
|
|
4
4
|
*
|
|
5
5
|
* Some advice on editing rules:
|
|
6
6
|
* - prioritize autofixable rules to make adoption in existing codebases easier
|
package/dist/config/lumina.js
CHANGED
|
@@ -126,7 +126,7 @@ declare global {
|
|
|
126
126
|
{
|
|
127
127
|
group: ["/@lit/context"],
|
|
128
128
|
importNames: ["ContextProvider", "ContextConsumer", "provide", "consume"],
|
|
129
|
-
message: `For lazy-loading compatibility, import the useContextProvider() and the useContextConsumer() controllers from @arcgis/lumina/context rather than directly calling the Lit's controllers/decorators. See https://
|
|
129
|
+
message: `For lazy-loading compatibility, import the useContextProvider() and the useContextConsumer() controllers from @arcgis/lumina/context rather than directly calling the Lit's controllers/decorators. See https://webgis.esri.com/references/lumina/state-management#lit-context`,
|
|
130
130
|
caseSensitive: true
|
|
131
131
|
}
|
|
132
132
|
]
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as makeEslintPlugin } from "../../makePlugin-
|
|
1
|
+
import { m as makeEslintPlugin } from "../../makePlugin-DvE56xMp.js";
|
|
2
2
|
import { AST_NODE_TYPES, ESLintUtils, AST_TOKEN_TYPES } from "@typescript-eslint/utils";
|
|
3
3
|
import ts from "typescript";
|
|
4
4
|
import { camelToKebab } from "@arcgis/toolkit/string";
|
|
@@ -463,7 +463,7 @@ plugin.createRule({
|
|
|
463
463
|
messages: {
|
|
464
464
|
eventNamespaceError: `Custom event name must start with one of the following prefixes: {{ prefixes }}.
|
|
465
465
|
|
|
466
|
-
Details: https://
|
|
466
|
+
Details: https://webgis.esri.com/references/lumina/events#best-practices-around-emitting-events`,
|
|
467
467
|
componentNameInEventError: `For consistency, event name should not start with component name.
|
|
468
468
|
|
|
469
469
|
Discussion: https://devtopia.esri.com/WebGIS/arcgis-web-components/discussions/307`,
|
|
@@ -650,7 +650,7 @@ plugin.createRule({
|
|
|
650
650
|
messages: {
|
|
651
651
|
publicApiMustBePublic: `@property(), @method() and createEvent() members must not have private or protected modifier.
|
|
652
652
|
|
|
653
|
-
If you wish to hide this member from public documentation, use @private or @protected JSDoc tags instead. Documentation: https://
|
|
653
|
+
If you wish to hide this member from public documentation, use @private or @protected JSDoc tags instead. Documentation: https://webgis.esri.com/references/lumina/documenting-components#excluding-api-from-public-documentation`,
|
|
654
654
|
noPropertyDecoratorOnMethods: `Methods must not have @property() nor @state() decorator. Did you mean @property() instead?`,
|
|
655
655
|
noCombinedPropertyEvent: `Property may either be an event (initialized with createEvent()) or a property (has @property() decorator), but not both`,
|
|
656
656
|
noCombinedPropertyState: `Property may either be a state (initialized with @state()) or a property (has @property() decorator), but not both`,
|
|
@@ -1263,7 +1263,7 @@ plugin.createRule({
|
|
|
1263
1263
|
},
|
|
1264
1264
|
fixable: "code",
|
|
1265
1265
|
messages: {
|
|
1266
|
-
default: "Use JSX instead of `document.createElement()` to create components.\nDetails: https://
|
|
1266
|
+
default: "Use JSX instead of `document.createElement()` to create components.\nDetails: https://webgis.esri.com/references/lumina/jsx#rendering-jsx-outside-the-component"
|
|
1267
1267
|
},
|
|
1268
1268
|
schema: [],
|
|
1269
1269
|
type: "problem"
|
|
@@ -1299,7 +1299,7 @@ function isCreateElementComponent(node) {
|
|
|
1299
1299
|
}
|
|
1300
1300
|
return false;
|
|
1301
1301
|
}
|
|
1302
|
-
const description$d = `Use @internal or @private JSDoc tag over @ignore. See https://
|
|
1302
|
+
const description$d = `Use @internal or @private JSDoc tag over @ignore. See https://webgis.esri.com/references/lumina/documenting-components#excluding-api-from-public-documentation`;
|
|
1303
1303
|
plugin.createRule({
|
|
1304
1304
|
name: "no-ignore-jsdoc-tag",
|
|
1305
1305
|
meta: {
|
|
@@ -1346,7 +1346,7 @@ plugin.createRule({
|
|
|
1346
1346
|
defaultLevel: "error"
|
|
1347
1347
|
},
|
|
1348
1348
|
messages: {
|
|
1349
|
-
incorrectDynamicTagName: `This is using incorrect dynamic tag name syntax. See documentation on how to use dynamic tag in Lumina's JSX: https://
|
|
1349
|
+
incorrectDynamicTagName: `This is using incorrect dynamic tag name syntax. See documentation on how to use dynamic tag in Lumina's JSX: https://webgis.esri.com/references/lumina/jsx#dynamic-tag-name`
|
|
1350
1350
|
},
|
|
1351
1351
|
type: "problem",
|
|
1352
1352
|
schema: []
|
|
@@ -1387,7 +1387,7 @@ plugin.createRule({
|
|
|
1387
1387
|
});
|
|
1388
1388
|
const description$b = `If inline arrow function is passed to ref, it will be called again on each render.
|
|
1389
1389
|
|
|
1390
|
-
If this is not desirable, see alternatives: https://
|
|
1390
|
+
If this is not desirable, see alternatives: https://webgis.esri.com/references/lumina/jsx#refs`;
|
|
1391
1391
|
plugin.createRule({
|
|
1392
1392
|
name: "no-inline-arrow-in-ref",
|
|
1393
1393
|
meta: {
|
|
@@ -1422,7 +1422,7 @@ plugin.createRule({
|
|
|
1422
1422
|
};
|
|
1423
1423
|
}
|
|
1424
1424
|
});
|
|
1425
|
-
const description$a = `directives={} prop value must be an array literal. Documentation: https://
|
|
1425
|
+
const description$a = `directives={} prop value must be an array literal. Documentation: https://webgis.esri.com/references/lumina/jsx#lit-directives`;
|
|
1426
1426
|
plugin.createRule({
|
|
1427
1427
|
name: "no-invalid-directives-prop",
|
|
1428
1428
|
meta: {
|
|
@@ -1468,7 +1468,7 @@ plugin.createRule({
|
|
|
1468
1468
|
};
|
|
1469
1469
|
}
|
|
1470
1470
|
});
|
|
1471
|
-
const description$9 = `This spread syntax is not supported. Alternatives: https://
|
|
1471
|
+
const description$9 = `This spread syntax is not supported. Alternatives: https://webgis.esri.com/references/lumina/jsx#spread-attributes`;
|
|
1472
1472
|
plugin.createRule({
|
|
1473
1473
|
name: "no-jsx-spread",
|
|
1474
1474
|
meta: {
|
|
@@ -1761,7 +1761,7 @@ plugin.createRule({
|
|
|
1761
1761
|
messages: {
|
|
1762
1762
|
needlessInlineJsxEventTypeAnnotation: "There is no need for this type annotation as JSX types already define event types.",
|
|
1763
1763
|
redundantTypeAssertion: "This type assertion is likely unnecessary.",
|
|
1764
|
-
avoidTypeAssertion: "This type assertion might be avoidable if you improve the event argument type. See examples in https://
|
|
1764
|
+
avoidTypeAssertion: "This type assertion might be avoidable if you improve the event argument type. See examples in https://webgis.esri.com/references/lumina/events#listening-to-events-on-children-components"
|
|
1765
1765
|
},
|
|
1766
1766
|
hasSuggestions: true,
|
|
1767
1767
|
fixable: "code",
|
|
@@ -1956,7 +1956,7 @@ plugin.createRule({
|
|
|
1956
1956
|
};
|
|
1957
1957
|
}
|
|
1958
1958
|
});
|
|
1959
|
-
const description$1 = `In most cases, key={index} is not necessary in Lumina in .map(). Details: https://
|
|
1959
|
+
const description$1 = `In most cases, key={index} is not necessary in Lumina in .map(). Details: https://webgis.esri.com/references/lumina/jsx#key-prop`;
|
|
1960
1960
|
plugin.createRule({
|
|
1961
1961
|
name: "no-unnecessary-key",
|
|
1962
1962
|
meta: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as makeEslintPlugin } from "../../makePlugin-
|
|
1
|
+
import { m as makeEslintPlugin } from "../../makePlugin-DvE56xMp.js";
|
|
2
2
|
import { resolve } from "path/posix";
|
|
3
3
|
import { AST_NODE_TYPES } from "@typescript-eslint/utils";
|
|
4
4
|
const plugin = makeEslintPlugin(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcgis/eslint-config",
|
|
3
|
-
"version": "5.0.0-next.
|
|
3
|
+
"version": "5.0.0-next.69",
|
|
4
4
|
"description": "ESLint configuration for arcgis-web-components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
],
|
|
21
21
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@arcgis/toolkit": "5.0.0-next.
|
|
23
|
+
"@arcgis/toolkit": "5.0.0-next.69",
|
|
24
24
|
"@eslint/js": "^9.39.1",
|
|
25
25
|
"@eslint/markdown": "^7.5.1",
|
|
26
26
|
"@types/confusing-browser-globals": "^1.0.3",
|