Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 662ebfc

Browse files
committed
style(angular-eslint): prefer-self-closing-tags
1 parent bbc640b commit 662ebfc

File tree

8 files changed

+327
-564
lines changed

8 files changed

+327
-564
lines changed

β€Ž.eslintrc.jsonβ€Ž

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@
6969
{
7070
"files": ["*.html"],
7171
"extends": ["plugin:@angular-eslint/template/recommended"],
72-
"rules": {}
72+
"rules": {
73+
"@angular-eslint/template/prefer-self-closing-tags": "warn"
74+
}
7375
},
7476
{
7577
"files": ["*.js"],

β€Ž.gitignoreβ€Ž

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,6 @@ testem.log
4040
# System files
4141
.DS_Store
4242
Thumbs.db
43+
44+
.nx/cache
45+
.nx/workspace-data

β€Žangular.jsonβ€Ž

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,15 @@
120120
],
121121
"scripts": []
122122
}
123+
},
124+
"lint": {
125+
"builder": "@angular-eslint/builder:lint",
126+
"options": {
127+
"lintFilePatterns": [
128+
"projects/dev-app/src/**/*.ts",
129+
"projects/dev-app/src/**/*.html"
130+
]
131+
}
123132
}
124133
}
125134
}

β€Žpackage.jsonβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"@types/node": "^20.12.0",
6161
"@typescript-eslint/eslint-plugin": "^7.8.0",
6262
"@typescript-eslint/parser": "^7.8.0",
63-
"angular-cli-ghpages": "^2.0.0-beta.2",
63+
"angular-cli-ghpages": "^2.0.0",
6464
"eslint": "^8.57.0",
6565
"husky": "^8.0.3",
6666
"jasmine-core": "~5.1.0",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<router-outlet></router-outlet>
1+
<router-outlet />

β€Žprojects/dev-app/src/app/layout/layout.component.htmlβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
c0.2-1.7,0.9-2.8,1.6-3.4c-5.7-0.6-11.7-2.8-11.7-12.7c0-2.8,1-5.1,2.6-6.9c-0.3-0.7-1.1-3.3,0.3-6.8c0,0,2.1-0.7,7,2.6
99
c2-0.6,4.2-0.9,6.4-0.9c2.2,0,4.4,0.3,6.4,0.9c4.9-3.3,7-2.6,7-2.6c1.4,3.5,0.5,6.1,0.3,6.8c1.6,1.8,2.6,4.1,2.6,6.9
1010
c0,9.8-6,12-11.7,12.6c0.9,0.8,1.7,2.4,1.7,4.7c0,3.4,0,6.2,0,7c0,0.7,0.5,1.5,1.8,1.2c10.2-3.4,17.5-13,17.5-24.3
11-
C51.5,11.7,40.1,0.2,25.9,0.2z"></path>
11+
C51.5,11.7,40.1,0.2,25.9,0.2z" />
1212
</svg>
1313
</a>
1414
</mat-toolbar>
1515

16-
<router-outlet></router-outlet>
16+
<router-outlet />

β€Žprojects/dev-app/src/index.htmlβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
</head>
1111

1212
<body>
13-
<app-root></app-root>
13+
<app-root />
1414
</body>
1515

1616
</html>

β€Žyarn.lockβ€Ž

Lines changed: 307 additions & 558 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
Β (0)