Skip to content

Commit

Permalink
feat(tool): removed tslint, added component and directive selector to…
Browse files Browse the repository at this point in the history
… rules
  • Loading branch information
Siddharth Shrma committed Nov 4, 2020
1 parent 274410e commit 02205c7
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 77 deletions.
2 changes: 2 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
"@typescript-eslint/tslint"
],
"rules": {
"@angular-eslint/directive-selector": ["error", { "type": "attribute", "prefix": "anms", "style": "camelCase"}],
"@angular-eslint/component-selector": ["error", { "type": "element", "prefix": "anms", "style": "kebab-case"}],
"@angular-eslint/component-class-suffix": "error",
"@angular-eslint/directive-class-suffix": "error",
"@angular-eslint/no-input-rename": "error",
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ tslint-to-eslint-config.log
# System Files
.DS_Store
Thumbs.db
.node-version

# debug
debug.log
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import { TranslateService, LangChangeEvent } from '@ngx-translate/core';
import { Subscription } from 'rxjs';

@Directive({
selector: '[rtl]' // tslint:disable-line
// eslint-disable-next-line @angular-eslint/directive-selector
selector: '[rtl]'
})
export class RtlSupportDirective implements OnInit, OnDestroy {
private subscription: Subscription;
Expand Down
7 changes: 0 additions & 7 deletions projects/angular-ngrx-material-starter/tslint.json

This file was deleted.

69 changes: 0 additions & 69 deletions tslint.json

This file was deleted.

0 comments on commit 02205c7

Please sign in to comment.