In my tsconfig.json file, I included these properties under compilerOptions:
"compilerOptions": {
"noUnusedLocals": true,
"noUnusedParameters": true
},
When I open my code in Visual Studio Code, I noticed that the unused variables are highlighted for deletion. However, there is one variable - 'formBuilder' - which is marked as unused but it shows me this message:
[ts] The property 'formBuilder' is declared but its value is never read.
The 'formBuilder' was declared in the constructor like this:
constructor(private formBuilder: FormBuilder){
this.form = formBuilder.group({myFormControl: new FormControl()});
}