@angular-eslint/eslint-plugin-template 17.3.1-alpha.9 → 17.4.1-alpha.0

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 (105) hide show
  1. package/dist/configs/accessibility.json +15 -15
  2. package/dist/configs/all.json +33 -33
  3. package/dist/configs/process-inline-templates.json +7 -7
  4. package/dist/configs/recommended.json +7 -7
  5. package/dist/index.d.ts +152 -0
  6. package/dist/index.d.ts.map +1 -0
  7. package/dist/processors.d.ts +38 -0
  8. package/dist/processors.d.ts.map +1 -0
  9. package/dist/rules/alt-text.d.ts +5 -0
  10. package/dist/rules/alt-text.d.ts.map +1 -0
  11. package/dist/rules/attributes-order.d.ts +19 -0
  12. package/dist/rules/attributes-order.d.ts.map +1 -0
  13. package/dist/rules/attributes-order.js +31 -22
  14. package/dist/rules/banana-in-box.d.ts +5 -0
  15. package/dist/rules/banana-in-box.d.ts.map +1 -0
  16. package/dist/rules/button-has-type.d.ts +6 -0
  17. package/dist/rules/button-has-type.d.ts.map +1 -0
  18. package/dist/rules/click-events-have-key-events.d.ts +5 -0
  19. package/dist/rules/click-events-have-key-events.d.ts.map +1 -0
  20. package/dist/rules/conditional-complexity.d.ts +8 -0
  21. package/dist/rules/conditional-complexity.d.ts.map +1 -0
  22. package/dist/rules/cyclomatic-complexity.d.ts +8 -0
  23. package/dist/rules/cyclomatic-complexity.d.ts.map +1 -0
  24. package/dist/rules/elements-content.d.ts +10 -0
  25. package/dist/rules/elements-content.d.ts.map +1 -0
  26. package/dist/rules/eqeqeq.d.ts +9 -0
  27. package/dist/rules/eqeqeq.d.ts.map +1 -0
  28. package/dist/rules/i18n.d.ts +19 -0
  29. package/dist/rules/i18n.d.ts.map +1 -0
  30. package/dist/rules/interactive-supports-focus.d.ts +5 -0
  31. package/dist/rules/interactive-supports-focus.d.ts.map +1 -0
  32. package/dist/rules/label-has-associated-control.d.ts +15 -0
  33. package/dist/rules/label-has-associated-control.d.ts.map +1 -0
  34. package/dist/rules/mouse-events-have-key-events.d.ts +6 -0
  35. package/dist/rules/mouse-events-have-key-events.d.ts.map +1 -0
  36. package/dist/rules/mouse-events-have-key-events.js +13 -3
  37. package/dist/rules/no-any.d.ts +5 -0
  38. package/dist/rules/no-any.d.ts.map +1 -0
  39. package/dist/rules/no-autofocus.d.ts +5 -0
  40. package/dist/rules/no-autofocus.d.ts.map +1 -0
  41. package/dist/rules/no-call-expression.d.ts +10 -0
  42. package/dist/rules/no-call-expression.d.ts.map +1 -0
  43. package/dist/rules/no-distracting-elements.d.ts +5 -0
  44. package/dist/rules/no-distracting-elements.d.ts.map +1 -0
  45. package/dist/rules/no-duplicate-attributes.d.ts +12 -0
  46. package/dist/rules/no-duplicate-attributes.d.ts.map +1 -0
  47. package/dist/rules/no-inline-styles.d.ts +11 -0
  48. package/dist/rules/no-inline-styles.d.ts.map +1 -0
  49. package/dist/rules/no-interpolation-in-attributes.d.ts +5 -0
  50. package/dist/rules/no-interpolation-in-attributes.d.ts.map +1 -0
  51. package/dist/rules/no-negated-async.d.ts +8 -0
  52. package/dist/rules/no-negated-async.d.ts.map +1 -0
  53. package/dist/rules/no-positive-tabindex.d.ts +5 -0
  54. package/dist/rules/no-positive-tabindex.d.ts.map +1 -0
  55. package/dist/rules/prefer-control-flow.d.ts +5 -0
  56. package/dist/rules/prefer-control-flow.d.ts.map +1 -0
  57. package/dist/rules/prefer-ngsrc.d.ts +5 -0
  58. package/dist/rules/prefer-ngsrc.d.ts.map +1 -0
  59. package/dist/rules/prefer-self-closing-tags.d.ts +5 -0
  60. package/dist/rules/prefer-self-closing-tags.d.ts.map +1 -0
  61. package/dist/rules/role-has-required-aria.d.ts +5 -0
  62. package/dist/rules/role-has-required-aria.d.ts.map +1 -0
  63. package/dist/rules/table-scope.d.ts +5 -0
  64. package/dist/rules/table-scope.d.ts.map +1 -0
  65. package/dist/rules/use-track-by-function.d.ts +8 -0
  66. package/dist/rules/use-track-by-function.d.ts.map +1 -0
  67. package/dist/rules/valid-aria.d.ts +5 -0
  68. package/dist/rules/valid-aria.d.ts.map +1 -0
  69. package/dist/utils/attributes-comparator.d.ts +4 -0
  70. package/dist/utils/attributes-comparator.d.ts.map +1 -0
  71. package/dist/utils/constants.d.ts +9 -0
  72. package/dist/utils/constants.d.ts.map +1 -0
  73. package/dist/utils/create-eslint-rule.d.ts +3 -0
  74. package/dist/utils/create-eslint-rule.d.ts.map +1 -0
  75. package/dist/utils/get-attribute-value.d.ts +13 -0
  76. package/dist/utils/get-attribute-value.d.ts.map +1 -0
  77. package/dist/utils/get-dom-elements.d.ts +2 -0
  78. package/dist/utils/get-dom-elements.d.ts.map +1 -0
  79. package/dist/utils/get-nearest-node-from.d.ts +7 -0
  80. package/dist/utils/get-nearest-node-from.d.ts.map +1 -0
  81. package/dist/utils/get-original-attribute-name.d.ts +14 -0
  82. package/dist/utils/get-original-attribute-name.d.ts.map +1 -0
  83. package/dist/utils/is-child-node-of.d.ts +3 -0
  84. package/dist/utils/is-child-node-of.d.ts.map +1 -0
  85. package/dist/utils/is-content-editable.d.ts +3 -0
  86. package/dist/utils/is-content-editable.d.ts.map +1 -0
  87. package/dist/utils/is-disabled-element.d.ts +3 -0
  88. package/dist/utils/is-disabled-element.d.ts.map +1 -0
  89. package/dist/utils/is-hidden-from-screen-reader.d.ts +10 -0
  90. package/dist/utils/is-hidden-from-screen-reader.d.ts.map +1 -0
  91. package/dist/utils/is-interactive-element/get-interactive-element-ax-object-schemas.d.ts +10 -0
  92. package/dist/utils/is-interactive-element/get-interactive-element-ax-object-schemas.d.ts.map +1 -0
  93. package/dist/utils/is-interactive-element/get-interactive-element-role-schemas.d.ts +3 -0
  94. package/dist/utils/is-interactive-element/get-interactive-element-role-schemas.d.ts.map +1 -0
  95. package/dist/utils/is-interactive-element/get-non-interactive-element-role-schemas.d.ts +4 -0
  96. package/dist/utils/is-interactive-element/get-non-interactive-element-role-schemas.d.ts.map +1 -0
  97. package/dist/utils/is-interactive-element/index.d.ts +10 -0
  98. package/dist/utils/is-interactive-element/index.d.ts.map +1 -0
  99. package/dist/utils/is-presentation-role.d.ts +3 -0
  100. package/dist/utils/is-presentation-role.d.ts.map +1 -0
  101. package/dist/utils/is-semantic-role-element.d.ts +3 -0
  102. package/dist/utils/is-semantic-role-element.d.ts.map +1 -0
  103. package/dist/utils/to-pattern.d.ts +2 -0
  104. package/dist/utils/to-pattern.d.ts.map +1 -0
  105. package/package.json +6 -5
