@arcgis/eslint-config 5.2.0-next.2 → 5.2.0-next.21

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.
Files changed (64) hide show
  1. package/dist/config/applications.d.ts +4 -3
  2. package/dist/config/applications.js +4 -4
  3. package/dist/config/extra.d.ts +4 -24
  4. package/dist/config/extra.js +2 -2
  5. package/dist/config/index.d.ts +3 -2
  6. package/dist/config/index.js +7 -10
  7. package/dist/config/lumina.d.ts +4 -3
  8. package/dist/config/lumina.js +8 -8
  9. package/dist/{estree-DW92hBTd.js → estree-CDc-die8.js} +1 -39
  10. package/dist/makePlugin-GmKey29v.js +41 -0
  11. package/dist/plugins/core/index.d.ts +4 -0
  12. package/dist/plugins/core/index.js +702 -0
  13. package/dist/plugins/lumina/index.d.ts +4 -5
  14. package/dist/plugins/lumina/index.js +2 -1
  15. package/dist/plugins/utils/makePlugin.d.ts +15 -16
  16. package/dist/plugins/webgis/index.d.ts +4 -5
  17. package/dist/plugins/webgis/index.js +794 -119
  18. package/dist/utils/defineBoundaries.d.ts +22 -38
  19. package/dist/utils/disableRules.d.ts +6 -6
  20. package/package.json +4 -2
  21. package/dist/config/storybook.d.ts +0 -2
  22. package/dist/plugins/lumina/plugin.d.ts +0 -8
  23. package/dist/plugins/lumina/rules/add-missing-jsx-import.d.ts +0 -2
  24. package/dist/plugins/lumina/rules/auto-add-type.d.ts +0 -3
  25. package/dist/plugins/lumina/rules/ban-events.d.ts +0 -6
  26. package/dist/plugins/lumina/rules/component-placement-rules.d.ts +0 -2
  27. package/dist/plugins/lumina/rules/consistent-event-naming.d.ts +0 -15
  28. package/dist/plugins/lumina/rules/consistent-nullability.d.ts +0 -2
  29. package/dist/plugins/lumina/rules/decorators-context.d.ts +0 -2
  30. package/dist/plugins/lumina/rules/explicit-setter-type.d.ts +0 -19
  31. package/dist/plugins/lumina/rules/member-ordering/build.d.ts +0 -4
  32. package/dist/plugins/lumina/rules/member-ordering/comments.d.ts +0 -19
  33. package/dist/plugins/lumina/rules/member-ordering/config.d.ts +0 -36
  34. package/dist/plugins/lumina/rules/member-ordering/normalize.d.ts +0 -10
  35. package/dist/plugins/lumina/rules/member-ordering.d.ts +0 -2
  36. package/dist/plugins/lumina/rules/no-create-element-component.d.ts +0 -2
  37. package/dist/plugins/lumina/rules/no-ignore-jsdoc-tag.d.ts +0 -2
  38. package/dist/plugins/lumina/rules/no-incorrect-dynamic-tag-name.d.ts +0 -3
  39. package/dist/plugins/lumina/rules/no-inline-arrow-in-ref.d.ts +0 -2
  40. package/dist/plugins/lumina/rules/no-inline-exposure-jsdoc-tag.d.ts +0 -2
  41. package/dist/plugins/lumina/rules/no-invalid-directives-prop.d.ts +0 -2
  42. package/dist/plugins/lumina/rules/no-jsdoc-xref-links.d.ts +0 -2
  43. package/dist/plugins/lumina/rules/no-jsx-spread.d.ts +0 -2
  44. package/dist/plugins/lumina/rules/no-listen-in-connected-callback.d.ts +0 -2
  45. package/dist/plugins/lumina/rules/no-non-component-exports.d.ts +0 -2
  46. package/dist/plugins/lumina/rules/no-property-name-start-with-on.d.ts +0 -2
  47. package/dist/plugins/lumina/rules/no-render-false.d.ts +0 -3
  48. package/dist/plugins/lumina/rules/no-unnecessary-assertion-on-event.d.ts +0 -3
  49. package/dist/plugins/lumina/rules/no-unnecessary-attribute-name.d.ts +0 -2
  50. package/dist/plugins/lumina/rules/no-unnecessary-bind-this.d.ts +0 -2
  51. package/dist/plugins/lumina/rules/no-unnecessary-key.d.ts +0 -2
  52. package/dist/plugins/lumina/rules/tag-name-rules.d.ts +0 -8
  53. package/dist/plugins/lumina/utils/checker.d.ts +0 -4
  54. package/dist/plugins/lumina/utils/estree.d.ts +0 -33
  55. package/dist/plugins/lumina/utils/tags.d.ts +0 -14
  56. package/dist/plugins/utils/helpers.d.ts +0 -2
  57. package/dist/plugins/webgis/plugin.d.ts +0 -8
  58. package/dist/plugins/webgis/rules/consistent-logging.d.ts +0 -2
  59. package/dist/plugins/webgis/rules/no-dts-files.d.ts +0 -2
  60. package/dist/plugins/webgis/rules/no-import-outside-src.d.ts +0 -2
  61. package/dist/plugins/webgis/rules/no-story-render-args-type-annotation.d.ts +0 -2
  62. package/dist/plugins/webgis/rules/no-touching-jsdoc.d.ts +0 -2
  63. package/dist/plugins/webgis/rules/no-unsafe-hash-links.d.ts +0 -2
  64. package/dist/plugins/webgis/rules/require-js-in-imports.d.ts +0 -2
