@angular-eslint/eslint-plugin 19.0.1-alpha.1 → 19.0.1-alpha.3
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 +1 -0
- package/dist/configs/all.json +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/rules/prefer-signals.d.ts.map +1 -1
- package/dist/rules/prefer-signals.js +0 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -66,6 +66,7 @@ Please see https://github.com/angular-eslint/angular-eslint for full usage instr
|
|
|
66
66
|
| [`pipe-prefix`](https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/pipe-prefix.md) | Enforce consistent prefix for pipes. | | | |
|
|
67
67
|
| [`prefer-on-push-component-change-detection`](https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-on-push-component-change-detection.md) | Ensures component's `changeDetection` is set to `ChangeDetectionStrategy.OnPush` | | | :bulb: |
|
|
68
68
|
| [`prefer-output-readonly`](https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-output-readonly.md) | Prefer to declare `@Output`, `OutputEmitterRef` and `OutputRef` as `readonly` since they are not supposed to be reassigned | | | :bulb: |
|
|
69
|
+
| [`prefer-signals`](https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-signals.md) | Use readonly signals instead of `@Input()`, `@ViewChild()` and other legacy decorators | | | :bulb: |
|
|
69
70
|
| [`prefer-standalone`](https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-standalone.md) | Ensures Components, Directives and Pipes do not opt out of standalone | :white_check_mark: | :wrench: | |
|
|
70
71
|
| [`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.dev/style-guide#style-05-04 | | | |
|
|
71
72
|
| [`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. | | | |
|
package/dist/configs/all.json
CHANGED
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
"@angular-eslint/pipe-prefix": "error",
|
|
30
30
|
"@angular-eslint/prefer-on-push-component-change-detection": "error",
|
|
31
31
|
"@angular-eslint/prefer-output-readonly": "error",
|
|
32
|
+
"@angular-eslint/prefer-signals": "error",
|
|
32
33
|
"@angular-eslint/prefer-standalone": "error",
|
|
33
34
|
"@angular-eslint/relative-url-prefix": "error",
|
|
34
35
|
"@angular-eslint/require-localize-metadata": "error",
|
package/dist/index.d.ts
CHANGED
|
@@ -31,6 +31,7 @@ declare const _default: {
|
|
|
31
31
|
"@angular-eslint/pipe-prefix": string;
|
|
32
32
|
"@angular-eslint/prefer-on-push-component-change-detection": string;
|
|
33
33
|
"@angular-eslint/prefer-output-readonly": string;
|
|
34
|
+
"@angular-eslint/prefer-signals": string;
|
|
34
35
|
"@angular-eslint/prefer-standalone": string;
|
|
35
36
|
"@angular-eslint/relative-url-prefix": string;
|
|
36
37
|
"@angular-eslint/require-localize-metadata": string;
|
|
@@ -90,6 +91,13 @@ declare const _default: {
|
|
|
90
91
|
"no-queries-metadata-property": import("@typescript-eslint/utils/ts-eslint").RuleModule<"noQueriesMetadataProperty", [], import("./utils/create-eslint-rule").RuleDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
91
92
|
"pipe-prefix": import("@typescript-eslint/utils/ts-eslint").RuleModule<"pipePrefix", import("./rules/pipe-prefix").Options, import("./utils/create-eslint-rule").RuleDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
92
93
|
"prefer-on-push-component-change-detection": import("@typescript-eslint/utils/ts-eslint").RuleModule<import("./rules/prefer-on-push-component-change-detection").MessageIds, [], import("./utils/create-eslint-rule").RuleDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
94
|
+
"prefer-signals": import("@typescript-eslint/utils/ts-eslint").RuleModule<import("./rules/prefer-signals").MessageIds, [{
|
|
95
|
+
preferReadonlySignalProperties: boolean;
|
|
96
|
+
preferInputSignals: boolean;
|
|
97
|
+
preferQuerySignals: boolean;
|
|
98
|
+
useTypeChecking: boolean;
|
|
99
|
+
additionalSignalCreationFunctions: string[];
|
|
100
|
+
}], import("./utils/create-eslint-rule").RuleDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
93
101
|
"prefer-standalone": import("@typescript-eslint/utils/ts-eslint").RuleModule<"preferStandalone", [], import("./utils/create-eslint-rule").RuleDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
94
102
|
"prefer-output-readonly": import("@typescript-eslint/utils/ts-eslint").RuleModule<import("./rules/prefer-output-readonly").MessageIds, [], import("./utils/create-eslint-rule").RuleDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
95
103
|
"relative-url-prefix": import("@typescript-eslint/utils/ts-eslint").RuleModule<"relativeUrlPrefix", [], import("./utils/create-eslint-rule").RuleDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsHA,kBA8CE"}
|
package/dist/index.js
CHANGED
|
@@ -53,6 +53,7 @@ const no_queries_metadata_property_1 = __importStar(require("./rules/no-queries-
|
|
|
53
53
|
const pipe_prefix_1 = __importStar(require("./rules/pipe-prefix"));
|
|
54
54
|
const prefer_on_push_component_change_detection_1 = __importStar(require("./rules/prefer-on-push-component-change-detection"));
|
|
55
55
|
const prefer_output_readonly_1 = __importStar(require("./rules/prefer-output-readonly"));
|
|
56
|
+
const prefer_signals_1 = __importStar(require("./rules/prefer-signals"));
|
|
56
57
|
const prefer_standalone_1 = __importStar(require("./rules/prefer-standalone"));
|
|
57
58
|
const relative_url_prefix_1 = __importStar(require("./rules/relative-url-prefix"));
|
|
58
59
|
const require_localize_metadata_1 = __importStar(require("./rules/require-localize-metadata"));
|
|
@@ -96,6 +97,7 @@ module.exports = {
|
|
|
96
97
|
[no_queries_metadata_property_1.RULE_NAME]: no_queries_metadata_property_1.default,
|
|
97
98
|
[pipe_prefix_1.RULE_NAME]: pipe_prefix_1.default,
|
|
98
99
|
[prefer_on_push_component_change_detection_1.RULE_NAME]: prefer_on_push_component_change_detection_1.default,
|
|
100
|
+
[prefer_signals_1.RULE_NAME]: prefer_signals_1.default,
|
|
99
101
|
[prefer_standalone_1.RULE_NAME]: prefer_standalone_1.default,
|
|
100
102
|
[prefer_output_readonly_1.RULE_NAME]: prefer_output_readonly_1.default,
|
|
101
103
|
[relative_url_prefix_1.RULE_NAME]: relative_url_prefix_1.default,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prefer-signals.d.ts","sourceRoot":"","sources":["../../src/rules/prefer-signals.ts"],"names":[],"mappings":"AAKA,OAAO,EAAkB,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAGvE,KAAK,OAAO,GAAG;IACb;QACE,8BAA8B,EAAE,OAAO,CAAC;QACxC,kBAAkB,EAAE,OAAO,CAAC;QAC5B,kBAAkB,EAAE,OAAO,CAAC;QAC5B,eAAe,EAAE,OAAO,CAAC;QACzB,iCAAiC,EAAE,MAAM,EAAE,CAAC;KAC7C;CACF,CAAC;AA4BF,MAAM,MAAM,UAAU,GAClB,oBAAoB,GACpB,oBAAoB,GACpB,gCAAgC,GAChC,4BAA4B,CAAC;AACjC,eAAO,MAAM,SAAS,mBAAmB,CAAC;;AAE1C,
|
|
1
|
+
{"version":3,"file":"prefer-signals.d.ts","sourceRoot":"","sources":["../../src/rules/prefer-signals.ts"],"names":[],"mappings":"AAKA,OAAO,EAAkB,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAGvE,KAAK,OAAO,GAAG;IACb;QACE,8BAA8B,EAAE,OAAO,CAAC;QACxC,kBAAkB,EAAE,OAAO,CAAC;QAC5B,kBAAkB,EAAE,OAAO,CAAC;QAC5B,eAAe,EAAE,OAAO,CAAC;QACzB,iCAAiC,EAAE,MAAM,EAAE,CAAC;KAC7C;CACF,CAAC;AA4BF,MAAM,MAAM,UAAU,GAClB,oBAAoB,GACpB,oBAAoB,GACpB,gCAAgC,GAChC,4BAA4B,CAAC;AACjC,eAAO,MAAM,SAAS,mBAAmB,CAAC;;AAE1C,wBA4KG"}
|
|
@@ -35,7 +35,6 @@ exports.default = (0, create_eslint_rule_1.createESLintRule)({
|
|
|
35
35
|
type: 'suggestion',
|
|
36
36
|
docs: {
|
|
37
37
|
description: 'Use readonly signals instead of `@Input()`, `@ViewChild()` and other legacy decorators',
|
|
38
|
-
recommended: 'recommended',
|
|
39
38
|
},
|
|
40
39
|
hasSuggestions: true,
|
|
41
40
|
schema: [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular-eslint/eslint-plugin",
|
|
3
|
-
"version": "19.0.1-alpha.
|
|
3
|
+
"version": "19.0.1-alpha.3",
|
|
4
4
|
"description": "ESLint plugin for Angular applications, following https://angular.dev/style-guide",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
"LICENSE"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@angular-eslint/bundled-angular-compiler": "19.0.1-alpha.
|
|
22
|
-
"@angular-eslint/utils": "19.0.1-alpha.
|
|
21
|
+
"@angular-eslint/bundled-angular-compiler": "19.0.1-alpha.3",
|
|
22
|
+
"@angular-eslint/utils": "19.0.1-alpha.3"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@angular-eslint/test-utils": "19.0.1-alpha.
|
|
25
|
+
"@angular-eslint/test-utils": "19.0.1-alpha.3"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"@typescript-eslint/utils": "^7.11.0 || ^8.0.0",
|