@@ -1,17 +1,17 @@
1
1
  {
2
- "parser": "@angular-eslint/template-parser",
3
- "plugins": ["@angular-eslint/template"],
4
- "rules": {
5
- "@angular-eslint/template/alt-text": "error",
6
- "@angular-eslint/template/click-events-have-key-events": "error",
7
- "@angular-eslint/template/elements-content": "error",
8
- "@angular-eslint/template/interactive-supports-focus": "error",
9
- "@angular-eslint/template/label-has-associated-control": "error",
10
- "@angular-eslint/template/mouse-events-have-key-events": "error",
11
- "@angular-eslint/template/no-autofocus": "error",
12
- "@angular-eslint/template/no-distracting-elements": "error",
13
- "@angular-eslint/template/role-has-required-aria": "error",
14
- "@angular-eslint/template/table-scope": "error",
15
- "@angular-eslint/template/valid-aria": "error"
16
- }
2
+ "parser": "@angular-eslint/template-parser",
3
+ "plugins": ["@angular-eslint/template"],
4
+ "rules": {
5
+ "@angular-eslint/template/alt-text": "error",
6
+ "@angular-eslint/template/click-events-have-key-events": "error",
7
+ "@angular-eslint/template/elements-content": "error",
8
+ "@angular-eslint/template/interactive-supports-focus": "error",
9
+ "@angular-eslint/template/label-has-associated-control": "error",
10
+ "@angular-eslint/template/mouse-events-have-key-events": "error",
11
+ "@angular-eslint/template/no-autofocus": "error",
12
+ "@angular-eslint/template/no-distracting-elements": "error",
13
+ "@angular-eslint/template/role-has-required-aria": "error",
14
+ "@angular-eslint/template/table-scope": "error",
15
+ "@angular-eslint/template/valid-aria": "error"
16
+ }
17
17
  }