@@ -1,44 +1,28 @@
1
- import { TSESLint } from '@typescript-eslint/utils';
2
- /**
3
- * Restrict which parts of the package can import what packages.
4
- *
5
- * @public
6
- */
1
+ import type { TSESLint } from "@typescript-eslint/utils";
2
+
3
+ /** Restrict which parts of the package can import what packages. */
7
4
  export interface Boundaries<BoundaryNames extends string, DependencyNames extends string> {
8
- /**
9
- * List all dependencies that may be imported in src/.
10
- *
11
- * @public
12
- */
13
- dependencyNames: readonly DependencyNames[];
14
- /**
15
- * Define the boundaries within the package and their allowed dependencies.
16
- * Boundary name must start with `./` and be a path relative to the src/ folder.
17
- * For example, `./components`
18
- *
19
- * @public
20
- */
21
- boundaries: Record<BoundaryNames, Boundary<BoundaryNames, DependencyNames>>;
5
+ /** List all dependencies that may be imported in src/. */
6
+ dependencyNames: readonly DependencyNames[];
7
+ /**
8
+ * Define the boundaries within the package and their allowed dependencies.
9
+ * Boundary name must start with `./` and be a path relative to the src/ folder.
10
+ * For example, `./components`
11
+ */
12
+ boundaries: Record<BoundaryNames, Boundary<BoundaryNames, DependencyNames>>;
13
+ }
14
+
15
+ export interface Boundary<BoundaryNames extends string, DependencyNames extends string> {
16
+ /** Dependencies this boundary may import. */
17
+ allowedDependencies: readonly DependencyNames[];
18
+ /** Boundaries this boundary may import. */
19
+ allowedBoundaries: readonly BoundaryNames[];
22
20
  }
23
- /** @public */
24
- export type Boundary<BoundaryNames extends string, DependencyNames extends string> = {
25
- /**
26
- * Dependencies this boundary may import.
27
- *
28
- * @public
29
- */
30
- allowedDependencies: readonly DependencyNames[];
31
- /**
32
- * Boundaries this boundary may import.
33
- *
34
- * @public
35
- */
36
- allowedBoundaries: readonly BoundaryNames[];
37
- };
21
+
38
22
  /**
39
23
  * @param boundaries
40
24
  * @param monorepoRoot
41
- * @param basePath example: "packages/ai-packages/ai-components/src"
42
- * @public
25
+ * @param basePath - example: "packages/ai-packages/ai-components/src"
26
+ * @param message
43
27
  */
