@angular-eslint/eslint-plugin 17.3.1-alpha.8 → 17.4.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.
- package/README.md +2 -1
- package/dist/configs/all.json +1 -0
- package/dist/index.d.ts +134 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2 -0
- package/dist/rules/component-class-suffix.d.ts +10 -0
- package/dist/rules/component-class-suffix.d.ts.map +1 -0
- package/dist/rules/component-max-inline-declarations.d.ts +12 -0
- package/dist/rules/component-max-inline-declarations.d.ts.map +1 -0
- package/dist/rules/component-selector.d.ts +6 -0
- package/dist/rules/component-selector.d.ts.map +1 -0
- package/dist/rules/consistent-component-styles.d.ts +7 -0
- package/dist/rules/consistent-component-styles.d.ts.map +1 -0
- package/dist/rules/contextual-decorator.d.ts +6 -0
- package/dist/rules/contextual-decorator.d.ts.map +1 -0
- package/dist/rules/contextual-lifecycle.d.ts +5 -0
- package/dist/rules/contextual-lifecycle.d.ts.map +1 -0
- package/dist/rules/directive-class-suffix.d.ts +8 -0
- package/dist/rules/directive-class-suffix.d.ts.map +1 -0
- package/dist/rules/directive-selector.d.ts +6 -0
- package/dist/rules/directive-selector.d.ts.map +1 -0
- package/dist/rules/no-async-lifecycle-method.d.ts +5 -0
- package/dist/rules/no-async-lifecycle-method.d.ts.map +1 -0
- package/dist/rules/no-attribute-decorator.d.ts +5 -0
- package/dist/rules/no-attribute-decorator.d.ts.map +1 -0
- package/dist/rules/no-conflicting-lifecycle.d.ts +5 -0
- package/dist/rules/no-conflicting-lifecycle.d.ts.map +1 -0
- package/dist/rules/no-duplicates-in-metadata-arrays.d.ts +5 -0
- package/dist/rules/no-duplicates-in-metadata-arrays.d.ts.map +1 -0
- package/dist/rules/no-duplicates-in-metadata-arrays.js +64 -0
- package/dist/rules/no-empty-lifecycle-method.d.ts +5 -0
- package/dist/rules/no-empty-lifecycle-method.d.ts.map +1 -0
- package/dist/rules/no-forward-ref.d.ts +6 -0
- package/dist/rules/no-forward-ref.d.ts.map +1 -0
- package/dist/rules/no-host-metadata-property.d.ts +8 -0
- package/dist/rules/no-host-metadata-property.d.ts.map +1 -0
- package/dist/rules/no-input-prefix.d.ts +8 -0
- package/dist/rules/no-input-prefix.d.ts.map +1 -0
- package/dist/rules/no-input-rename.d.ts +8 -0
- package/dist/rules/no-input-rename.d.ts.map +1 -0
- package/dist/rules/no-inputs-metadata-property.d.ts +5 -0
- package/dist/rules/no-inputs-metadata-property.d.ts.map +1 -0
- package/dist/rules/no-lifecycle-call.d.ts +5 -0
- package/dist/rules/no-lifecycle-call.d.ts.map +1 -0
- package/dist/rules/no-output-native.d.ts +5 -0
- package/dist/rules/no-output-native.d.ts.map +1 -0
- package/dist/rules/no-output-on-prefix.d.ts +5 -0
- package/dist/rules/no-output-on-prefix.d.ts.map +1 -0
- package/dist/rules/no-output-rename.d.ts +5 -0
- package/dist/rules/no-output-rename.d.ts.map +1 -0
- package/dist/rules/no-outputs-metadata-property.d.ts +5 -0
- package/dist/rules/no-outputs-metadata-property.d.ts.map +1 -0
- package/dist/rules/no-pipe-impure.d.ts +5 -0
- package/dist/rules/no-pipe-impure.d.ts.map +1 -0
- package/dist/rules/no-queries-metadata-property.d.ts +5 -0
- package/dist/rules/no-queries-metadata-property.d.ts.map +1 -0
- package/dist/rules/pipe-prefix.d.ts +10 -0
- package/dist/rules/pipe-prefix.d.ts.map +1 -0
- package/dist/rules/prefer-on-push-component-change-detection.d.ts +5 -0
- package/dist/rules/prefer-on-push-component-change-detection.d.ts.map +1 -0
- package/dist/rules/prefer-output-readonly.d.ts +5 -0
- package/dist/rules/prefer-output-readonly.d.ts.map +1 -0
- package/dist/rules/prefer-standalone-component.d.ts +5 -0
- package/dist/rules/prefer-standalone-component.d.ts.map +1 -0
- package/dist/rules/prefer-standalone.d.ts +5 -0
- package/dist/rules/prefer-standalone.d.ts.map +1 -0
- package/dist/rules/relative-url-prefix.d.ts +5 -0
- package/dist/rules/relative-url-prefix.d.ts.map +1 -0
- package/dist/rules/require-localize-metadata.d.ts +11 -0
- package/dist/rules/require-localize-metadata.d.ts.map +1 -0
- package/dist/rules/sort-lifecycle-methods.d.ts +5 -0
- package/dist/rules/sort-lifecycle-methods.d.ts.map +1 -0
- package/dist/rules/sort-ngmodule-metadata-arrays.d.ts +10 -0
- package/dist/rules/sort-ngmodule-metadata-arrays.d.ts.map +1 -0
- package/dist/rules/sort-ngmodule-metadata-arrays.js +1 -0
- package/dist/rules/use-component-selector.d.ts +5 -0
- package/dist/rules/use-component-selector.d.ts.map +1 -0
- package/dist/rules/use-component-view-encapsulation.d.ts +5 -0
- package/dist/rules/use-component-view-encapsulation.d.ts.map +1 -0
- package/dist/rules/use-injectable-provided-in.d.ts +8 -0
- package/dist/rules/use-injectable-provided-in.d.ts.map +1 -0
- package/dist/rules/use-lifecycle-interface.d.ts +5 -0
- package/dist/rules/use-lifecycle-interface.d.ts.map +1 -0
- package/dist/rules/use-pipe-transform-interface.d.ts +5 -0
- package/dist/rules/use-pipe-transform-interface.d.ts.map +1 -0
- package/dist/utils/create-eslint-rule.d.ts +3 -0
- package/dist/utils/create-eslint-rule.d.ts.map +1 -0
- package/package.json +5 -3
package/README.md
CHANGED
|
@@ -48,6 +48,7 @@
|
|
|
48
48
|
| [`directive-class-suffix`](https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/directive-class-suffix.md) | Classes decorated with @Directive must have suffix "Directive" (or custom) in their name. See more at https://angular.io/styleguide#style-02-03 | :white_check_mark: | | |
|
|
49
49
|
| [`directive-selector`](https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/directive-selector.md) | Directive selectors should follow given naming rules. See more at https://angular.io/guide/styleguide#style-02-06 and https://angular.io/guide/styleguide#style-02-08. | | | |
|
|
50
50
|
| [`no-conflicting-lifecycle`](https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/no-conflicting-lifecycle.md) | Ensures that directives not implement conflicting lifecycle interfaces. | | | |
|
|
51
|
+
| [`no-duplicates-in-metadata-arrays`](https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/no-duplicates-in-metadata-arrays.md) | Ensures that metadata arrays do not contain duplicate entries. | | | |
|
|
51
52
|
| [`no-empty-lifecycle-method`](https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/no-empty-lifecycle-method.md) | Disallows declaring empty lifecycle methods | :white_check_mark: | | :bulb: |
|
|
52
53
|
| [`no-forward-ref`](https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/no-forward-ref.md) | Disallows usage of `forwardRef` references for DI | | | |
|
|
53
54
|
| [`no-host-metadata-property`](https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/no-host-metadata-property.md) | Disallows usage of the `host` metadata property. See more at https://angular.io/styleguide#style-06-03 | :white_check_mark: | | |
|
|
@@ -67,7 +68,6 @@
|
|
|
67
68
|
| [`prefer-standalone`](https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-standalone.md) | Ensures component, directive and pipe `standalone` property is set to `true` in the component decorator | | :wrench: | |
|
|
68
69
|
| [`relative-url-prefix`](https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/relative-url-prefix.md) | The ./ and ../ prefix is standard syntax for relative URLs; don't depend on Angular's current ability to do without that prefix. See more at https://angular.io/styleguide#style-05-04 | | | |
|
|
69
70
|
| [`require-localize-metadata`](https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/require-localize-metadata.md) | Ensures that $localize tagged messages contain helpful metadata to aid with translations. | | | |
|
|
70
|
-
| [`sort-ngmodule-metadata-arrays`](https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/sort-ngmodule-metadata-arrays.md) | Ensures ASC alphabetical order for `NgModule` metadata arrays for easy visual scanning | | :wrench: | |
|
|
71
71
|
| [`use-component-selector`](https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/use-component-selector.md) | Component selector must be declared | | | |
|
|
72
72
|
| [`use-component-view-encapsulation`](https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/use-component-view-encapsulation.md) | Disallows using `ViewEncapsulation.None` | | | :bulb: |
|
|
73
73
|
| [`use-injectable-provided-in`](https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/use-injectable-provided-in.md) | Using the `providedIn` property makes `Injectables` tree-shakable | | | :bulb: |
|
|
@@ -89,6 +89,7 @@
|
|
|
89
89
|
| Rule | Replaced by |
|
|
90
90
|
| --- | --- |
|
|
91
91
|
| [`prefer-standalone-component`](https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-standalone-component.md) | [`prefer-standalone`](https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-standalone.md) |
|
|
92
|
+
| [`sort-ngmodule-metadata-arrays`](https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/sort-ngmodule-metadata-arrays.md) | |
|
|
92
93
|
<!-- prettier-ignore-end -->
|
|
93
94
|
|
|
94
95
|
<!-- end deprecated rule list -->
|
package/dist/configs/all.json
CHANGED
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"@angular-eslint/no-async-lifecycle-method": "error",
|
|
14
14
|
"@angular-eslint/no-attribute-decorator": "error",
|
|
15
15
|
"@angular-eslint/no-conflicting-lifecycle": "error",
|
|
16
|
+
"@angular-eslint/no-duplicates-in-metadata-arrays": "error",
|
|
16
17
|
"@angular-eslint/no-empty-lifecycle-method": "error",
|
|
17
18
|
"@angular-eslint/no-forward-ref": "error",
|
|
18
19
|
"@angular-eslint/no-host-metadata-property": "error",
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
configs: {
|
|
3
|
+
all: {
|
|
4
|
+
parser: string;
|
|
5
|
+
plugins: string[];
|
|
6
|
+
rules: {
|
|
7
|
+
"@angular-eslint/component-class-suffix": string;
|
|
8
|
+
"@angular-eslint/component-max-inline-declarations": string;
|
|
9
|
+
"@angular-eslint/component-selector": string;
|
|
10
|
+
"@angular-eslint/consistent-component-styles": string;
|
|
11
|
+
"@angular-eslint/contextual-decorator": string;
|
|
12
|
+
"@angular-eslint/contextual-lifecycle": string;
|
|
13
|
+
"@angular-eslint/directive-class-suffix": string;
|
|
14
|
+
"@angular-eslint/directive-selector": string;
|
|
15
|
+
"@angular-eslint/no-async-lifecycle-method": string;
|
|
16
|
+
"@angular-eslint/no-attribute-decorator": string;
|
|
17
|
+
"@angular-eslint/no-conflicting-lifecycle": string;
|
|
18
|
+
"@angular-eslint/no-duplicates-in-metadata-arrays": string;
|
|
19
|
+
"@angular-eslint/no-empty-lifecycle-method": string;
|
|
20
|
+
"@angular-eslint/no-forward-ref": string;
|
|
21
|
+
"@angular-eslint/no-host-metadata-property": string;
|
|
22
|
+
"@angular-eslint/no-input-prefix": string;
|
|
23
|
+
"@angular-eslint/no-input-rename": string;
|
|
24
|
+
"@angular-eslint/no-inputs-metadata-property": string;
|
|
25
|
+
"@angular-eslint/no-lifecycle-call": string;
|
|
26
|
+
"@angular-eslint/no-output-native": string;
|
|
27
|
+
"@angular-eslint/no-output-on-prefix": string;
|
|
28
|
+
"@angular-eslint/no-output-rename": string;
|
|
29
|
+
"@angular-eslint/no-outputs-metadata-property": string;
|
|
30
|
+
"@angular-eslint/no-pipe-impure": string;
|
|
31
|
+
"@angular-eslint/no-queries-metadata-property": string;
|
|
32
|
+
"@angular-eslint/pipe-prefix": string;
|
|
33
|
+
"@angular-eslint/prefer-on-push-component-change-detection": string;
|
|
34
|
+
"@angular-eslint/prefer-output-readonly": string;
|
|
35
|
+
"@angular-eslint/prefer-standalone": string;
|
|
36
|
+
"@angular-eslint/prefer-standalone-component": string;
|
|
37
|
+
"@angular-eslint/relative-url-prefix": string;
|
|
38
|
+
"@angular-eslint/require-localize-metadata": string;
|
|
39
|
+
"@angular-eslint/sort-lifecycle-methods": string;
|
|
40
|
+
"@angular-eslint/sort-ngmodule-metadata-arrays": string;
|
|
41
|
+
"@angular-eslint/use-component-selector": string;
|
|
42
|
+
"@angular-eslint/use-component-view-encapsulation": string;
|
|
43
|
+
"@angular-eslint/use-injectable-provided-in": string;
|
|
44
|
+
"@angular-eslint/use-lifecycle-interface": string;
|
|
45
|
+
"@angular-eslint/use-pipe-transform-interface": string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
recommended: {
|
|
49
|
+
parser: string;
|
|
50
|
+
plugins: string[];
|
|
51
|
+
rules: {
|
|
52
|
+
"@angular-eslint/component-class-suffix": string;
|
|
53
|
+
"@angular-eslint/contextual-lifecycle": string;
|
|
54
|
+
"@angular-eslint/directive-class-suffix": string;
|
|
55
|
+
"@angular-eslint/no-empty-lifecycle-method": string;
|
|
56
|
+
"@angular-eslint/no-host-metadata-property": string;
|
|
57
|
+
"@angular-eslint/no-input-rename": string;
|
|
58
|
+
"@angular-eslint/no-inputs-metadata-property": string;
|
|
59
|
+
"@angular-eslint/no-output-native": string;
|
|
60
|
+
"@angular-eslint/no-output-on-prefix": string;
|
|
61
|
+
"@angular-eslint/no-output-rename": string;
|
|
62
|
+
"@angular-eslint/no-outputs-metadata-property": string;
|
|
63
|
+
"@angular-eslint/use-pipe-transform-interface": string;
|
|
64
|
+
"@angular-eslint/use-lifecycle-interface": string;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
rules: {
|
|
69
|
+
"component-class-suffix": import("@typescript-eslint/utils/ts-eslint").RuleModule<"componentClassSuffix", [{
|
|
70
|
+
suffixes: string[];
|
|
71
|
+
}], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
72
|
+
"component-max-inline-declarations": import("@typescript-eslint/utils/ts-eslint").RuleModule<"componentMaxInlineDeclarations", [{
|
|
73
|
+
readonly template?: number | undefined;
|
|
74
|
+
readonly styles?: number | undefined;
|
|
75
|
+
readonly animations?: number | undefined;
|
|
76
|
+
}], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
77
|
+
"component-selector": import("@typescript-eslint/utils/ts-eslint").RuleModule<import("./rules/component-selector").MessageIds, import("@angular-eslint/utils/dist/eslint-plugin/selector-utils").Options, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
78
|
+
"consistent-component-styles": import("@typescript-eslint/utils/ts-eslint").RuleModule<import("./rules/consistent-component-styles").MessageIds, [mode: "string" | "array"], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
79
|
+
"contextual-decorator": import("@typescript-eslint/utils/ts-eslint").RuleModule<"contextualDecorator", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
80
|
+
"contextual-lifecycle": import("@typescript-eslint/utils/ts-eslint").RuleModule<"contextualLifecycle", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
81
|
+
"directive-class-suffix": import("@typescript-eslint/utils/ts-eslint").RuleModule<"directiveClassSuffix", [{
|
|
82
|
+
readonly suffixes: readonly string[];
|
|
83
|
+
}], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
84
|
+
"directive-selector": import("@typescript-eslint/utils/ts-eslint").RuleModule<import("./rules/directive-selector").MessageIds, import("@angular-eslint/utils/dist/eslint-plugin/selector-utils").Options, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
85
|
+
"no-async-lifecycle-method": import("@typescript-eslint/utils/ts-eslint").RuleModule<"noAsyncLifecycleMethod", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
86
|
+
"no-attribute-decorator": import("@typescript-eslint/utils/ts-eslint").RuleModule<"noAttributeDecorator", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
87
|
+
"no-conflicting-lifecycle": import("@typescript-eslint/utils/ts-eslint").RuleModule<import("./rules/no-conflicting-lifecycle").MessageIds, [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
88
|
+
"no-duplicates-in-metadata-arrays": import("@typescript-eslint/utils/ts-eslint").RuleModule<"noDuplicatesInMetadataArrays", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
89
|
+
"no-empty-lifecycle-method": import("@typescript-eslint/utils/ts-eslint").RuleModule<import("./rules/no-empty-lifecycle-method").MessageIds, [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
90
|
+
"no-forward-ref": import("@typescript-eslint/utils/ts-eslint").RuleModule<"noForwardRef", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
91
|
+
"no-host-metadata-property": import("@typescript-eslint/utils/ts-eslint").RuleModule<"noHostMetadataProperty", [{
|
|
92
|
+
readonly allowStatic?: boolean | undefined;
|
|
93
|
+
}], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
94
|
+
"no-input-prefix": import("@typescript-eslint/utils/ts-eslint").RuleModule<"noInputPrefix", [{
|
|
95
|
+
readonly prefixes: readonly string[];
|
|
96
|
+
}], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
97
|
+
"no-input-rename": import("@typescript-eslint/utils/ts-eslint").RuleModule<import("./rules/no-input-rename").MessageIds, [{
|
|
98
|
+
readonly allowedNames?: readonly string[] | undefined;
|
|
99
|
+
}], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
100
|
+
"no-inputs-metadata-property": import("@typescript-eslint/utils/ts-eslint").RuleModule<"noInputsMetadataProperty", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
101
|
+
"no-lifecycle-call": import("@typescript-eslint/utils/ts-eslint").RuleModule<"noLifecycleCall", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
102
|
+
"no-output-native": import("@typescript-eslint/utils/ts-eslint").RuleModule<"noOutputNative", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
103
|
+
"no-output-on-prefix": import("@typescript-eslint/utils/ts-eslint").RuleModule<"noOutputOnPrefix", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
104
|
+
"no-output-rename": import("@typescript-eslint/utils/ts-eslint").RuleModule<import("./rules/no-output-rename").MessageIds, [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
105
|
+
"no-outputs-metadata-property": import("@typescript-eslint/utils/ts-eslint").RuleModule<"noOutputsMetadataProperty", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
106
|
+
"no-pipe-impure": import("@typescript-eslint/utils/ts-eslint").RuleModule<import("./rules/no-pipe-impure").MessageIds, [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
107
|
+
"no-queries-metadata-property": import("@typescript-eslint/utils/ts-eslint").RuleModule<"noQueriesMetadataProperty", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
108
|
+
"pipe-prefix": import("@typescript-eslint/utils/ts-eslint").RuleModule<"pipePrefix", [{
|
|
109
|
+
prefixes: string[];
|
|
110
|
+
}], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
111
|
+
"prefer-on-push-component-change-detection": import("@typescript-eslint/utils/ts-eslint").RuleModule<import("./rules/prefer-on-push-component-change-detection").MessageIds, [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
112
|
+
"prefer-standalone": import("@typescript-eslint/utils/ts-eslint").RuleModule<"preferStandalone", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
113
|
+
"prefer-standalone-component": import("@typescript-eslint/utils/ts-eslint").RuleModule<"preferStandaloneComponent", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
114
|
+
"prefer-output-readonly": import("@typescript-eslint/utils/ts-eslint").RuleModule<import("./rules/prefer-output-readonly").MessageIds, [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
115
|
+
"relative-url-prefix": import("@typescript-eslint/utils/ts-eslint").RuleModule<"relativeUrlPrefix", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
116
|
+
"require-localize-metadata": import("@typescript-eslint/utils/ts-eslint").RuleModule<import("./rules/require-localize-metadata").MessageIds, [{
|
|
117
|
+
readonly requireDescription?: boolean | undefined;
|
|
118
|
+
readonly requireMeaning?: boolean | undefined;
|
|
119
|
+
}], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
120
|
+
"sort-lifecycle-methods": import("@typescript-eslint/utils/ts-eslint").RuleModule<"lifecycleMethodsNotSorted", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
121
|
+
"sort-ngmodule-metadata-arrays": import("@typescript-eslint/utils/ts-eslint").RuleModule<"sortNgmoduleMetadataArrays", [{
|
|
122
|
+
readonly locale: string;
|
|
123
|
+
}], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
124
|
+
"use-component-selector": import("@typescript-eslint/utils/ts-eslint").RuleModule<"useComponentSelector", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
125
|
+
"use-component-view-encapsulation": import("@typescript-eslint/utils/ts-eslint").RuleModule<import("./rules/use-component-view-encapsulation").MessageIds, [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
126
|
+
"use-injectable-provided-in": import("@typescript-eslint/utils/ts-eslint").RuleModule<import("./rules/use-injectable-provided-in").MessageIds, [{
|
|
127
|
+
readonly ignoreClassNamePattern?: string | undefined;
|
|
128
|
+
}], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
129
|
+
"use-lifecycle-interface": import("@typescript-eslint/utils/ts-eslint").RuleModule<"useLifecycleInterface", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
130
|
+
"use-pipe-transform-interface": import("@typescript-eslint/utils/ts-eslint").RuleModule<"usePipeTransformInterface", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
export = _default;
|
|
134
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyHA,kBA+CE"}
|
package/dist/index.js
CHANGED
|
@@ -65,6 +65,7 @@ const use_component_view_encapsulation_1 = __importStar(require("./rules/use-com
|
|
|
65
65
|
const use_injectable_provided_in_1 = __importStar(require("./rules/use-injectable-provided-in"));
|
|
66
66
|
const use_lifecycle_interface_1 = __importStar(require("./rules/use-lifecycle-interface"));
|
|
67
67
|
const use_pipe_transform_interface_1 = __importStar(require("./rules/use-pipe-transform-interface"));
|
|
68
|
+
const no_duplicates_in_metadata_arrays_1 = __importStar(require("./rules/no-duplicates-in-metadata-arrays"));
|
|
68
69
|
module.exports = {
|
|
69
70
|
configs: {
|
|
70
71
|
all: all_json_1.default,
|
|
@@ -82,6 +83,7 @@ module.exports = {
|
|
|
82
83
|
[no_async_lifecycle_method_1.RULE_NAME]: no_async_lifecycle_method_1.default,
|
|
83
84
|
[no_attribute_decorator_1.RULE_NAME]: no_attribute_decorator_1.default,
|
|
84
85
|
[no_conflicting_lifecycle_1.RULE_NAME]: no_conflicting_lifecycle_1.default,
|
|
86
|
+
[no_duplicates_in_metadata_arrays_1.RULE_NAME]: no_duplicates_in_metadata_arrays_1.default,
|
|
85
87
|
[no_empty_lifecycle_method_1.RULE_NAME]: no_empty_lifecycle_method_1.default,
|
|
86
88
|
[no_forward_ref_1.RULE_NAME]: no_forward_ref_1.default,
|
|
87
89
|
[no_host_metadata_property_1.RULE_NAME]: no_host_metadata_property_1.default,
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type Options = [
|
|
2
|
+
{
|
|
3
|
+
suffixes: string[];
|
|
4
|
+
}
|
|
5
|
+
];
|
|
6
|
+
export type MessageIds = 'componentClassSuffix';
|
|
7
|
+
export declare const RULE_NAME = "component-class-suffix";
|
|
8
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"componentClassSuffix", Options, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
9
|
+
export default _default;
|
|
10
|
+
//# sourceMappingURL=component-class-suffix.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component-class-suffix.d.ts","sourceRoot":"","sources":["../../src/rules/component-class-suffix.ts"],"names":[],"mappings":"AAQA,KAAK,OAAO,GAAG;IACb;QACE,QAAQ,EAAE,MAAM,EAAE,CAAC;KACpB;CACF,CAAC;AACF,MAAM,MAAM,UAAU,GAAG,sBAAsB,CAAC;AAChD,eAAO,MAAM,SAAS,2BAA2B,CAAC;;AAGlD,wBAkDG"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
type Options = [
|
|
2
|
+
{
|
|
3
|
+
readonly template?: number;
|
|
4
|
+
readonly styles?: number;
|
|
5
|
+
readonly animations?: number;
|
|
6
|
+
}
|
|
7
|
+
];
|
|
8
|
+
export type MessageIds = 'componentMaxInlineDeclarations';
|
|
9
|
+
export declare const RULE_NAME = "component-max-inline-declarations";
|
|
10
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"componentMaxInlineDeclarations", Options, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
11
|
+
export default _default;
|
|
12
|
+
//# sourceMappingURL=component-max-inline-declarations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component-max-inline-declarations.d.ts","sourceRoot":"","sources":["../../src/rules/component-max-inline-declarations.ts"],"names":[],"mappings":"AAIA,KAAK,OAAO,GAAG;IACb;QACE,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAC3B,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;QACzB,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;KAC9B;CACF,CAAC;AACF,MAAM,MAAM,UAAU,GAAG,gCAAgC,CAAC;AAC1D,eAAO,MAAM,SAAS,sCAAsC,CAAC;;AAmB7D,wBA4GG"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { SelectorUtils } from '@angular-eslint/utils';
|
|
2
|
+
export declare const RULE_NAME = "component-selector";
|
|
3
|
+
export type MessageIds = 'prefixFailure' | 'styleFailure' | 'styleAndPrefixFailure' | 'typeFailure' | 'shadowDomEncapsulatedStyleFailure';
|
|
4
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<MessageIds, SelectorUtils.Options, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
5
|
+
export default _default;
|
|
6
|
+
//# sourceMappingURL=component-selector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component-selector.d.ts","sourceRoot":"","sources":["../../src/rules/component-selector.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,aAAa,EACd,MAAM,uBAAuB,CAAC;AAO/B,eAAO,MAAM,SAAS,uBAAuB,CAAC;AAC9C,MAAM,MAAM,UAAU,GAClB,eAAe,GACf,cAAc,GACd,uBAAuB,GACvB,aAAa,GACb,mCAAmC,CAAC;;AASxC,wBA0HG"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
type Mode = 'array' | 'string';
|
|
2
|
+
type Options = [mode: Mode];
|
|
3
|
+
export type MessageIds = 'useStylesArray' | 'useStylesString' | 'useStyleUrl' | 'useStyleUrls';
|
|
4
|
+
export declare const RULE_NAME = "consistent-component-styles";
|
|
5
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<MessageIds, Options, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
6
|
+
export default _default;
|
|
7
|
+
//# sourceMappingURL=consistent-component-styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consistent-component-styles.d.ts","sourceRoot":"","sources":["../../src/rules/consistent-component-styles.ts"],"names":[],"mappings":"AAIA,KAAK,IAAI,GAAG,OAAO,GAAG,QAAQ,CAAC;AAC/B,KAAK,OAAO,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AAC5B,MAAM,MAAM,UAAU,GAClB,gBAAgB,GAChB,iBAAiB,GACjB,aAAa,GACb,cAAc,CAAC;AACnB,eAAO,MAAM,SAAS,gCAAgC,CAAC;;AAEvD,wBAwHG"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { TSESLint } from '@typescript-eslint/utils';
|
|
2
|
+
export type MessageIds = 'contextualDecorator';
|
|
3
|
+
export declare const RULE_NAME = "contextual-decorator";
|
|
4
|
+
declare const _default: TSESLint.RuleModule<"contextualDecorator", [], TSESLint.RuleListener>;
|
|
5
|
+
export default _default;
|
|
6
|
+
//# sourceMappingURL=contextual-decorator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contextual-decorator.d.ts","sourceRoot":"","sources":["../../src/rules/contextual-decorator.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAY,MAAM,0BAA0B,CAAC;AAInE,MAAM,MAAM,UAAU,GAAG,qBAAqB,CAAC;AAC/C,eAAO,MAAM,SAAS,yBAAyB,CAAC;;AAEhD,wBA0BG"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type MessageIds = 'contextualLifecycle';
|
|
2
|
+
export declare const RULE_NAME = "contextual-lifecycle";
|
|
3
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"contextualLifecycle", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
4
|
+
export default _default;
|
|
5
|
+
//# sourceMappingURL=contextual-lifecycle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contextual-lifecycle.d.ts","sourceRoot":"","sources":["../../src/rules/contextual-lifecycle.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,UAAU,GAAG,qBAAqB,CAAC;AAC/C,eAAO,MAAM,SAAS,yBAAyB,CAAC;;AAEhD,wBA8DG"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type Options = [{
|
|
2
|
+
readonly suffixes: readonly string[];
|
|
3
|
+
}];
|
|
4
|
+
export type MessageIds = 'directiveClassSuffix';
|
|
5
|
+
export declare const RULE_NAME = "directive-class-suffix";
|
|
6
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"directiveClassSuffix", Options, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
7
|
+
export default _default;
|
|
8
|
+
//# sourceMappingURL=directive-class-suffix.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"directive-class-suffix.d.ts","sourceRoot":"","sources":["../../src/rules/directive-class-suffix.ts"],"names":[],"mappings":"AAQA,KAAK,OAAO,GAAG,CAAC;IAAE,QAAQ,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,CAAC,CAAC;AAC1D,MAAM,MAAM,UAAU,GAAG,sBAAsB,CAAC;AAChD,eAAO,MAAM,SAAS,2BAA2B,CAAC;;AAKlD,wBA6DG"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { SelectorUtils } from '@angular-eslint/utils';
|
|
2
|
+
export declare const RULE_NAME = "directive-selector";
|
|
3
|
+
export type MessageIds = 'prefixFailure' | 'styleFailure' | 'typeFailure';
|
|
4
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<MessageIds, SelectorUtils.Options, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
5
|
+
export default _default;
|
|
6
|
+
//# sourceMappingURL=directive-selector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"directive-selector.d.ts","sourceRoot":"","sources":["../../src/rules/directive-selector.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,aAAa,EACd,MAAM,uBAAuB,CAAC;AAI/B,eAAO,MAAM,SAAS,uBAAuB,CAAC;AAC9C,MAAM,MAAM,UAAU,GAAG,eAAe,GAAG,cAAc,GAAG,aAAa,CAAC;;AAM1E,wBAgGG"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type MessageIds = 'noAsyncLifecycleMethod';
|
|
2
|
+
export declare const RULE_NAME = "no-async-lifecycle-method";
|
|
3
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"noAsyncLifecycleMethod", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
4
|
+
export default _default;
|
|
5
|
+
//# sourceMappingURL=no-async-lifecycle-method.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-async-lifecycle-method.d.ts","sourceRoot":"","sources":["../../src/rules/no-async-lifecycle-method.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,UAAU,GAAG,wBAAwB,CAAC;AAClD,eAAO,MAAM,SAAS,8BAA8B,CAAC;;AAErD,wBAyCG"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type MessageIds = 'noAttributeDecorator';
|
|
2
|
+
export declare const RULE_NAME = "no-attribute-decorator";
|
|
3
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"noAttributeDecorator", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
4
|
+
export default _default;
|
|
5
|
+
//# sourceMappingURL=no-attribute-decorator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-attribute-decorator.d.ts","sourceRoot":"","sources":["../../src/rules/no-attribute-decorator.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,UAAU,GAAG,sBAAsB,CAAC;AAChD,eAAO,MAAM,SAAS,2BAA2B,CAAC;;AAElD,wBA0BG"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type MessageIds = 'noConflictingLifecycleInterface' | 'noConflictingLifecycleMethod';
|
|
2
|
+
export declare const RULE_NAME = "no-conflicting-lifecycle";
|
|
3
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<MessageIds, [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
4
|
+
export default _default;
|
|
5
|
+
//# sourceMappingURL=no-conflicting-lifecycle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-conflicting-lifecycle.d.ts","sourceRoot":"","sources":["../../src/rules/no-conflicting-lifecycle.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,UAAU,GAClB,iCAAiC,GACjC,8BAA8B,CAAC;AACnC,eAAO,MAAM,SAAS,6BAA6B,CAAC;;AAWpD,wBA6EG"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type MessageIds = 'noDuplicatesInMetadataArrays';
|
|
2
|
+
export declare const RULE_NAME = "no-duplicates-in-metadata-arrays";
|
|
3
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"noDuplicatesInMetadataArrays", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
4
|
+
export default _default;
|
|
5
|
+
//# sourceMappingURL=no-duplicates-in-metadata-arrays.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-duplicates-in-metadata-arrays.d.ts","sourceRoot":"","sources":["../../src/rules/no-duplicates-in-metadata-arrays.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,UAAU,GAAG,8BAA8B,CAAC;AACxD,eAAO,MAAM,SAAS,qCAAqC,CAAC;;AAE5D,wBA4CG"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RULE_NAME = void 0;
|
|
4
|
+
const utils_1 = require("@angular-eslint/utils");
|
|
5
|
+
const create_eslint_rule_1 = require("../utils/create-eslint-rule");
|
|
6
|
+
const utils_2 = require("@typescript-eslint/utils");
|
|
7
|
+
exports.RULE_NAME = 'no-duplicates-in-metadata-arrays';
|
|
8
|
+
exports.default = (0, create_eslint_rule_1.createESLintRule)({
|
|
9
|
+
name: exports.RULE_NAME,
|
|
10
|
+
meta: {
|
|
11
|
+
type: 'suggestion',
|
|
12
|
+
docs: {
|
|
13
|
+
description: 'Ensures that metadata arrays do not contain duplicate entries.',
|
|
14
|
+
},
|
|
15
|
+
schema: [],
|
|
16
|
+
messages: {
|
|
17
|
+
noDuplicatesInMetadataArrays: 'Entry is duplicated in metadata array',
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
defaultOptions: [],
|
|
21
|
+
create(context) {
|
|
22
|
+
const selectors = [
|
|
23
|
+
// https://angular.io/api/core/NgModule
|
|
24
|
+
`${utils_1.Selectors.MODULE_CLASS_DECORATOR} Property[key.name=${(0, utils_1.toPattern)([
|
|
25
|
+
'providers',
|
|
26
|
+
'declarations',
|
|
27
|
+
'imports',
|
|
28
|
+
'exports',
|
|
29
|
+
])}] > ArrayExpression`,
|
|
30
|
+
// https://angular.io/api/core/Component
|
|
31
|
+
`${utils_1.Selectors.COMPONENT_CLASS_DECORATOR} Property[key.name=${(0, utils_1.toPattern)([
|
|
32
|
+
'imports',
|
|
33
|
+
])}] > ArrayExpression`,
|
|
34
|
+
// https://angular.io/api/core/Directive
|
|
35
|
+
`${utils_1.Selectors.DIRECTIVE_CLASS_DECORATOR} Property[key.name=${(0, utils_1.toPattern)([
|
|
36
|
+
'providers',
|
|
37
|
+
])}] > ArrayExpression`,
|
|
38
|
+
].join(',');
|
|
39
|
+
return {
|
|
40
|
+
[selectors]({ elements }) {
|
|
41
|
+
getDuplicateItems(elements).forEach((duplicateImport) => {
|
|
42
|
+
context.report({
|
|
43
|
+
node: duplicateImport,
|
|
44
|
+
messageId: 'noDuplicatesInMetadataArrays',
|
|
45
|
+
});
|
|
46
|
+
});
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
},
|
|
50
|
+
});
|
|
51
|
+
function getDuplicateItems(elements) {
|
|
52
|
+
const items = elements.filter(utils_2.ASTUtils.isIdentifier);
|
|
53
|
+
const uniqueItemNames = new Set();
|
|
54
|
+
const duplicateItems = [];
|
|
55
|
+
items.forEach((item) => {
|
|
56
|
+
if (uniqueItemNames.has(item.name)) {
|
|
57
|
+
duplicateItems.push(item);
|
|
58
|
+
}
|
|
59
|
+
else {
|
|
60
|
+
uniqueItemNames.add(item.name);
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
return duplicateItems;
|
|
64
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type MessageIds = 'noEmptyLifecycleMethod' | 'suggestRemoveLifecycleMethod';
|
|
2
|
+
export declare const RULE_NAME = "no-empty-lifecycle-method";
|
|
3
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<MessageIds, [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
4
|
+
export default _default;
|
|
5
|
+
//# sourceMappingURL=no-empty-lifecycle-method.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-empty-lifecycle-method.d.ts","sourceRoot":"","sources":["../../src/rules/no-empty-lifecycle-method.ts"],"names":[],"mappings":"AAWA,MAAM,MAAM,UAAU,GAClB,wBAAwB,GACxB,8BAA8B,CAAC;AACnC,eAAO,MAAM,SAAS,8BAA8B,CAAC;;AAErD,wBAsFG"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export type MessageIds = 'noForwardRef';
|
|
2
|
+
export declare const RULE_NAME = "no-forward-ref";
|
|
3
|
+
export declare const FORWARD_REF = "forwardRef";
|
|
4
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"noForwardRef", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
5
|
+
export default _default;
|
|
6
|
+
//# sourceMappingURL=no-forward-ref.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-forward-ref.d.ts","sourceRoot":"","sources":["../../src/rules/no-forward-ref.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,UAAU,GAAG,cAAc,CAAC;AACxC,eAAO,MAAM,SAAS,mBAAmB,CAAC;AAE1C,eAAO,MAAM,WAAW,eAAe,CAAC;;AAExC,wBAyBG"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type Options = [{
|
|
2
|
+
readonly allowStatic?: boolean;
|
|
3
|
+
}];
|
|
4
|
+
export type MessageIds = 'noHostMetadataProperty';
|
|
5
|
+
export declare const RULE_NAME = "no-host-metadata-property";
|
|
6
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"noHostMetadataProperty", Options, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
7
|
+
export default _default;
|
|
8
|
+
//# sourceMappingURL=no-host-metadata-property.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-host-metadata-property.d.ts","sourceRoot":"","sources":["../../src/rules/no-host-metadata-property.ts"],"names":[],"mappings":"AAKA,KAAK,OAAO,GAAG,CAAC;IAAE,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC,CAAC;AACpD,MAAM,MAAM,UAAU,GAAG,wBAAwB,CAAC;AAClD,eAAO,MAAM,SAAS,8BAA8B,CAAC;;AAKrD,wBA4CG"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type Options = [{
|
|
2
|
+
readonly prefixes: readonly string[];
|
|
3
|
+
}];
|
|
4
|
+
export type MessageIds = 'noInputPrefix';
|
|
5
|
+
export declare const RULE_NAME = "no-input-prefix";
|
|
6
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"noInputPrefix", Options, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
7
|
+
export default _default;
|
|
8
|
+
//# sourceMappingURL=no-input-prefix.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-input-prefix.d.ts","sourceRoot":"","sources":["../../src/rules/no-input-prefix.ts"],"names":[],"mappings":"AAQA,KAAK,OAAO,GAAG,CAAC;IAAE,QAAQ,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,CAAC,CAAC;AAC1D,MAAM,MAAM,UAAU,GAAG,eAAe,CAAC;AACzC,eAAO,MAAM,SAAS,oBAAoB,CAAC;;AAE3C,wBA0HG"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type Options = [{
|
|
2
|
+
readonly allowedNames?: readonly string[];
|
|
3
|
+
}];
|
|
4
|
+
export type MessageIds = 'noInputRename' | 'suggestRemoveAliasName' | 'suggestReplaceOriginalNameWithAliasName';
|
|
5
|
+
export declare const RULE_NAME = "no-input-rename";
|
|
6
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<MessageIds, Options, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
7
|
+
export default _default;
|
|
8
|
+
//# sourceMappingURL=no-input-rename.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-input-rename.d.ts","sourceRoot":"","sources":["../../src/rules/no-input-rename.ts"],"names":[],"mappings":"AAYA,KAAK,OAAO,GAAG,CAAC;IAAE,QAAQ,CAAC,YAAY,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,CAAC,CAAC;AAC/D,MAAM,MAAM,UAAU,GAClB,eAAe,GACf,wBAAwB,GACxB,yCAAyC,CAAC;AAC9C,eAAO,MAAM,SAAS,oBAAoB,CAAC;;AAG3C,wBA0NG"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type MessageIds = 'noInputsMetadataProperty';
|
|
2
|
+
export declare const RULE_NAME = "no-inputs-metadata-property";
|
|
3
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"noInputsMetadataProperty", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
4
|
+
export default _default;
|
|
5
|
+
//# sourceMappingURL=no-inputs-metadata-property.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-inputs-metadata-property.d.ts","sourceRoot":"","sources":["../../src/rules/no-inputs-metadata-property.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,UAAU,GAAG,0BAA0B,CAAC;AACpD,eAAO,MAAM,SAAS,gCAAgC,CAAC;;AAIvD,wBAoDG"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type MessageIds = 'noLifecycleCall';
|
|
2
|
+
export declare const RULE_NAME = "no-lifecycle-call";
|
|
3
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"noLifecycleCall", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
4
|
+
export default _default;
|
|
5
|
+
//# sourceMappingURL=no-lifecycle-call.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-lifecycle-call.d.ts","sourceRoot":"","sources":["../../src/rules/no-lifecycle-call.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,UAAU,GAAG,iBAAiB,CAAC;AAC3C,eAAO,MAAM,SAAS,sBAAsB,CAAC;;AAE7C,wBAwCG"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type MessageIds = 'noOutputNative';
|
|
2
|
+
export declare const RULE_NAME = "no-output-native";
|
|
3
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"noOutputNative", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
4
|
+
export default _default;
|
|
5
|
+
//# sourceMappingURL=no-output-native.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-output-native.d.ts","sourceRoot":"","sources":["../../src/rules/no-output-native.ts"],"names":[],"mappings":"AASA,MAAM,MAAM,UAAU,GAAG,gBAAgB,CAAC;AAC1C,eAAO,MAAM,SAAS,qBAAqB,CAAC;;AAE5C,wBA8CG"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type MessageIds = 'noOutputOnPrefix';
|
|
2
|
+
export declare const RULE_NAME = "no-output-on-prefix";
|
|
3
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"noOutputOnPrefix", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
4
|
+
export default _default;
|
|
5
|
+
//# sourceMappingURL=no-output-on-prefix.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-output-on-prefix.d.ts","sourceRoot":"","sources":["../../src/rules/no-output-on-prefix.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,UAAU,GAAG,kBAAkB,CAAC;AAC5C,eAAO,MAAM,SAAS,wBAAwB,CAAC;;AAG/C,wBA4CG"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type MessageIds = 'noOutputRename' | 'suggestRemoveAliasName' | 'suggestReplaceOriginalNameWithAliasName';
|
|
2
|
+
export declare const RULE_NAME = "no-output-rename";
|
|
3
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<MessageIds, [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
4
|
+
export default _default;
|
|
5
|
+
//# sourceMappingURL=no-output-rename.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-output-rename.d.ts","sourceRoot":"","sources":["../../src/rules/no-output-rename.ts"],"names":[],"mappings":"AAWA,MAAM,MAAM,UAAU,GAClB,gBAAgB,GAChB,wBAAwB,GACxB,yCAAyC,CAAC;AAC9C,eAAO,MAAM,SAAS,qBAAqB,CAAC;;AAG5C,wBAkJG"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type MessageIds = 'noOutputsMetadataProperty';
|
|
2
|
+
export declare const RULE_NAME = "no-outputs-metadata-property";
|
|
3
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"noOutputsMetadataProperty", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
4
|
+
export default _default;
|
|
5
|
+
//# sourceMappingURL=no-outputs-metadata-property.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-outputs-metadata-property.d.ts","sourceRoot":"","sources":["../../src/rules/no-outputs-metadata-property.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,UAAU,GAAG,2BAA2B,CAAC;AACrD,eAAO,MAAM,SAAS,iCAAiC,CAAC;;AAIxD,wBAoDG"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type MessageIds = 'noPipeImpure' | 'suggestRemovePipeImpure';
|
|
2
|
+
export declare const RULE_NAME = "no-pipe-impure";
|
|
3
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<MessageIds, [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
4
|
+
export default _default;
|
|
5
|
+
//# sourceMappingURL=no-pipe-impure.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-pipe-impure.d.ts","sourceRoot":"","sources":["../../src/rules/no-pipe-impure.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,UAAU,GAAG,cAAc,GAAG,yBAAyB,CAAC;AACpE,eAAO,MAAM,SAAS,mBAAmB,CAAC;;AAE1C,wBAuCG"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type MessageIds = 'noQueriesMetadataProperty';
|
|
2
|
+
export declare const RULE_NAME = "no-queries-metadata-property";
|
|
3
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"noQueriesMetadataProperty", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
4
|
+
export default _default;
|
|
5
|
+
//# sourceMappingURL=no-queries-metadata-property.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-queries-metadata-property.d.ts","sourceRoot":"","sources":["../../src/rules/no-queries-metadata-property.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,UAAU,GAAG,2BAA2B,CAAC;AACrD,eAAO,MAAM,SAAS,iCAAiC,CAAC;;AAKxD,wBAiCG"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type Options = [
|
|
2
|
+
{
|
|
3
|
+
prefixes: string[];
|
|
4
|
+
}
|
|
5
|
+
];
|
|
6
|
+
export type MessageIds = 'pipePrefix';
|
|
7
|
+
export declare const RULE_NAME = "pipe-prefix";
|
|
8
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"pipePrefix", Options, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
9
|
+
export default _default;
|
|
10
|
+
//# sourceMappingURL=pipe-prefix.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pipe-prefix.d.ts","sourceRoot":"","sources":["../../src/rules/pipe-prefix.ts"],"names":[],"mappings":"AASA,KAAK,OAAO,GAAG;IACb;QACE,QAAQ,EAAE,MAAM,EAAE,CAAC;KACpB;CACF,CAAC;AACF,MAAM,MAAM,UAAU,GAAG,YAAY,CAAC;AACtC,eAAO,MAAM,SAAS,gBAAgB,CAAC;;AAEvC,wBAmFG"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type MessageIds = 'preferOnPushComponentChangeDetection' | 'suggestAddChangeDetectionOnPush';
|
|
2
|
+
export declare const RULE_NAME = "prefer-on-push-component-change-detection";
|
|
3
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<MessageIds, [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
4
|
+
export default _default;
|
|
5
|
+
//# sourceMappingURL=prefer-on-push-component-change-detection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prefer-on-push-component-change-detection.d.ts","sourceRoot":"","sources":["../../src/rules/prefer-on-push-component-change-detection.ts"],"names":[],"mappings":"AAUA,MAAM,MAAM,UAAU,GAClB,sCAAsC,GACtC,iCAAiC,CAAC;AAatC,eAAO,MAAM,SAAS,8CAA8C,CAAC;;AAIrE,wBAuEG"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type MessageIds = 'preferOutputReadonly' | 'suggestAddReadonlyModifier';
|
|
2
|
+
export declare const RULE_NAME = "prefer-output-readonly";
|
|
3
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<MessageIds, [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
4
|
+
export default _default;
|
|
5
|
+
//# sourceMappingURL=prefer-output-readonly.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prefer-output-readonly.d.ts","sourceRoot":"","sources":["../../src/rules/prefer-output-readonly.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,UAAU,GAAG,sBAAsB,GAAG,4BAA4B,CAAC;AAC/E,eAAO,MAAM,SAAS,2BAA2B,CAAC;;AAElD,wBAmCG"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type MessageIds = 'preferStandaloneComponent';
|
|
2
|
+
export declare const RULE_NAME = "prefer-standalone-component";
|
|
3
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"preferStandaloneComponent", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
4
|
+
export default _default;
|
|
5
|
+
//# sourceMappingURL=prefer-standalone-component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prefer-standalone-component.d.ts","sourceRoot":"","sources":["../../src/rules/prefer-standalone-component.ts"],"names":[],"mappings":"AAUA,MAAM,MAAM,UAAU,GAAG,2BAA2B,CAAC;AACrD,eAAO,MAAM,SAAS,gCAAgC,CAAC;;AAIvD,wBA0DG"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type MessageIds = 'preferStandalone';
|
|
2
|
+
export declare const RULE_NAME = "prefer-standalone";
|
|
3
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"preferStandalone", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
4
|
+
export default _default;
|
|
5
|
+
//# sourceMappingURL=prefer-standalone.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prefer-standalone.d.ts","sourceRoot":"","sources":["../../src/rules/prefer-standalone.ts"],"names":[],"mappings":"AAWA,MAAM,MAAM,UAAU,GAAG,kBAAkB,CAAC;AAC5C,eAAO,MAAM,SAAS,sBAAsB,CAAC;;AAI7C,wBA8DG"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type MessageIds = 'relativeUrlPrefix';
|
|
2
|
+
export declare const RULE_NAME = "relative-url-prefix";
|
|
3
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"relativeUrlPrefix", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
4
|
+
export default _default;
|
|
5
|
+
//# sourceMappingURL=relative-url-prefix.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"relative-url-prefix.d.ts","sourceRoot":"","sources":["../../src/rules/relative-url-prefix.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,UAAU,GAAG,mBAAmB,CAAC;AAC7C,eAAO,MAAM,SAAS,wBAAwB,CAAC;;AAK/C,wBA0CG"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
type Options = [
|
|
2
|
+
{
|
|
3
|
+
readonly requireDescription?: boolean;
|
|
4
|
+
readonly requireMeaning?: boolean;
|
|
5
|
+
}
|
|
6
|
+
];
|
|
7
|
+
export type MessageIds = 'requireLocalizeDescription' | 'requireLocalizeMeaning';
|
|
8
|
+
export declare const RULE_NAME = "require-localize-metadata";
|
|
9
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<MessageIds, Options, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
10
|
+
export default _default;
|
|
11
|
+
//# sourceMappingURL=require-localize-metadata.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"require-localize-metadata.d.ts","sourceRoot":"","sources":["../../src/rules/require-localize-metadata.ts"],"names":[],"mappings":"AAIA,KAAK,OAAO,GAAG;IACb;QACE,QAAQ,CAAC,kBAAkB,CAAC,EAAE,OAAO,CAAC;QACtC,QAAQ,CAAC,cAAc,CAAC,EAAE,OAAO,CAAC;KACnC;CACF,CAAC;AAmBF,MAAM,MAAM,UAAU,GAClB,4BAA4B,GAC5B,wBAAwB,CAAC;AAC7B,eAAO,MAAM,SAAS,8BAA8B,CAAC;;AAErD,wBAuEG"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type MessageIds = 'lifecycleMethodsNotSorted';
|
|
2
|
+
export declare const RULE_NAME = "sort-lifecycle-methods";
|
|
3
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"lifecycleMethodsNotSorted", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
4
|
+
export default _default;
|
|
5
|
+
//# sourceMappingURL=sort-lifecycle-methods.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sort-lifecycle-methods.d.ts","sourceRoot":"","sources":["../../src/rules/sort-lifecycle-methods.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,UAAU,GAAG,2BAA2B,CAAC;AACrD,eAAO,MAAM,SAAS,2BAA2B,CAAC;;AAElD,wBAyDG"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type Options = [
|
|
2
|
+
{
|
|
3
|
+
readonly locale: string;
|
|
4
|
+
}
|
|
5
|
+
];
|
|
6
|
+
export type MessageIds = 'sortNgmoduleMetadataArrays';
|
|
7
|
+
export declare const RULE_NAME = "sort-ngmodule-metadata-arrays";
|
|
8
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"sortNgmoduleMetadataArrays", Options, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
9
|
+
export default _default;
|
|
10
|
+
//# sourceMappingURL=sort-ngmodule-metadata-arrays.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sort-ngmodule-metadata-arrays.d.ts","sourceRoot":"","sources":["../../src/rules/sort-ngmodule-metadata-arrays.ts"],"names":[],"mappings":"AAKA,KAAK,OAAO,GAAG;IACb;QACE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;KACzB;CACF,CAAC;AACF,MAAM,MAAM,UAAU,GAAG,4BAA4B,CAAC;AACtD,eAAO,MAAM,SAAS,kCAAkC,CAAC;;AAGzD,wBA2DG"}
|
|
@@ -10,6 +10,7 @@ exports.default = (0, create_eslint_rule_1.createESLintRule)({
|
|
|
10
10
|
name: exports.RULE_NAME,
|
|
11
11
|
meta: {
|
|
12
12
|
type: 'suggestion',
|
|
13
|
+
deprecated: true,
|
|
13
14
|
docs: {
|
|
14
15
|
description: 'Ensures ASC alphabetical order for `NgModule` metadata arrays for easy visual scanning',
|
|
15
16
|
},
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type MessageIds = 'useComponentSelector';
|
|
2
|
+
export declare const RULE_NAME = "use-component-selector";
|
|
3
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"useComponentSelector", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
4
|
+
export default _default;
|
|
5
|
+
//# sourceMappingURL=use-component-selector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-component-selector.d.ts","sourceRoot":"","sources":["../../src/rules/use-component-selector.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,UAAU,GAAG,sBAAsB,CAAC;AAChD,eAAO,MAAM,SAAS,2BAA2B,CAAC;;AAElD,wBAiCG"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type MessageIds = 'useComponentViewEncapsulation' | 'suggestRemoveViewEncapsulationNone';
|
|
2
|
+
export declare const RULE_NAME = "use-component-view-encapsulation";
|
|
3
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<MessageIds, [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
4
|
+
export default _default;
|
|
5
|
+
//# sourceMappingURL=use-component-view-encapsulation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-component-view-encapsulation.d.ts","sourceRoot":"","sources":["../../src/rules/use-component-view-encapsulation.ts"],"names":[],"mappings":"AAUA,MAAM,MAAM,UAAU,GAClB,+BAA+B,GAC/B,oCAAoC,CAAC;AACzC,eAAO,MAAM,SAAS,qCAAqC,CAAC;;AAG5D,wBAwDG"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type Options = [{
|
|
2
|
+
readonly ignoreClassNamePattern?: string;
|
|
3
|
+
}];
|
|
4
|
+
export type MessageIds = 'useInjectableProvidedIn' | 'suggestInjector';
|
|
5
|
+
export declare const RULE_NAME = "use-injectable-provided-in";
|
|
6
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<MessageIds, Options, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
7
|
+
export default _default;
|
|
8
|
+
//# sourceMappingURL=use-injectable-provided-in.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-injectable-provided-in.d.ts","sourceRoot":"","sources":["../../src/rules/use-injectable-provided-in.ts"],"names":[],"mappings":"AAIA,KAAK,OAAO,GAAG,CAAC;IAAE,QAAQ,CAAC,sBAAsB,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAC9D,MAAM,MAAM,UAAU,GAAG,yBAAyB,GAAG,iBAAiB,CAAC;AACvE,eAAO,MAAM,SAAS,+BAA+B,CAAC;;AAGtD,wBA2DG"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type MessageIds = 'useLifecycleInterface';
|
|
2
|
+
export declare const RULE_NAME = "use-lifecycle-interface";
|
|
3
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"useLifecycleInterface", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
4
|
+
export default _default;
|
|
5
|
+
//# sourceMappingURL=use-lifecycle-interface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-lifecycle-interface.d.ts","sourceRoot":"","sources":["../../src/rules/use-lifecycle-interface.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,UAAU,GAAG,uBAAuB,CAAC;AACjD,eAAO,MAAM,SAAS,4BAA4B,CAAC;;AAGnD,wBA+CG"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type MessageIds = 'usePipeTransformInterface';
|
|
2
|
+
export declare const RULE_NAME = "use-pipe-transform-interface";
|
|
3
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"usePipeTransformInterface", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
4
|
+
export default _default;
|
|
5
|
+
//# sourceMappingURL=use-pipe-transform-interface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-pipe-transform-interface.d.ts","sourceRoot":"","sources":["../../src/rules/use-pipe-transform-interface.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,UAAU,GAAG,2BAA2B,CAAC;AACrD,eAAO,MAAM,SAAS,iCAAiC,CAAC;;AAGxD,wBAgDG"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { ESLintUtils } from '@typescript-eslint/utils';
|
|
2
|
+
export declare const createESLintRule: <Options extends readonly unknown[], MessageIds extends string>({ name, meta, ...rule }: Readonly<ESLintUtils.RuleWithMetaAndName<Options, MessageIds>>) => ESLintUtils.RuleModule<MessageIds, Options, ESLintUtils.RuleListener>;
|
|
3
|
+
//# sourceMappingURL=create-eslint-rule.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-eslint-rule.d.ts","sourceRoot":"","sources":["../../src/utils/create-eslint-rule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AA4BvD,eAAO,MAAM,gBAAgB,mOAG5B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular-eslint/eslint-plugin",
|
|
3
|
-
"version": "17.
|
|
3
|
+
"version": "17.4.0",
|
|
4
4
|
"description": "ESLint plugin for Angular applications, following angular.io/styleguide",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -12,13 +12,15 @@
|
|
|
12
12
|
},
|
|
13
13
|
"files": [
|
|
14
14
|
"dist",
|
|
15
|
+
"!**/*.tsbuildinfo",
|
|
15
16
|
"package.json",
|
|
16
17
|
"README.md",
|
|
17
18
|
"LICENSE"
|
|
18
19
|
],
|
|
19
20
|
"dependencies": {
|
|
20
|
-
"@angular-eslint/
|
|
21
|
-
"@
|
|
21
|
+
"@angular-eslint/bundled-angular-compiler": "17.4.0",
|
|
22
|
+
"@angular-eslint/utils": "17.4.0",
|
|
23
|
+
"@typescript-eslint/utils": "7.8.0"
|
|
22
24
|
},
|
|
23
25
|
"peerDependencies": {
|
|
24
26
|
"eslint": "^7.20.0 || ^8.0.0",
|