codelyzer

How to disable tslint rule for Angular style guide: “The selector should be prefixed by <prefix>”?

本小妞迷上赌 提交于 2020-01-07 09:25:28
问题 I have an Angular test for some component which uses the directive ngb-pagination from ng-bootstrap. Now, in my test I mock this component as follow: // on next line I get: The selector should be prefixed by "<prefix>" (https://angular.io/guide/styleguide#style-02-07) (component-selector) @Component({ template: ``, selector: 'ngb-pagination' }) class DummyNgPagination { // some data here, not relevant in to the question } In the line where it is placed the @Component annotation I get a tslint