I have a variable in the constructor that is un-used, but nothing seems to notice except tsc. If I run tsc it will tell me there is an un-used variable, but there does not seem to be anything I can do to make eslint recognize the un-used variable.
I have tried all the common plugins and recommendations:
"plugin:@angular-eslint/template/process-inline-templates",
"plugin:@typescript-eslint/recommended",
"plugin:import/recommended",
"plugin:import/typescript",
"eslint:recommended"
My example component with an error is below:
import { Component } from '@angular/core';
import { ApiService } from '../services/api.service';
@Component({
selector: 'app-home',
templateUrl: './home.component.html',
})
export class HomeComponent {
constructor(private apiService: ApiService) {}
}
The apiService is the one that is un-used in this case
tsc tells me: Property 'staffScheduleSessionService2' is declared but its value is never read.ts(6138)