@@ -1,35 +1,35 @@
1
1
  {
2
- "parser": "@angular-eslint/template-parser",
3
- "plugins": ["@angular-eslint/template"],
4
- "rules": {
5
- "@angular-eslint/template/alt-text": "error",
6
- "@angular-eslint/template/attributes-order": "error",
7
- "@angular-eslint/template/banana-in-box": "error",
8
- "@angular-eslint/template/button-has-type": "error",
9
- "@angular-eslint/template/click-events-have-key-events": "error",
10
- "@angular-eslint/template/conditional-complexity": "error",
11
- "@angular-eslint/template/cyclomatic-complexity": "error",
12
- "@angular-eslint/template/elements-content": "error",
13
- "@angular-eslint/template/eqeqeq": "error",
14
- "@angular-eslint/template/i18n": "error",
15
- "@angular-eslint/template/interactive-supports-focus": "error",
16
- "@angular-eslint/template/label-has-associated-control": "error",
17
- "@angular-eslint/template/mouse-events-have-key-events": "error",
18
- "@angular-eslint/template/no-any": "error",
19
- "@angular-eslint/template/no-autofocus": "error",
20
- "@angular-eslint/template/no-call-expression": "error",
21
- "@angular-eslint/template/no-distracting-elements": "error",
22
- "@angular-eslint/template/no-duplicate-attributes": "error",
23
- "@angular-eslint/template/no-inline-styles": "error",
24
- "@angular-eslint/template/no-interpolation-in-attributes": "error",
25
- "@angular-eslint/template/no-negated-async": "error",
26
- "@angular-eslint/template/no-positive-tabindex": "error",
27
- "@angular-eslint/template/prefer-control-flow": "error",
28
- "@angular-eslint/template/prefer-ngsrc": "error",
29
- "@angular-eslint/template/prefer-self-closing-tags": "error",
30
- "@angular-eslint/template/role-has-required-aria": "error",
31
- "@angular-eslint/template/table-scope": "error",
32
- "@angular-eslint/template/use-track-by-function": "error",
33
- "@angular-eslint/template/valid-aria": "error"
34
- }
2
+ "parser": "@angular-eslint/template-parser",
3
+ "plugins": ["@angular-eslint/template"],
4
+ "rules": {
5
+ "@angular-eslint/template/alt-text": "error",
6
+ "@angular-eslint/template/attributes-order": "error",
7
+ "@angular-eslint/template/banana-in-box": "error",
8
+ "@angular-eslint/template/button-has-type": "error",
9
+ "@angular-eslint/template/click-events-have-key-events": "error",
10
+ "@angular-eslint/template/conditional-complexity": "error",
11
+ "@angular-eslint/template/cyclomatic-complexity": "error",
12
+ "@angular-eslint/template/elements-content": "error",
13
+ "@angular-eslint/template/eqeqeq": "error",
14
+ "@angular-eslint/template/i18n": "error",
15
+ "@angular-eslint/template/interactive-supports-focus": "error",
16
+ "@angular-eslint/template/label-has-associated-control": "error",
17
+ "@angular-eslint/template/mouse-events-have-key-events": "error",
18
+ "@angular-eslint/template/no-any": "error",
19
+ "@angular-eslint/template/no-autofocus": "error",
20
+ "@angular-eslint/template/no-call-expression": "error",
21
+ "@angular-eslint/template/no-distracting-elements": "error",
22
+ "@angular-eslint/template/no-duplicate-attributes": "error",
23
+ "@angular-eslint/template/no-inline-styles": "error",
24
+ "@angular-eslint/template/no-interpolation-in-attributes": "error",
25
+ "@angular-eslint/template/no-negated-async": "error",
26
+ "@angular-eslint/template/no-positive-tabindex": "error",
27
+ "@angular-eslint/template/prefer-control-flow": "error",
28
+ "@angular-eslint/template/prefer-ngsrc": "error",
29
+ "@angular-eslint/template/prefer-self-closing-tags": "error",
30
+ "@angular-eslint/template/role-has-required-aria": "error",
31
+ "@angular-eslint/template/table-scope": "error",
32
+ "@angular-eslint/template/use-track-by-function": "error",
33
+ "@angular-eslint/template/valid-aria": "error"
34
+ }
35
35
  }
@@ -1,9 +1,9 @@
1
1
  {
2
- "parser": "@typescript-eslint/parser",
3
- "parserOptions": {
4
- "ecmaVersion": 2020,
5
- "sourceType": "module"
6
- },
7
- "plugins": ["@angular-eslint/template"],
8
- "processor": "@angular-eslint/template/extract-inline-html"
2
+ "parser": "@typescript-eslint/parser",
3
+ "parserOptions": {
4
+ "ecmaVersion": 2020,
5
+ "sourceType": "module"
6
+ },
7
+ "plugins": ["@angular-eslint/template"],
8
+ "processor": "@angular-eslint/template/extract-inline-html"
9
9
  }
@@ -1,9 +1,9 @@
1
1
  {
2
- "parser": "@angular-eslint/template-parser",
3
- "plugins": ["@angular-eslint/template"],
4
- "rules": {
5
- "@angular-eslint/template/banana-in-box": "error",
6
- "@angular-eslint/template/eqeqeq": "error",
7
- "@angular-eslint/template/no-negated-async": "error"
8
- }
2
+ "parser": "@angular-eslint/template-parser",
3
+ "plugins": ["@angular-eslint/template"],
4
+ "rules": {
5
+ "@angular-eslint/template/banana-in-box": "error",
6
+ "@angular-eslint/template/eqeqeq": "error",
7
+ "@angular-eslint/template/no-negated-async": "error"
8
+ }
9
9
  }
