diff --git a/.eslintrc.json b/.eslintrc.json index 84075cec0..4171215d7 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -18,6 +18,7 @@ "rules": { "prettier/prettier": "error", "@angular-eslint/component-selector": ["off"], + "no-unused-vars": [2, { "args": "none" }], "@typescript-eslint/explicit-member-accessibility": [ "off", { diff --git a/src/app/core/data-repair/data-repair.util.ts b/src/app/core/data-repair/data-repair.util.ts index aeefc1867..01abf38c3 100644 --- a/src/app/core/data-repair/data-repair.util.ts +++ b/src/app/core/data-repair/data-repair.util.ts @@ -209,7 +209,7 @@ const _removeMissingTasksFromListsOrRestoreFromArchive = ( return data; }; -const _resetEntityIdsFromObjects = ( +const _resetEntityIdsFromObjects = ( data: AppBaseDataEntityLikeStates, ): AppBaseDataEntityLikeStates => { return { diff --git a/src/app/core/migration/legacy-models.ts b/src/app/core/migration/legacy-models.ts index 27d116479..6ff16ccd1 100644 --- a/src/app/core/migration/legacy-models.ts +++ b/src/app/core/migration/legacy-models.ts @@ -64,6 +64,7 @@ export interface LegacyPersistenceBaseModel { save(state: T, isForce?: boolean): Promise; } +// eslint-disable-next-line no-unused-vars export interface LegacyPersistenceForProjectModel { appDataKey: keyof LegacyAppDataForProjects; diff --git a/src/app/core/persistence/persistence.model.ts b/src/app/core/persistence/persistence.model.ts index 867071e0b..f0fbd43ba 100644 --- a/src/app/core/persistence/persistence.model.ts +++ b/src/app/core/persistence/persistence.model.ts @@ -33,6 +33,7 @@ export interface PersistenceBaseEntityModel extends PersistenceBaseModel; } +// eslint-disable-next-line no-unused-vars export interface EntityModelHelpers { getById(projectId: string, id: string): Promise; } diff --git a/src/app/features/tasks/migrate-task-state.util.ts b/src/app/features/tasks/migrate-task-state.util.ts index 144b39cdf..f6e521a18 100644 --- a/src/app/features/tasks/migrate-task-state.util.ts +++ b/src/app/features/tasks/migrate-task-state.util.ts @@ -107,7 +107,9 @@ const _convertToWesternArabicDateKeys = (task: Task) => { const _deleteUnusedFields = (task: Task): Task => { const { // legacy + // eslint-disable-next-line no-unused-vars _isAdditionalInfoOpen, + // eslint-disable-next-line no-unused-vars _currentTab, // the rest ...cleanTask diff --git a/src/app/ui/duration/input-duration.directive.ts b/src/app/ui/duration/input-duration.directive.ts index e2dc3db13..85a3a7dd3 100644 --- a/src/app/ui/duration/input-duration.directive.ts +++ b/src/app/ui/duration/input-duration.directive.ts @@ -47,7 +47,7 @@ export const INPUT_DURATION_VALIDATORS: any = { INPUT_DURATION_VALIDATORS, ], }) -export class InputDurationDirective +export class InputDurationDirective implements ControlValueAccessor, Validator, AfterViewChecked { @Input() isAllowSeconds: boolean = false; @Input() isValidate: boolean = true; diff --git a/tsconfig.base.json b/tsconfig.base.json index ccd12d897..fcde6cd35 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -12,19 +12,12 @@ "strictNullChecks": true, "forceConsistentCasingInFileNames": true, "noImplicitReturns": true, - "noUnusedLocals": true, + "noUnusedLocals": false, "strictPropertyInitialization": true, "target": "ES2015", "resolveJsonModule": true, - "typeRoots": [ - "node_modules/@types" - ], - "types": [ - "@types/moment-duration-format" - ], - "lib": [ - "es2017", - "dom" - ] + "typeRoots": ["node_modules/@types"], + "types": ["@types/moment-duration-format"], + "lib": ["es2017", "dom"] } }