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
Post a Comment