@@ -0,0 +1,152 @@
1
+ declare const _default: {
2
+ configs: {
3
+ all: {
4
+ parser: string;
5
+ plugins: string[];
6
+ rules: {
7
+ "@angular-eslint/template/alt-text": string;
8
+ "@angular-eslint/template/attributes-order": string;
9
+ "@angular-eslint/template/banana-in-box": string;
10
+ "@angular-eslint/template/button-has-type": string;
11
+ "@angular-eslint/template/click-events-have-key-events": string;
12
+ "@angular-eslint/template/conditional-complexity": string;
13
+ "@angular-eslint/template/cyclomatic-complexity": string;
14
+ "@angular-eslint/template/elements-content": string;
15
+ "@angular-eslint/template/eqeqeq": string;
16
+ "@angular-eslint/template/i18n": string;
17
+ "@angular-eslint/template/interactive-supports-focus": string;
18
+ "@angular-eslint/template/label-has-associated-control": string;
19
+ "@angular-eslint/template/mouse-events-have-key-events": string;
20
+ "@angular-eslint/template/no-any": string;
21
+ "@angular-eslint/template/no-autofocus": string;
22
+ "@angular-eslint/template/no-call-expression": string;
23
+ "@angular-eslint/template/no-distracting-elements": string;
24
+ "@angular-eslint/template/no-duplicate-attributes": string;
25
+ "@angular-eslint/template/no-inline-styles": string;
26
+ "@angular-eslint/template/no-interpolation-in-attributes": string;
27
+ "@angular-eslint/template/no-negated-async": string;
28
+ "@angular-eslint/template/no-positive-tabindex": string;
29
+ "@angular-eslint/template/prefer-control-flow": string;
30
+ "@angular-eslint/template/prefer-ngsrc": string;
31
+ "@angular-eslint/template/prefer-self-closing-tags": string;
32
+ "@angular-eslint/template/role-has-required-aria": string;
33
+ "@angular-eslint/template/table-scope": string;
34
+ "@angular-eslint/template/use-track-by-function": string;
35
+ "@angular-eslint/template/valid-aria": string;
36
+ };
37
+ };
38
+ recommended: {
39
+ parser: string;
40
+ plugins: string[];
41
+ rules: {
42
+ "@angular-eslint/template/banana-in-box": string;
43
+ "@angular-eslint/template/eqeqeq": string;
44
+ "@angular-eslint/template/no-negated-async": string;
45
+ };
46
+ };
47
+ accessibility: {
48
+ parser: string;
49
+ plugins: string[];
50
+ rules: {
51
+ "@angular-eslint/template/alt-text": string;
52
+ "@angular-eslint/template/click-events-have-key-events": string;
53
+ "@angular-eslint/template/elements-content": string;
54
+ "@angular-eslint/template/interactive-supports-focus": string;
55
+ "@angular-eslint/template/label-has-associated-control": string;
56
+ "@angular-eslint/template/mouse-events-have-key-events": string;
57
+ "@angular-eslint/template/no-autofocus": string;
58
+ "@angular-eslint/template/no-distracting-elements": string;
59
+ "@angular-eslint/template/role-has-required-aria": string;
60
+ "@angular-eslint/template/table-scope": string;
61
+ "@angular-eslint/template/valid-aria": string;
62
+ };
63
+ };
64
+ 'process-inline-templates': {
65
+ parser: string;
66
+ parserOptions: {
67
+ ecmaVersion: number;
68
+ sourceType: string;
69
+ };
70
+ plugins: string[];
71
+ processor: string;
72
+ };
73
+ };
74
+ processors: {
75
+ 'extract-inline-html': {
76
+ preprocess: typeof import("./processors").preprocessComponentFile;
77
+ postprocess: typeof import("./processors").postprocessComponentFile;
78
+ supportsAutofix: boolean;
79
+ };
80
+ };
81
+ rules: {
82
+ "alt-text": import("@typescript-eslint/utils/ts-eslint").RuleModule<"altText", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
83
+ "attributes-order": import("@typescript-eslint/utils/ts-eslint").RuleModule<"attributesOrder", [{
84
+ readonly alphabetical: boolean;
85
+ readonly order: readonly import("./rules/attributes-order").OrderType[];
86
+ }], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
87
+ "banana-in-box": import("@typescript-eslint/utils/ts-eslint").RuleModule<"bananaInBox", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
88
+ "button-has-type": import("@typescript-eslint/utils/ts-eslint").RuleModule<import("./rules/button-has-type").MessageIds, [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
89
+ "click-events-have-key-events": import("@typescript-eslint/utils/ts-eslint").RuleModule<"clickEventsHaveKeyEvents", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
90
+ "conditional-complexity": import("@typescript-eslint/utils/ts-eslint").RuleModule<"conditionalComplexity", [{
91
+ maxComplexity: number;
92
+ }], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
93
+ "cyclomatic-complexity": import("@typescript-eslint/utils/ts-eslint").RuleModule<"cyclomaticComplexity", [{
94
+ maxComplexity: number;
95
+ }], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
96
+ "elements-content": import("@typescript-eslint/utils/ts-eslint").RuleModule<"elementsContent", [{
97
+ readonly allowList?: readonly string[] | undefined;
98
+ }], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
99
+ eqeqeq: import("@typescript-eslint/utils/ts-eslint").RuleModule<import("./rules/eqeqeq").MessageIds, [{
100
+ readonly allowNullOrUndefined?: boolean | undefined;
101
+ }], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
102
+ i18n: import("@typescript-eslint/utils/ts-eslint").RuleModule<import("./rules/i18n").MessageIds, [{
103
+ readonly boundTextAllowedPattern?: string | undefined;
104
+ readonly checkAttributes?: boolean | undefined;
105
+ readonly checkDuplicateId?: boolean | undefined;
106
+ readonly checkId?: boolean | undefined;
107
+ readonly checkText?: boolean | undefined;
108
+ readonly ignoreAttributes?: readonly string[] | undefined;
109
+ readonly ignoreTags?: readonly string[] | undefined;
110
+ readonly requireDescription?: boolean | undefined;
111
+ readonly requireMeaning?: boolean | undefined;
112
+ }], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
113
+ "interactive-supports-focus": import("@typescript-eslint/utils/ts-eslint").RuleModule<"interactiveSupportsFocus", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
114
+ "label-has-associated-control": import("@typescript-eslint/utils/ts-eslint").RuleModule<"labelHasAssociatedControl", [{
115
+ readonly controlComponents?: readonly string[] | undefined;
116
+ readonly labelComponents?: readonly {
117
+ readonly inputs?: readonly string[] | undefined;
118
+ readonly selector: string;
119
+ }[] | undefined;
120
+ }], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
121
+ "mouse-events-have-key-events": import("@typescript-eslint/utils/ts-eslint").RuleModule<"mouseEventsHaveKeyEvents", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
122
+ "no-any": import("@typescript-eslint/utils/ts-eslint").RuleModule<import("./rules/no-any").MessageIds, [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
123
+ "no-autofocus": import("@typescript-eslint/utils/ts-eslint").RuleModule<"noAutofocus", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
124
+ "no-call-expression": import("@typescript-eslint/utils/ts-eslint").RuleModule<"noCallExpression", [{
125
+ readonly allowList?: readonly string[] | undefined;
126
+ }], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
127
+ "no-distracting-elements": import("@typescript-eslint/utils/ts-eslint").RuleModule<"noDistractingElements", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
128
+ "no-duplicate-attributes": import("@typescript-eslint/utils/ts-eslint").RuleModule<import("./rules/no-duplicate-attributes").MessageIds, [{
129
+ readonly allowTwoWayDataBinding?: boolean | undefined;
130
+ readonly allowStylePrecedenceDuplicates?: boolean | undefined;
131
+ readonly ignore?: readonly string[] | undefined;
132
+ }], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
133
+ "no-inline-styles": import("@typescript-eslint/utils/ts-eslint").RuleModule<"noInlineStyles", [{
134
+ readonly allowNgStyle?: boolean | undefined;
135
+ readonly allowBindToStyle?: boolean | undefined;
136
+ }], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
137
+ "no-interpolation-in-attributes": import("@typescript-eslint/utils/ts-eslint").RuleModule<"noInterpolationInAttributes", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
138
+ "no-negated-async": import("@typescript-eslint/utils/ts-eslint").RuleModule<import("./rules/no-negated-async").MessageIds, [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
139
+ "no-positive-tabindex": import("@typescript-eslint/utils/ts-eslint").RuleModule<import("./rules/no-positive-tabindex").MessageIds, [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
140
+ "prefer-control-flow": import("@typescript-eslint/utils/ts-eslint").RuleModule<"preferControlFlow", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
141
+ "prefer-self-closing-tags": import("@typescript-eslint/utils/ts-eslint").RuleModule<"preferSelfClosingTags", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
142
+ "prefer-ngsrc": import("@typescript-eslint/utils/ts-eslint").RuleModule<import("./rules/prefer-ngsrc").MessageIds, [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
143
+ "role-has-required-aria": import("@typescript-eslint/utils/ts-eslint").RuleModule<import("./rules/role-has-required-aria").MessageIds, [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
144
+ "table-scope": import("@typescript-eslint/utils/ts-eslint").RuleModule<"tableScope", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
145
+ "use-track-by-function": import("@typescript-eslint/utils/ts-eslint").RuleModule<"useTrackByFunction", [{
146
+ readonly alias: readonly string[];
147
+ }], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
148
+ "valid-aria": import("@typescript-eslint/utils/ts-eslint").RuleModule<import("./rules/valid-aria").MessageIds, [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
149
+ };
150
+ };
151
+ export = _default;
152
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmFA,kBAuCE"}
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Because ultimately a user is in control of how and when this processor gets invoked,
3
+ * we can't fully protect them against doing more work than is necessary in all cases.
4
+ *
5
+ * Therefore, before we do a full parse of a TypeScript file to try and extract one or
6
+ * more Component declarations we want to do a really quick check for whether or not
7
+ * a file is likely to contain them.
8
+ */
9
+ export declare function isFileLikelyToContainComponentDeclarations(text: string, filename: string): boolean;
10
+ type PreprocessResult = (string | {
11
+ text: string;
12
+ filename: string;
13
+ })[];
14
+ export declare function preprocessComponentFile(text: string, filename: string): PreprocessResult;
15
+ export declare function postprocessComponentFile(multiDimensionalMessages: {
16
+ ruleId: string;
17
+ severity: number;
18
+ message: string;
19
+ line: number;
20
+ column: number;
21
+ nodeType: string;
22
+ messageId: string;
23
+ endLine: number;
24
+ endColumn: number;
25
+ fix?: {
26
+ range: number[];
27
+ text: string;
28
+ };
29
+ }[][], filename: string): readonly unknown[];
30
+ declare const _default: {
31
+ 'extract-inline-html': {
32
+ preprocess: typeof preprocessComponentFile;
33
+ postprocess: typeof postprocessComponentFile;
34
+ supportsAutofix: boolean;
35
+ };
36
+ };
37
+ export default _default;
38
+ //# sourceMappingURL=processors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"processors.d.ts","sourceRoot":"","sources":["../src/processors.ts"],"names":[],"mappings":"AAMA;;;;;;;GAOG;AACH,wBAAgB,0CAA0C,CACxD,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM,GACf,OAAO,CA2BT;AAED,KAAK,gBAAgB,GAAG,CAAC,MAAM,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC,EAAE,CAAC;AAExE,wBAAgB,uBAAuB,CACrC,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM,GACf,gBAAgB,CAsJlB;AAED,wBAAgB,wBAAwB,CACtC,wBAAwB,EAAE;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,CAAC,EAAE;QACJ,KAAK,EAAE,MAAM,EAAE,CAAC;QAChB,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;CACH,EAAE,EAAE,EACL,QAAQ,EAAE,MAAM,GACf,SAAS,OAAO,EAAE,CAmDpB;;;;;;;;AAED,wBAME"}
@@ -0,0 +1,5 @@
1
+ export type MessageIds = 'altText';
2
+ export declare const RULE_NAME = "alt-text";
3
+ declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"altText", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
4
+ export default _default;
5
+ //# sourceMappingURL=alt-text.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alt-text.d.ts","sourceRoot":"","sources":["../../src/rules/alt-text.ts"],"names":[],"mappings":"AASA,MAAM,MAAM,UAAU,GAAG,SAAS,CAAC;AACnC,eAAO,MAAM,SAAS,aAAa,CAAC;;AAEpC,wBAsCG"}
@@ -0,0 +1,19 @@
1
+ export declare enum OrderType {
2
+ TemplateReferenceVariable = "TEMPLATE_REFERENCE",
3
+ StructuralDirective = "STRUCTURAL_DIRECTIVE",
4
+ AttributeBinding = "ATTRIBUTE_BINDING",
5
+ InputBinding = "INPUT_BINDING",
6
+ OutputBinding = "OUTPUT_BINDING",
7
+ TwoWayBinding = "TWO_WAY_BINDING"
8
+ }
9
+ type Options = [
10
+ {
11
+ readonly alphabetical: boolean;
12
+ readonly order: readonly OrderType[];
13
+ }
14
+ ];
15
+ export type MessageIds = 'attributesOrder';
16
+ export declare const RULE_NAME = "attributes-order";
17
+ declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"attributesOrder", Options, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
18
+ export default _default;
19
+ //# sourceMappingURL=attributes-order.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attributes-order.d.ts","sourceRoot":"","sources":["../../src/rules/attributes-order.ts"],"names":[],"mappings":"AAiBA,oBAAY,SAAS;IACnB,yBAAyB,uBAAuB;IAChD,mBAAmB,yBAAyB;IAC5C,gBAAgB,sBAAsB;IACtC,YAAY,kBAAkB;IAC9B,aAAa,mBAAmB;IAChC,aAAa,oBAAoB;CAClC;AAED,KAAK,OAAO,GAAG;IACb;QACE,QAAQ,CAAC,YAAY,EAAE,OAAO,CAAC;QAC/B,QAAQ,CAAC,KAAK,EAAE,SAAS,SAAS,EAAE,CAAC;KACtC;CACF,CAAC;AA6BF,MAAM,MAAM,UAAU,GAAG,iBAAiB,CAAC;AAC3C,eAAO,MAAM,SAAS,qBAAqB,CAAC;;AAgB5C,wBAmJG"}
@@ -1,17 +1,26 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RULE_NAME = void 0;
3
+ exports.RULE_NAME = exports.OrderType = void 0;
4
4
  const bundled_angular_compiler_1 = require("@angular-eslint/bundled-angular-compiler");
5
5
  const utils_1 = require("@angular-eslint/utils");
6
6
  const create_eslint_rule_1 = require("../utils/create-eslint-rule");
7
+ var OrderType;
8
+ (function (OrderType) {
9
+ OrderType["TemplateReferenceVariable"] = "TEMPLATE_REFERENCE";
10
+ OrderType["StructuralDirective"] = "STRUCTURAL_DIRECTIVE";
11
+ OrderType["AttributeBinding"] = "ATTRIBUTE_BINDING";
12
+ OrderType["InputBinding"] = "INPUT_BINDING";
13
+ OrderType["OutputBinding"] = "OUTPUT_BINDING";
14
+ OrderType["TwoWayBinding"] = "TWO_WAY_BINDING";
15
+ })(OrderType || (exports.OrderType = OrderType = {}));
7
16
  exports.RULE_NAME = 'attributes-order';
8
17
  const DEFAULT_ORDER = [
9
- "STRUCTURAL_DIRECTIVE" /* OrderType.StructuralDirective */,
10
- "TEMPLATE_REFERENCE" /* OrderType.TemplateReferenceVariable */,
11
- "ATTRIBUTE_BINDING" /* OrderType.AttributeBinding */,
12
- "INPUT_BINDING" /* OrderType.InputBinding */,
13
- "TWO_WAY_BINDING" /* OrderType.TwoWayBinding */,
14
- "OUTPUT_BINDING" /* OrderType.OutputBinding */,
18
+ OrderType.StructuralDirective,
19
+ OrderType.TemplateReferenceVariable,
20
+ OrderType.AttributeBinding,
21
+ OrderType.InputBinding,
22
+ OrderType.TwoWayBinding,
23
+ OrderType.OutputBinding,
15
24
  ];
16
25
  const DEFAULT_OPTIONS = {
17
26
  alphabetical: false,
@@ -57,7 +66,7 @@ exports.default = (0, create_eslint_rule_1.createESLintRule)({
57
66
  function getLocation(attr) {
58
67
  const loc = parserServices.convertNodeSourceSpanToLoc(attr.sourceSpan);
59
68
  switch (attr.orderType) {
60
- case "STRUCTURAL_DIRECTIVE" /* OrderType.StructuralDirective */:
69
+ case OrderType.StructuralDirective:
61
70
  return {
62
71
  start: {
63
72
  line: loc.start.line,
@@ -168,37 +177,37 @@ function getOrderIndex(attr, order) {
168
177
  function toAttributeBindingOrderType(attribute) {
169
178
  return {
170
179
  ...attribute,
171
- orderType: "ATTRIBUTE_BINDING" /* OrderType.AttributeBinding */,
180
+ orderType: OrderType.AttributeBinding,
172
181
  };
173
182
  }
174
183
  function toInputBindingOrderType(input) {
175
184
  return {
176
185
  ...input,
177
- orderType: "INPUT_BINDING" /* OrderType.InputBinding */,
186
+ orderType: OrderType.InputBinding,
178
187
  };
179
188
  }
180
189
  function toStructuralDirectiveOrderType(attributeOrInput) {
181
190
  return {
182
191
  ...attributeOrInput,
183
- orderType: "STRUCTURAL_DIRECTIVE" /* OrderType.StructuralDirective */,
192
+ orderType: OrderType.StructuralDirective,
184
193
  };
185
194
  }
186
195
  function toOutputBindingOrderType(output) {
187
196
  return {
188
197
  ...output,
189
- orderType: "OUTPUT_BINDING" /* OrderType.OutputBinding */,
198
+ orderType: OrderType.OutputBinding,
190
199
  };
191
200
  }
192
201
  function toTwoWayBindingOrderType(output) {
193
202
  return {
194
203
  ...output,
195
- orderType: "TWO_WAY_BINDING" /* OrderType.TwoWayBinding */,
204
+ orderType: OrderType.TwoWayBinding,
196
205
  };
197
206
  }
198
207
  function toTemplateReferenceVariableOrderType(reference) {
199
208
  return {
200
209
  ...reference,
201
- orderType: "TEMPLATE_REFERENCE" /* OrderType.TemplateReferenceVariable */,
210
+ orderType: OrderType.TemplateReferenceVariable,
202
211
  };
203
212
  }
204
213
  function isImplicitTemplate(node) {
@@ -271,22 +280,22 @@ function isOnSameLocation(input, output) {
271
280
  function getMessageName(expected) {
272
281
  const fullName = expected.keySpan?.details ?? expected.name;
273
282
  switch (expected.orderType) {
274
- case "STRUCTURAL_DIRECTIVE" /* OrderType.StructuralDirective */:
283
+ case OrderType.StructuralDirective:
275
284
  return `*${fullName}`;
276
- case "TEMPLATE_REFERENCE" /* OrderType.TemplateReferenceVariable */:
285
+ case OrderType.TemplateReferenceVariable:
277
286
  return `#${fullName}`;
278
- case "INPUT_BINDING" /* OrderType.InputBinding */:
287
+ case OrderType.InputBinding:
279
288
  return `[${fullName}]`;
280
- case "OUTPUT_BINDING" /* OrderType.OutputBinding */:
289
+ case OrderType.OutputBinding:
281
290
  return `(${fullName})`;
282
- case "TWO_WAY_BINDING" /* OrderType.TwoWayBinding */:
291
+ case OrderType.TwoWayBinding:
283
292
  return `[(${fullName})]`;
284
293
  default:
285
294
  return fullName;
286
295
  }
287
296
  }
288
297
  function isValuelessStructuralDirective(attr) {
289
- if (attr.orderType !== "STRUCTURAL_DIRECTIVE" /* OrderType.StructuralDirective */ || !attr.keySpan) {
298
+ if (attr.orderType !== OrderType.StructuralDirective || !attr.keySpan) {
290
299
  return false;
291
300
  }
292
301
  const attrSpan = attr.sourceSpan;
@@ -305,7 +314,7 @@ function isValuelessStructuralDirective(attr) {
305
314
  }
306
315
  function getStartPos(expected) {
307
316
  switch (expected.orderType) {
308
- case "STRUCTURAL_DIRECTIVE" /* OrderType.StructuralDirective */:
317
+ case OrderType.StructuralDirective:
309
318
  return expected.sourceSpan.start.offset - 1;
310
319
  default:
311
320
  return expected.sourceSpan.start.offset;
@@ -313,7 +322,7 @@ function getStartPos(expected) {
313
322
  }
314
323
  function getEndPos(expected) {
315
324
  switch (expected.orderType) {
316
- case "STRUCTURAL_DIRECTIVE" /* OrderType.StructuralDirective */:
325
+ case OrderType.StructuralDirective:
317
326
  return (expected.sourceSpan.end.offset +
318
327
  (isValuelessStructuralDirective(expected) ? 0 : 1));
319
328
  default:
@@ -0,0 +1,5 @@
1
+ export type MessageIds = 'bananaInBox';
2
+ export declare const RULE_NAME = "banana-in-box";
3
+ declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"bananaInBox", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
4
+ export default _default;
5
+ //# sourceMappingURL=banana-in-box.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"banana-in-box.d.ts","sourceRoot":"","sources":["../../src/rules/banana-in-box.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,UAAU,GAAG,aAAa,CAAC;AACvC,eAAO,MAAM,SAAS,kBAAkB,CAAC;;AAKzC,wBA2CG"}
@@ -0,0 +1,6 @@
1
+ export declare const RULE_NAME = "button-has-type";
2
+ export declare const INVALID_TYPE_DATA_KEY = "type";
3
+ export type MessageIds = 'invalidType' | 'missingType';
4
+ declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<MessageIds, [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
5
+ export default _default;
6
+ //# sourceMappingURL=button-has-type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"button-has-type.d.ts","sourceRoot":"","sources":["../../src/rules/button-has-type.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,SAAS,oBAAoB,CAAC;AAC3C,eAAO,MAAM,qBAAqB,SAAS,CAAC;AAC5C,MAAM,MAAM,UAAU,GAAG,aAAa,GAAG,aAAa,CAAC;;AAWvD,wBAyCG"}
@@ -0,0 +1,5 @@
1
+ export type MessageIds = 'clickEventsHaveKeyEvents';
2
+ export declare const RULE_NAME = "click-events-have-key-events";
3
+ declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"clickEventsHaveKeyEvents", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
4
+ export default _default;
5
+ //# sourceMappingURL=click-events-have-key-events.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"click-events-have-key-events.d.ts","sourceRoot":"","sources":["../../src/rules/click-events-have-key-events.ts"],"names":[],"mappings":"AASA,MAAM,MAAM,UAAU,GAAG,0BAA0B,CAAC;AACpD,eAAO,MAAM,SAAS,iCAAiC,CAAC;;AAExD,wBAwDG"}
@@ -0,0 +1,8 @@
1
+ type Options = [{
2
+ maxComplexity: number;
3
+ }];
4
+ export type MessageIds = 'conditionalComplexity';
5
+ export declare const RULE_NAME = "conditional-complexity";
6
+ declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"conditionalComplexity", Options, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
7
+ export default _default;
8
+ //# sourceMappingURL=conditional-complexity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conditional-complexity.d.ts","sourceRoot":"","sources":["../../src/rules/conditional-complexity.ts"],"names":[],"mappings":"AAgBA,KAAK,OAAO,GAAG,CAAC;IAAE,aAAa,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAC3C,MAAM,MAAM,UAAU,GAAG,uBAAuB,CAAC;AACjD,eAAO,MAAM,SAAS,2BAA2B,CAAC;;AAIlD,wBAkFG"}
@@ -0,0 +1,8 @@
1
+ type Options = [{
2
+ maxComplexity: number;
3
+ }];
4
+ export type MessageIds = 'cyclomaticComplexity';
5
+ export declare const RULE_NAME = "cyclomatic-complexity";
6
+ declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"cyclomaticComplexity", Options, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
7
+ export default _default;
8
+ //# sourceMappingURL=cyclomatic-complexity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cyclomatic-complexity.d.ts","sourceRoot":"","sources":["../../src/rules/cyclomatic-complexity.ts"],"names":[],"mappings":"AAOA,KAAK,OAAO,GAAG,CAAC;IAAE,aAAa,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAC3C,MAAM,MAAM,UAAU,GAAG,sBAAsB,CAAC;AAChD,eAAO,MAAM,SAAS,0BAA0B,CAAC;;AAIjD,wBA+CG"}
@@ -0,0 +1,10 @@
1
+ type Options = [
2
+ {
3
+ readonly allowList?: readonly string[];
4
+ }
5
+ ];
6
+ export type MessageIds = 'elementsContent';
7
+ export declare const RULE_NAME = "elements-content";
8
+ declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"elementsContent", Options, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
9
+ export default _default;
10
+ //# sourceMappingURL=elements-content.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"elements-content.d.ts","sourceRoot":"","sources":["../../src/rules/elements-content.ts"],"names":[],"mappings":"AAKA,KAAK,OAAO,GAAG;IACb;QACE,QAAQ,CAAC,SAAS,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;KACxC;CACF,CAAC;AACF,MAAM,MAAM,UAAU,GAAG,iBAAiB,CAAC;AAC3C,eAAO,MAAM,SAAS,qBAAqB,CAAC;;AAa5C,wBAwDG"}
@@ -0,0 +1,9 @@
1
+ import type { TSESLint } from '@typescript-eslint/utils';
2
+ type Options = [{
3
+ readonly allowNullOrUndefined?: boolean;
4
+ }];
5
+ export type MessageIds = 'eqeqeq' | 'suggestStrictEquality';
6
+ export declare const RULE_NAME = "eqeqeq";
7
+ declare const _default: TSESLint.RuleModule<MessageIds, Options, TSESLint.RuleListener>;
8
+ export default _default;
9
+ //# sourceMappingURL=eqeqeq.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eqeqeq.d.ts","sourceRoot":"","sources":["../../src/rules/eqeqeq.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAIzD,KAAK,OAAO,GAAG,CAAC;IAAE,QAAQ,CAAC,oBAAoB,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC,CAAC;AAC7D,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,uBAAuB,CAAC;AAC5D,eAAO,MAAM,SAAS,WAAW,CAAC;;AAGlC,wBA4EG"}
@@ -0,0 +1,19 @@
1
+ import type { TSESLint } from '@typescript-eslint/utils';
2
+ type Options = [
3
+ {
4
+ readonly boundTextAllowedPattern?: string;
5
+ readonly checkAttributes?: boolean;
6
+ readonly checkDuplicateId?: boolean;
7
+ readonly checkId?: boolean;
8
+ readonly checkText?: boolean;
9
+ readonly ignoreAttributes?: readonly string[];
10
+ readonly ignoreTags?: readonly string[];
11
+ readonly requireDescription?: boolean;
12
+ readonly requireMeaning?: boolean;
13
+ }
14
+ ];
15
+ export type MessageIds = 'i18nAttribute' | 'i18nAttributeOnIcuOrText' | 'i18nCustomIdOnAttribute' | 'i18nCustomIdOnElement' | 'i18nDuplicateCustomId' | 'suggestAddI18nAttribute' | 'i18nMissingDescription' | 'i18nMissingMeaning';
16
+ export declare const RULE_NAME = "i18n";
17
+ declare const _default: TSESLint.RuleModule<MessageIds, Options, TSESLint.RuleListener>;
18
+ export default _default;
19
+ //# sourceMappingURL=i18n.d.ts.map