Skip to content

Commit aadff57

Browse files
committed
chore: update ESLint configuration to include @angular-eslint/prefer-inject rule
- Added the @angular-eslint/prefer-inject rule to .eslintrc.json files in extensions, insights, and js-api, promoting the use of the inject() function for dependency injection. - Removed unnecessary eslint-disable comments in process-list-cloud.component.ts and base-task-list-cloud.component.ts for cleaner code.
1 parent b8da3c8 commit aadff57

File tree

5 files changed

+5
-6
lines changed

5 files changed

+5
-6
lines changed

lib/extensions/.eslintrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@
6262
"rxjs/no-subject-value": "error",
6363
"rxjs/no-unsafe-takeuntil": "error",
6464
"unicorn/filename-case": "error",
65-
"@angular-eslint/prefer-standalone": "off"
65+
"@angular-eslint/prefer-standalone": "off",
66+
"@angular-eslint/prefer-inject": "warn"
6667
}
6768
},
6869
{

lib/insights/.eslintrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@
6565
"rxjs/no-subject-value": "error",
6666
"rxjs/no-unsafe-takeuntil": "error",
6767
"unicorn/filename-case": "error",
68-
"@angular-eslint/prefer-standalone": "off"
68+
"@angular-eslint/prefer-standalone": "off",
69+
"@angular-eslint/prefer-inject": "warn"
6970
}
7071
},
7172
{

lib/js-api/.eslintrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
"no-redeclare": "off",
5050
"space-before-function-paren": "off",
5151
"@typescript-eslint/no-empty-interface": "warn",
52+
"@angular-eslint/prefer-inject": "warn",
5253
"@typescript-eslint/no-explicit-any": "off"
5354
}
5455
}

lib/process-services-cloud/src/lib/process/process-list/components/process-list-cloud.component.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,6 @@ import { ProcessInstanceCloud } from '../../start-process/models/process-instanc
7171

7272
const PRESET_KEY = 'adf-cloud-process-list.presets';
7373

74-
/* eslint-disable @typescript-eslint/brace-style */
75-
7674
@Component({
7775
selector: 'adf-cloud-process-list',
7876
imports: [

lib/process-services-cloud/src/lib/task/task-list/components/base-task-list-cloud.component.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,6 @@ const taskPresetsCloudDefaultModel = {
8787
]
8888
};
8989

90-
/* eslint-disable @typescript-eslint/brace-style */
91-
9290
@Directive()
9391
// eslint-disable-next-line @angular-eslint/directive-class-suffix
9492
export abstract class BaseTaskListCloudComponent<T = unknown>

0 commit comments

Comments
 (0)