I have a variable in the constructor that is not being used, and only tsc seems to pick up on it. Even though I have tried various plugins and recommendations to get eslint to recognize the unused variable, it still doesn't work.
I have experimented with a number of common plugins and recommendations:
"plugin:@angular-eslint/template/process-inline-templates",
"plugin:@typescript-eslint/recommended",
"plugin:import/recommended",
"plugin:import/typescript",
"eslint:recommended"
Here is a snippet of code from my component with the error:
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) {}
}
In this case, the apiService variable is not being used. tsc prompts me with:
Property 'staffScheduleSessionService2' is declared but its value is never read.ts(6138)