This repository was archived by the owner on Jan 19, 2019. It is now read-only.
This repository was archived by the owner on Jan 19, 2019. It is now read-only.
Parser cannot parse inside decoration syntax #55
Closed
Description
import {NgModule} from '@angular/core';
import {BrowserModule} from '@angular/platform-browser';
import {AppComponent} from './app.component';
@NgModule({
imports: [
BrowserModule
],
declarations: [
AppComponent
],
bootstrap: [AppComponent]
})
export class AppModule {}
1:9 warning 'NgModule' is defined but never used no-unused-vars
2:9 warning 'BrowserModule' is defined but never used no-unused-vars
3:9 warning 'AppComponent' is defined but never used no-unused-vars
I'm using in Angular@2.0.0-rc.5 and TypeScript@2.0.0. typescript-eslint-parser cannot perse the decorators syntax and inside the @NgModule()
argument object. It was displayed no-unused-vars
in spite of actually it's using inside argument.