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

php - trouble displaying mysqli database results in correct order -

depending on nth recurrence of job in control M -

sql server - Cannot query correctly (MSSQL - PHP - JSON) -