Skip to content

Commit 8dfdc4f

Browse files
committed
feat(eslint-plugin)!: promote prefer-standalone to recommended
1 parent ced9d4e commit 8dfdc4f

File tree

5 files changed

+5
-2
lines changed

5 files changed

+5
-2
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<p align="center">
2-
<img alt="angular-eslint-logo" src="https://user-images.githubusercontent.com/900523/101620109-0e5e1f00-3a0c-11eb-8c40-b1d9a8bb3c4c.png" width="128" height="128" />
2+
<img alt="angular-eslint-logo" src="https://github.com/user-attachments/assets/c3aff624-4afe-4510-b5eb-c93090e37ebc" width="128" height="128" />
33
</p>
44

55
<h1 align="center">Angular ESLint</h1>

packages/angular-eslint/src/configs/ts-recommended.ts

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ export default (
2626
'@angular-eslint/no-output-on-prefix': 'error',
2727
'@angular-eslint/no-output-rename': 'error',
2828
'@angular-eslint/no-outputs-metadata-property': 'error',
29+
'@angular-eslint/prefer-standalone': 'error',
2930
'@angular-eslint/use-pipe-transform-interface': 'error',
3031
'@angular-eslint/use-lifecycle-interface': 'warn',
3132
},

packages/eslint-plugin/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Please see https://github.com/angular-eslint/angular-eslint for full usage instr
6666
| [`pipe-prefix`](https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/pipe-prefix.md) | Enforce consistent prefix for pipes. | | | |
6767
| [`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: |
6868
| [`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-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: | |
69+
| [`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 | :white_check_mark: | :wrench: | |
7070
| [`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 | | | |
7171
| [`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. | | | |
7272
| [`runtime-localize`](https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/runtime-localize.md) | Ensures that $localize tagged messages can use runtime-loaded translations. | | | |

packages/eslint-plugin/src/configs/recommended.json

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"@angular-eslint/no-output-on-prefix": "error",
1313
"@angular-eslint/no-output-rename": "error",
1414
"@angular-eslint/no-outputs-metadata-property": "error",
15+
"@angular-eslint/prefer-standalone": "error",
1516
"@angular-eslint/use-pipe-transform-interface": "error",
1617
"@angular-eslint/use-lifecycle-interface": "warn"
1718
}

packages/eslint-plugin/src/rules/prefer-standalone.ts

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export default createESLintRule<Options, MessageIds>({
2020
type: 'suggestion',
2121
docs: {
2222
description: `Ensures component, directive and pipe \`${METADATA_PROPERTY_NAME}\` property is set to \`${IS_STANDALONE}\` in the component decorator`,
23+
recommended: 'recommended',
2324
},
2425
fixable: 'code',
2526
schema: [],

0 commit comments

Comments
 (0)