Skip to content

Commit b8da3c8

Browse files
feat: update ESLint configuration to include @angular-eslint/prefer-inject rule
- Added the @angular-eslint/prefer-inject rule to .eslintrc.json files in content-services, process-services, and process-services-cloud, promoting the use of the inject() function for dependency injection. - Made minor adjustments to comments in search-logical-filter.component.ts for clarity. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 78dd690 commit b8da3c8

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

lib/content-services/.eslintrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
"prefer-const": "warn",
3838
"arrow-body-style": "warn",
3939
"@angular-eslint/no-output-native": "off",
40+
"@angular-eslint/prefer-inject": "warn",
4041
"space-before-function-paren": "off",
4142
"@angular-eslint/component-selector": [
4243
"error",

lib/content-services/src/lib/search/components/search-logical-filter/search-logical-filter.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export const LogicalSearchFields = {
3838
export type LogicalSearchFields = (typeof LogicalSearchFields)[keyof typeof LogicalSearchFields];
3939

4040
export type LogicalSearchConditionEnumValuedKeys = { [T in LogicalSearchFields]: string };
41-
// eslint-disable-next-line @typescript-eslint/no-empty-interface
41+
// eslint-disable-next-line
4242
export interface LogicalSearchCondition extends LogicalSearchConditionEnumValuedKeys {}
4343

4444
@Component({

lib/process-services-cloud/.eslintrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@
8080
"rxjs/no-subject-value": "error",
8181
"rxjs/no-unsafe-takeuntil": "error",
8282
"unicorn/filename-case": "error",
83-
"@angular-eslint/prefer-standalone": "off"
83+
"@angular-eslint/prefer-standalone": "off",
84+
"@angular-eslint/prefer-inject": "warn"
8485
}
8586
},
8687
{

lib/process-services/.eslintrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
}
5151
],
5252
"@angular-eslint/no-input-prefix": "error",
53+
"@angular-eslint/prefer-inject": "warn",
5354
"@typescript-eslint/consistent-type-definitions": "error",
5455
"@typescript-eslint/dot-notation": "off",
5556
"@typescript-eslint/explicit-member-accessibility": [

0 commit comments

Comments
 (0)