44
- export declare function boundariesToEslintRules(boundaries: Boundaries<string, string>, monorepoRoot: string, basePath: string, message: string): TSESLint.FlatConfig.Config[];
28
+ export function boundariesToEslintRules(boundaries: Boundaries<string, string>, monorepoRoot: string, basePath: string, message: string): TSESLint.FlatConfig.Config[];
@@ -1,14 +1,14 @@
1
- import { TSESLint } from '@typescript-eslint/utils';
1
+ import type { TSESLint } from "@typescript-eslint/utils";
2
+
2
3
  /**
3
4
  * A utility for temporary running ESLint with only specific rules enabled.
4
5
  *
5
- * @param config flat config
6
- * @param enabledRules exceptions
7
- * @param disableTypeChecking make ESLint much faster by temporary disabling
6
+ * @param config - flat config
7
+ * @param enabledRules - exceptions
8
+ * @param disableTypeChecking - make ESLint much faster by temporary disabling
8
9
  * type-aware linting.
9
10
  * @returns a new flat config array where every rule is disabled,
10
11
  * except for rules explicitly listed in `enabledRules`.
11
- *
12
12
  * @example
13
13
  * const config = [
14
14
  * // Your ESLint flat config
@@ -21,4 +21,4 @@ import { TSESLint } from '@typescript-eslint/utils';
21
21
  * true,
22
22
  * );
23
23
  */
24
- export declare function disableAllRulesExcept(config: TSESLint.FlatConfig.ConfigArray, enabledRules: Record<string, TSESLint.FlatConfig.RuleLevel>, disableTypeChecking: boolean): TSESLint.FlatConfig.ConfigArray;
24
+ export function disableAllRulesExcept(config: TSESLint.FlatConfig.ConfigArray, enabledRules: Record<string, TSESLint.FlatConfig.RuleLevel>, disableTypeChecking: boolean): TSESLint.FlatConfig.ConfigArray;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/eslint-config",
3
- "version": "5.2.0-next.2",
3
+ "version": "5.2.0-next.21",
4
4
  "description": "ESLint configuration for WebGIS SDK",
5
5
  "type": "module",
6
6
  "exports": {
@@ -8,6 +8,7 @@
8
8
  "./application": "./dist/config/applications.js",
9
9
  "./extra": "./dist/config/extra.js",
10
10
  "./lumina": "./dist/config/lumina.js",
11
+ "./plugins/core": "./dist/plugins/core/index.js",
11
12
  "./plugins/webgis": "./dist/plugins/webgis/index.js",
12
13
  "./plugins/lumina": "./dist/plugins/lumina/index.js",
13
14
  "./utils/defineBoundaries": "./dist/utils/defineBoundaries.js",
@@ -30,10 +31,11 @@
30
31
  "eslint-plugin-storybook": "^10.3.4",
31
32
  "globals": "^16.5.0",
32
33
  "jsonc-eslint-parser": "^3.1.0",
34
+ "prettier-linter-helpers": "^1.0.1",
33
35
  "tslib": "^2.8.1",
34
36
  "typescript": "~6.0.2",
35
37
  "typescript-eslint": "^8.58.0",
36
- "@arcgis/toolkit": "5.2.0-next.2"
38
+ "@arcgis/toolkit": "5.2.0-next.21"
37
39
  },
