javascript - ESLint - Angular2 Anotations -


i use eslint , gulp-eslint. there way activate linter rules angular2 anotations?

@component( {   selector: 'example',   styleurls: ['app.css'],   templateurl: 'app.html', //linter should warn cause semicolon }) //linter should warn in case of blank line between componente , class  export class app {  }  

you use eslint-plugin-angular angular-specific rules eslint. there, if want specific rules don't yet exist, see adding them plugin.

plugins:     - angular  rules:     # whichever rules  globals:     angular: true  settings:     angular: 2 

Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -