Skip to content

Commit

Permalink
Update prettier to format html files (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
McNaBry authored and LimZiJia committed Sep 23, 2024
1 parent d0adc9b commit 8351481
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 20 deletions.
10 changes: 9 additions & 1 deletion frontend/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,15 @@ module.exports = tseslint.config(
extends: [
...angular.configs.templateRecommended,
...angular.configs.templateAccessibility,
eslintPluginPrettierRecommended
],
rules: {},
rules: {
'prettier/prettier': [
'error',
{
'parser': 'angular',
}
]
},
},
);
9 changes: 0 additions & 9 deletions frontend/src/app/app.component.html
Original file line number Diff line number Diff line change
@@ -1,10 +1 @@
<main class="main">
<div class="content">
<p class="mt-0">Hello, this is a paragraph!</p>
<p-button label="Click me!"/>
<label class="mt-4" for="password">I am a label.</label>
<p-password class="mt-2" id="password"/>
</div>
</main>

<router-outlet />
20 changes: 10 additions & 10 deletions frontend/src/index.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Frontend</title>
<base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
</head>
<body>
<app-root></app-root>
</body>
<head>
<meta charset="utf-8" />
<title>Frontend</title>
<base href="/" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" type="image/x-icon" href="favicon.ico" />
</head>
<body>
<app-root></app-root>
</body>
</html>

0 comments on commit 8351481

Please sign in to comment.