Skip to content

Commit 1f68a80

Browse files
authored
feat(eslint-plugin): introduce sort keys in type-decorator rule (#2187)
1 parent 8a9b857 commit 1f68a80

File tree

11 files changed

+1939
-6
lines changed

11 files changed

+1939
-6
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ export default (
5050
'@angular-eslint/require-lifecycle-on-prototype': 'error',
5151
'@angular-eslint/require-localize-metadata': 'error',
5252
'@angular-eslint/runtime-localize': 'error',
53+
'@angular-eslint/sort-keys-in-type-decorator': 'error',
5354
'@angular-eslint/sort-lifecycle-methods': 'error',
5455
'@angular-eslint/use-component-selector': 'error',
5556
'@angular-eslint/use-component-view-encapsulation': 'error',

packages/eslint-plugin/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ Please see https://github.com/angular-eslint/angular-eslint for full usage instr
7373
| [`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 | | | |
7474
| [`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. | | | |
7575
| [`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. | | | |
76+
| [`sort-keys-in-type-decorator`](https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/sort-keys-in-type-decorator.md) | Ensures that keys in type decorators (Component, Directive, NgModule, Pipe) are sorted in a consistent order | | :wrench: | |
7677
| [`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 | | | |
7778
| [`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: |
7879
| [`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: |

0 commit comments

Comments
 (0)