Skip to content

Commit 5916795

Browse files
committed
feat(tool): removed tslint, added component and directive selector to rules
1 parent 3847dce commit 5916795

File tree

5 files changed

+5
-77
lines changed

5 files changed

+5
-77
lines changed

.eslintrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
"@typescript-eslint/tslint"
2121
],
2222
"rules": {
23+
"@angular-eslint/directive-selector": ["error", { "type": "attribute", "prefix": "anms", "style": "camelCase"}],
24+
"@angular-eslint/component-selector": ["error", { "type": "element", "prefix": "anms", "style": "kebab-case"}],
2325
"@angular-eslint/component-class-suffix": "error",
2426
"@angular-eslint/directive-class-suffix": "error",
2527
"@angular-eslint/no-input-rename": "error",

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ tslint-to-eslint-config.log
4747
# System Files
4848
.DS_Store
4949
Thumbs.db
50+
.node-version
5051

5152
# debug
5253
debug.log

projects/angular-ngrx-material-starter/src/app/shared/rtl-support/rtl-support.directive.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ import { TranslateService, LangChangeEvent } from '@ngx-translate/core';
33
import { Subscription } from 'rxjs';
44

55
@Directive({
6-
selector: '[rtl]' // tslint:disable-line
6+
// eslint-disable-next-line @angular-eslint/directive-selector
7+
selector: '[rtl]'
78
})
89
export class RtlSupportDirective implements OnInit, OnDestroy {
910
private subscription: Subscription;

projects/angular-ngrx-material-starter/tslint.json

Lines changed: 0 additions & 7 deletions
This file was deleted.

tslint.json

Lines changed: 0 additions & 69 deletions
This file was deleted.

0 commit comments

Comments
 (0)