38
40
  "peerDependencies": {
39
41
  "eslint": "^10.2.0"
@@ -1,2 +0,0 @@
1
- import { TSESLint } from '@typescript-eslint/utils';
2
- export declare const storybookConfig: TSESLint.FlatConfig.ConfigArray;
@@ -1,8 +0,0 @@
1
- export declare const plugin: {
2
- createRule: <Options extends readonly unknown[], MessageIds extends string>({ meta, name, ...rule }: Readonly<import('@typescript-eslint/utils/eslint-utils').RuleWithMetaAndName<Options, MessageIds, Omit<import('../utils/makePlugin.ts').CommonDocs, "name">>>) => import('@typescript-eslint/utils/ts-eslint').RuleModule<MessageIds, Options, import('../utils/makePlugin.ts').CommonDocs, import('@typescript-eslint/utils/ts-eslint').RuleListener>;
3
- finalize: () => import("typescript-eslint").FlatConfig.Plugin & {
4
- configs: {
5
- recommended: import("typescript-eslint").FlatConfig.Config;
6
- };
7
- };
8
- };
@@ -1,2 +0,0 @@
1
- declare const _default: import('@typescript-eslint/utils/ts-eslint').RuleModule<"addMissingJsxImport", [], import('../../utils/makePlugin.ts').CommonDocs, import('@typescript-eslint/utils/ts-eslint').RuleListener>;
2
- export default _default;
@@ -1,3 +0,0 @@
1
- import { ESLintUtils } from '@typescript-eslint/utils';
2
- declare const _default: ESLintUtils.RuleModule<"addType" | "typeAnnotationMismatchesActualType" | "noEmptyPropertyObject" | "noUnnecessaryType" | "unhandledType", [], import('../../utils/makePlugin.ts').CommonDocs, ESLintUtils.RuleListener>;
3
- export default _default;
@@ -1,6 +0,0 @@
1
- type Options = (string | {
2
- event: string;
3
- message?: string;
4
- })[];
5
- declare const _default: import('@typescript-eslint/utils/ts-eslint').RuleModule<"default", Options, import('../../utils/makePlugin.ts').CommonDocs, import('@typescript-eslint/utils/ts-eslint').RuleListener>;
6
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import('@typescript-eslint/utils/ts-eslint').RuleModule<"fileFolderNameMismatch" | "extensionNotTsx" | "noComponentOutsideSrcComponents", [], import('../../utils/makePlugin.ts').CommonDocs, import('@typescript-eslint/utils/ts-eslint').RuleListener>;
2
- export default _default;
@@ -1,15 +0,0 @@
1
- type Options = [
2
- {
3
- /**
4
- * Enforce that events start with a given prefix
5
- */
6
- eventNamespaces?: readonly string[];
7
- /**
8
- * Enforce or forbid events to include the component name in the event name
9
- */
10
- includeComponentNameInEventName?: boolean;
11
- }
12
- ];
13
- type Messages = "componentNameInEventError" | "eventNamespaceError" | "missingPrivateJsDocTag" | "noComponentNameInEventError";
14
- declare const _default: import('@typescript-eslint/utils/ts-eslint').RuleModule<Messages, Options, import('../../utils/makePlugin.ts').CommonDocs, import('@typescript-eslint/utils/ts-eslint').RuleListener>;
15
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import('@typescript-eslint/utils/ts-eslint').RuleModule<"consistentNullabilityError" | "removeNeedlessDefault", [], import('../../utils/makePlugin.ts').CommonDocs, import('@typescript-eslint/utils/ts-eslint').RuleListener>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import('@typescript-eslint/utils/ts-eslint').RuleModule<"publicApiMustBePublic" | "noPropertyDecoratorOnMethods" | "noCombinedPropertyEvent" | "noCombinedPropertyState" | "noComputedName", [], import('../../utils/makePlugin.ts').CommonDocs, import('@typescript-eslint/utils/ts-eslint').RuleListener>;
2
- export default _default;
@@ -1,19 +0,0 @@
1
- import { ESLintUtils } from '@typescript-eslint/utils';
2
- /**
3
- * @remarks
4
- * It is easier to to do this in an ESLint rule rather than at build-time.
5
- * Reason:
6
- * - TypeScript does not have a syntax for retrieving the setter type
7
- * (https://github.com/microsoft/TypeScript/issues/60162)
8
- * - While we could copy the setter type from bound setter at build-time,
9
- * copying types between files is tricky because of need for adding correct
10
- * imports for anything referenced in that type and not already included in
11
- * current file. Doing so in automated way is quite tricky, slow and
12
- * error-prone.
13
- *
14
- * Instead, this rule will require developer to explicitly provide the setter
15
- * type. Then we can use it as is in the .d.ts file. The getter type can be
16
- * retrieved easily via `typeof` operator.
17
- */
18
- declare const _default: ESLintUtils.RuleModule<"explicitSetterType" | "addExplicitSetterType", [], import('../../utils/makePlugin.ts').CommonDocs, ESLintUtils.RuleListener>;
19
- export default _default;
@@ -1,4 +0,0 @@
1
- import { StrayComments } from './comments.ts';
2
- import { NormalizedRegions } from './normalize.ts';
3
- import { TSESLint } from '@typescript-eslint/utils';
4
- export declare function buildNewBody(normalizedRegions: NormalizedRegions, strayComments: Omit<StrayComments, "membersByName">, sourceCode: TSESLint.SourceCode): string;
@@ -1,19 +0,0 @@
1
- import { TSESLint, TSESTree } from '@typescript-eslint/utils';
2
- import { MemberData } from './config.ts';
3
- export type StrayComments = {
4
- header: TSESTree.Comment[];
5
- regionFooter: Map<string, {
6
- comments: TSESTree.Comment[];
7
- lastMember: MemberData;
8
- }>;
9
- memberLineEnd: Map<MemberData, TSESTree.Comment[]>;
10
- footer: TSESTree.Comment[];
11
- membersByName: Map<string, MemberData[]>;
12
- };
13
- export declare function categorizeComments(membersData: readonly MemberData[], sourceCode: TSESLint.SourceCode): StrayComments;
14
- export declare const normalizeComments: (comments: readonly TSESTree.Comment[] | undefined, sourceCode: Readonly<TSESLint.SourceCode>, indent?: string) => string;
15
- export declare const join: (left: string, right: string, joiner?: string) => string;
16
- export declare const parseRegionComment: (comment: TSESTree.Comment) => {
17
- end?: string;
18
- name: string;
19
- } | undefined;
@@ -1,36 +0,0 @@
1
- import { TSESTree } from '@typescript-eslint/utils';
2
- /**
3
- * Fred:
4
- * I got this order by observing how much navigation I have been doing in the
5
- * file and which regions I have to jump to the most in post development for
6
- * bugs and enhancements.
7
- */
8
- export declare const ordering: readonly ["Static Members", "Private Properties", "State Properties", "Public Properties", "Public Methods", "Events", "Lifecycle", "Private Methods", "Rendering"];
9
- export declare const getWireframe: () => Map<RegionName, MemberData[]>;
10
- export type MemberData = {
11
- readonly name: string;
12
- readonly member: TSESTree.ClassElement;
13
- comments: readonly TSESTree.Comment[];
14
- readonly region: RegionName;
15
- };
16
- export declare const regionMatchers: ["Static Members" | "Private Properties" | "State Properties" | "Public Properties" | "Public Methods" | "Events" | "Lifecycle" | "Private Methods" | "Rendering", ((node: TSESTree.ClassElement) => boolean) | ((_node: TSESTree.ClassElement, name: string) => boolean) | ((node: TSESTree.ClassElement) => boolean) | ((node: TSESTree.ClassElement) => boolean) | ((node: TSESTree.ClassElement) => boolean) | typeof isEvent | ((_node: TSESTree.ClassElement, name: string) => boolean) | ((node: TSESTree.ClassElement) => boolean) | (() => true)][];
17
- export type RegionName = (typeof regionMatchers)[number][0];
18
- export declare const definitelyComponentRegions: Set<"Static Members" | "Private Properties" | "State Properties" | "Public Properties" | "Public Methods" | "Events" | "Lifecycle" | "Private Methods" | "Rendering">;
19
- export declare const regionsArray: ("Static Members" | "Private Properties" | "State Properties" | "Public Properties" | "Public Methods" | "Events" | "Lifecycle" | "Private Methods" | "Rendering")[];
20
- /**
21
- * Detect if property is an event.
22
- *
23
- * @example
24
- * ```tsx
25
- * arcgisClick = createEvent();
26
- * arcgisPropertyChange = usePropertyChange<this>()("count");
27
- * arcgisPropertyChange!: EventEmitter<never>;
28
- * ```
29
- */
30
- declare function isEvent(node: TSESTree.ClassElement, name: string): boolean;
31
- /**
32
- * Support both Stencil and Lumina components for now
33
- */
34
- export declare const lifecycles: string[];
35
- export declare const supportedNodeTypes: Record<TSESTree.ClassElement["type"], boolean>;
36
- export {};
@@ -1,10 +0,0 @@
1
- import { StrayComments } from './comments.ts';
2
- import { MemberData, RegionName } from './config.ts';
3
- export type NormalizedRegions = readonly (readonly [RegionName, MemberData[]])[];
4
- export declare function getNormalizedRegions(membersByName: StrayComments["membersByName"]): NormalizedRegions;
5
- /**
6
- * If there were footer comments in a region that no longer exists, attach
7
- * those footer comments to the region that the last node of that region is
8
- * in.
9
- */
10
- export declare function reParentOrphanFooterComments(normalizedRegions: NormalizedRegions, regionFooter: StrayComments["regionFooter"]): void;
@@ -1,2 +0,0 @@
1
- declare const _default: import('@typescript-eslint/utils/ts-eslint').RuleModule<"memberOrdering" | "unsupportedElementType", [], import('../../utils/makePlugin.ts').CommonDocs, import('@typescript-eslint/utils/ts-eslint').RuleListener>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import('@typescript-eslint/utils/ts-eslint').RuleModule<"default", [], import('../../utils/makePlugin.ts').CommonDocs, import('@typescript-eslint/utils/ts-eslint').RuleListener>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import('@typescript-eslint/utils/ts-eslint').RuleModule<"noIgnoreJsDocTag", [], import('../../utils/makePlugin.ts').CommonDocs, import('@typescript-eslint/utils/ts-eslint').RuleListener>;
2
- export default _default;
@@ -1,3 +0,0 @@
1
- import { ESLintUtils } from '@typescript-eslint/utils';
2
- declare const _default: ESLintUtils.RuleModule<"incorrectDynamicTagName", [], import('../../utils/makePlugin.ts').CommonDocs, ESLintUtils.RuleListener>;
3
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import('@typescript-eslint/utils/ts-eslint').RuleModule<"errorInlineArrow", [], import('../../utils/makePlugin.ts').CommonDocs, import('@typescript-eslint/utils/ts-eslint').RuleListener>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import('@typescript-eslint/utils/ts-eslint').RuleModule<"inlineExposure", [], import('../../utils/makePlugin.ts').CommonDocs, import('@typescript-eslint/utils/ts-eslint').RuleListener>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import('@typescript-eslint/utils/ts-eslint').RuleModule<"noInvalidDirectivesProp", [], import('../../utils/makePlugin.ts').CommonDocs, import('@typescript-eslint/utils/ts-eslint').RuleListener>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import('@typescript-eslint/utils/ts-eslint').RuleModule<"noJsDocXrefLinks", [], import('../../utils/makePlugin.ts').CommonDocs, import('@typescript-eslint/utils/ts-eslint').RuleListener>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import('@typescript-eslint/utils/ts-eslint').RuleModule<"noJsxSpread", [], import('../../utils/makePlugin.ts').CommonDocs, import('@typescript-eslint/utils/ts-eslint').RuleListener>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import('@typescript-eslint/utils/ts-eslint').RuleModule<"errorListenInConnectedCallback", [], import('../../utils/makePlugin.ts').CommonDocs, import('@typescript-eslint/utils/ts-eslint').RuleListener>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import('@typescript-eslint/utils/ts-eslint').RuleModule<"noNonComponentExports" | "noDefaultExports" | "noExportAll", [], import('../../utils/makePlugin.ts').CommonDocs, import('@typescript-eslint/utils/ts-eslint').RuleListener>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import('@typescript-eslint/utils/ts-eslint').RuleModule<"noPropertyNameStartWithOn", [], import('../../utils/makePlugin.ts').CommonDocs, import('@typescript-eslint/utils/ts-eslint').RuleListener>;
2
- export default _default;
@@ -1,3 +0,0 @@
1
- import { ESLintUtils } from '@typescript-eslint/utils';
2
- declare const _default: ESLintUtils.RuleModule<"errorFalseRendered", [], import('../../utils/makePlugin.ts').CommonDocs, ESLintUtils.RuleListener>;
3
- export default _default;
@@ -1,3 +0,0 @@
1
- import { TSESLint } from '@typescript-eslint/utils';
2
- declare const _default: TSESLint.RuleModule<"needlessInlineJsxEventTypeAnnotation" | "redundantTypeAssertion" | "avoidTypeAssertion", [], import('../../utils/makePlugin.ts').CommonDocs, TSESLint.RuleListener>;
3
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import('@typescript-eslint/utils/ts-eslint').RuleModule<"noUnnecessaryAttributeName", [], import('../../utils/makePlugin.ts').CommonDocs, import('@typescript-eslint/utils/ts-eslint').RuleListener>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import('@typescript-eslint/utils/ts-eslint').RuleModule<"noUnnecessaryBindThis", [], import('../../utils/makePlugin.ts').CommonDocs, import('@typescript-eslint/utils/ts-eslint').RuleListener>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import('@typescript-eslint/utils/ts-eslint').RuleModule<"noUnnecessaryKey", [], import('../../utils/makePlugin.ts').CommonDocs, import('@typescript-eslint/utils/ts-eslint').RuleListener>;
2
- export default _default;
@@ -1,8 +0,0 @@
1
- type Options = [
2
- {
3
- namespaces?: readonly string[];
4
- }
5
- ];
6
- type Messages = "duplicateDeclaration" | "duplicateDeclareGlobal" | "invalidTagName" | "lowercaseTagName" | "missingClassDeclaration" | "missingHyphen" | "multipleDeclarations" | "mustNotSubclassHtmlElement" | "mustSubclass" | "noComputedTagName" | "noNonStringTagName" | "noTagNameIdentifier" | "requireNamespace" | "reservedTagName" | "tagNameClassNameMismatch" | "unexpectedDeclarationType" | "unexpectedDeclareElementsEntry" | "unexpectedTypeArguments";
7
- declare const _default: import('@typescript-eslint/utils/ts-eslint').RuleModule<Messages, Options, import('../../utils/makePlugin.ts').CommonDocs, import('@typescript-eslint/utils/ts-eslint').RuleListener>;
8
- export default _default;
@@ -1,4 +0,0 @@
1
- import { default as ts } from 'typescript';
2
- export declare function isLuminaJsxType(type: ts.Type): boolean;
3
- export declare const hasTypeFlag: (type: ts.Type, flag: ts.TypeFlags) => boolean;
4
- export declare const literalTypeFlag: number;
@@ -1,33 +0,0 @@
1
- import { TSESTree } from '@typescript-eslint/utils';
2
- export declare const unwrapExpression: <T extends TSESTree.Node>(expression: T) => T | TSESTree.Expression;
3
- export declare const luminaEntrypointName = "@arcgis/lumina";
4
- export declare const luminaTestEntrypointName = "@arcgis/lumina-compiler/testing";
5
- export declare const luminaJsxExportName = "h";
6
- type LuminaJsxCheck = (node: TSESTree.ImportDeclaration) => void;
7
- export declare function checkForLuminaJsx(): LuminaJsxCheck & {
8
- isLuminaJsx: boolean;
9
- };
10
- export declare function hasDecorator(node: Pick<TSESTree.PropertyDefinitionNonComputedName, "decorators">, decoratorName: string): boolean;
11
- export declare function extractDeclareElementsInterface(node: TSESTree.TSModuleDeclaration): TSESTree.TSInterfaceDeclaration | undefined;
12
- export declare function getComponentDeclaration(node: TSESTree.TSInterfaceDeclaration): {
13
- key: TSESTree.Literal;
14
- typeAnnotation: {
15
- typeAnnotation: {
16
- typeName: TSESTree.Identifier;
17
- };
18
- };
19
- } | undefined;
20
- export declare const sourceCodeDeclaresComponent: (sourceCode: {
21
- readonly text: string;
22
- }) => boolean;
23
- export declare function isCreateEvent(node: TSESTree.PropertyDefinition): boolean;
24
- export declare const getProperty: (properties: TSESTree.ObjectLiteralElement[] | undefined, name: string) => TSESTree.Property["value"] | undefined;
25
- export declare function isGetterWithoutSetter(node: TSESTree.MethodDefinition | TSESTree.PropertyDefinition): boolean;
26
- export declare function getName(node: Pick<TSESTree.PropertyDefinition, "key">): string | undefined;
27
- export declare function parsePropertyDecorator(decorator: TSESTree.Decorator): {
28
- readonly callExpression: TSESTree.CallExpression;
29
- readonly options: TSESTree.ObjectExpression | undefined;
30
- readonly properties: TSESTree.ObjectLiteralElement[] | undefined;
31
- } | undefined;
32
- export declare function isBindThisCallee(callee: TSESTree.Expression): callee is TSESTree.MemberExpression;
33
- export {};
@@ -1,14 +0,0 @@
1
- /**
2
- * Although most native elements do not contain dashes inside, there are a
3
- * few exceptions. Explicitly declaring a custom element by this name is
4
- * forbidden
5
- *
6
- * @see https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry/define#valid_custom_element_names
7
- */
8
- export declare const blockListedCustomElementNames: Set<string>;
9
- /**
10
- * Simple check based on:
11
- * - https://html.spec.whatwg.org/multipage/custom-elements.html#valid-custom-element-name
12
- * - https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry/define#valid_custom_element_names
13
- */
14
- export declare function isCustomElementTag(tag: string): boolean;
@@ -1,2 +0,0 @@
1
- export declare const isTestFile: (filePath: string) => boolean;
2
- export declare const isStorybookFile: (filePath: string) => boolean;
@@ -1,8 +0,0 @@
1
- export declare const plugin: {
2
- createRule: <Options extends readonly unknown[], MessageIds extends string>({ meta, name, ...rule }: Readonly<import('@typescript-eslint/utils/eslint-utils').RuleWithMetaAndName<Options, MessageIds, Omit<import('../utils/makePlugin.ts').CommonDocs, "name">>>) => import('@typescript-eslint/utils/ts-eslint').RuleModule<MessageIds, Options, import('../utils/makePlugin.ts').CommonDocs, import('@typescript-eslint/utils/ts-eslint').RuleListener>;
3
- finalize: () => import("typescript-eslint").FlatConfig.Plugin & {
4
- configs: {
5
- recommended: import("typescript-eslint").FlatConfig.Config;
6
- };
7
- };
8
- };
@@ -1,2 +0,0 @@
1
- declare const _default: import('@typescript-eslint/utils/ts-eslint').RuleModule<"consistentLoggingWarning", [], import('../../utils/makePlugin.ts').CommonDocs, import('@typescript-eslint/utils/ts-eslint').RuleListener>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import('@typescript-eslint/utils/ts-eslint').RuleModule<"avoidDtsFiles", [], import('../../utils/makePlugin.ts').CommonDocs, import('@typescript-eslint/utils/ts-eslint').RuleListener>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import('@typescript-eslint/utils/ts-eslint').RuleModule<"noImportOutsideSrc", [], import('../../utils/makePlugin.ts').CommonDocs, import('@typescript-eslint/utils/ts-eslint').RuleListener>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import('@typescript-eslint/utils/ts-eslint').RuleModule<"noStoryRenderArgsTypeAnnotation", [], import('../../utils/makePlugin.ts').CommonDocs, import('@typescript-eslint/utils/ts-eslint').RuleListener>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import('@typescript-eslint/utils/ts-eslint').RuleModule<"noTouchingJsDoc", [], import('../../utils/makePlugin.ts').CommonDocs, import('@typescript-eslint/utils/ts-eslint').RuleListener>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import('@typescript-eslint/utils/ts-eslint').RuleModule<"error", [], import('../../utils/makePlugin.ts').CommonDocs, import('@typescript-eslint/utils/ts-eslint').RuleListener>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import('@typescript-eslint/utils/ts-eslint').RuleModule<"requireJsInCoreImport", [], import('../../utils/makePlugin.ts').CommonDocs, import('@typescript-eslint/utils/ts-eslint').RuleListener>;
2
- export default _default;