Skip to content

Commit 2f37040

Browse files
committed
ESLint: enforce html indentation
1 parent 89e41fb commit 2f37040

File tree

10 files changed

+78
-71
lines changed

10 files changed

+78
-71
lines changed

.eslintrc.cjs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,13 @@ module.exports = {
4646
'error',
4747
commaDangle,
4848
],
49+
'vue/html-indent': [
50+
'error',
51+
2,
52+
{
53+
alignAttributesVertically: false,
54+
},
55+
],
4956
'no-console': [
5057
'error',
5158
{

src/components/cylc/Drawer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
6060
<v-tooltip
6161
activator="#version-chip"
6262
location="top"
63-
>
63+
>
6464
<div
6565
class="d-flex flex-column align-center"
6666
style="pointer-events: visible;"

src/components/cylc/GraphSubgraph.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
3131
stroke-width="8px"
3232
stroke="grey"
3333
stroke-dasharray="50 50"
34-
/>
34+
/>
3535
<text
3636
:x="labelXPosition"
3737
:y="labelYPosition"

src/components/cylc/Mutation.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
2222
<v-card>
2323
<!-- the mutation title -->
2424
<v-card-title class="py-3">
25-
{{ mutation._title }}
25+
{{ mutation._title }}
2626
</v-card-title>
2727
<v-card-text class="card-text py-0 px-4">
2828
<!-- the mutation description -->

src/components/cylc/analysis/TimeSeries.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
7171
:height="450"
7272
width="95%"
7373
class="d-flex justify-center"
74-
/>
74+
/>
7575
</div>
7676
<div id="miniTimeSeries">
7777
<VueApexCharts
@@ -84,7 +84,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
8484
class="d-flex justify-center"
8585
/>
8686
</div>
87-
</template>
87+
</template>
8888

8989
<script>
9090
import VueApexCharts from 'vue3-apexcharts'

src/components/cylc/tree/TreeItem.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
5454
v-if="node.familyTree?.length"
5555
:key="node.id"
5656
:task="node.familyTree[0].node"
57-
/>
57+
/>
5858
<span class="mx-1">{{ node.name }}</span>
5959
</template>
6060
<template v-else-if="node.type === 'family'">

src/components/graphqlFormGenerator/FormGenerator.vue

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -26,29 +26,29 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
2626
v-for="input in inputs"
2727
v-bind:key="input.label"
2828
>
29-
<v-list-item-title class="d-flex align-center mb-2">
30-
<!-- input label - the display title for this input -->
31-
{{ upperFirst(lowerCase(input.label)) }}
32-
<!-- help button - tooltip for more information -->
33-
<v-tooltip
34-
v-if="input.description"
35-
:activator="null"
36-
>
37-
<template v-slot:activator="{ props }">
38-
<v-icon v-bind="props" class="mx-2">
39-
{{ $options.icons.mdiHelpCircleOutline }}
40-
</v-icon>
41-
</template>
42-
<Markdown
43-
:markdown="input.description"
44-
/>
45-
</v-tooltip>
46-
</v-list-item-title>
47-
<FormInput
48-
v-model="model[input.label]"
49-
:gqlType="input.gqlType"
50-
:types="types"
51-
/>
29+
<v-list-item-title class="d-flex align-center mb-2">
30+
<!-- input label - the display title for this input -->
31+
{{ upperFirst(lowerCase(input.label)) }}
32+
<!-- help button - tooltip for more information -->
33+
<v-tooltip
34+
v-if="input.description"
35+
:activator="null"
36+
>
37+
<template v-slot:activator="{ props }">
38+
<v-icon v-bind="props" class="mx-2">
39+
{{ $options.icons.mdiHelpCircleOutline }}
40+
</v-icon>
41+
</template>
42+
<Markdown
43+
:markdown="input.description"
44+
/>
45+
</v-tooltip>
46+
</v-list-item-title>
47+
<FormInput
48+
v-model="model[input.label]"
49+
:gqlType="input.gqlType"
50+
:types="types"
51+
/>
5252
</v-list-item>
5353
</v-list>
5454
</v-form>

src/components/graphqlFormGenerator/components/Object.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
1919
<v-input>
2020
<template>
2121
<FormInput
22-
v-for="input in inputs"
23-
v-bind:key="input.label"
24-
v-model="model[input.label]"
25-
:gqlType="input.gqlType"
26-
:types="types"
22+
v-for="input in inputs"
23+
v-bind:key="input.label"
24+
v-model="model[input.label]"
25+
:gqlType="input.gqlType"
26+
:types="types"
2727
/>
2828
</template>
2929
<template v-slot:append>

src/views/Dashboard.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
160160
<v-icon size="1.6em">{{ $options.icons.mdiGraphql }}</v-icon>
161161
</template>
162162
<v-list-item-title class="text-h6 font-weight-light">
163-
GraphiQL
163+
GraphiQL
164164
</v-list-item-title>
165165
<v-list-item-subtitle>
166166
Explore the Cylc GraphQL API

src/views/Guide.vue

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -47,35 +47,35 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
4747
One task can have multiple jobs, by automatic retry or manual
4848
triggering.
4949
</p>
50-
</v-card-text>
51-
<table id="task-job-state-table">
52-
<tr>
53-
<td>Task</td>
54-
<td></td>
55-
<td>Job</td>
56-
</tr>
57-
<tr
58-
v-bind:key="state.name.name"
59-
v-for="state of states"
60-
>
61-
<td style="font-size: 2em;">
62-
<!-- set times to make the progress change -->
63-
<task
64-
:task="{
65-
state: state.name,
66-
task: {meanElapsedTime: 30},
67-
}"
68-
:startTime="String(Date.now())"
69-
/>
70-
</td>
71-
<td>
72-
<span>{{ state.name }}</span>
73-
</td>
74-
<td style="font-size: 2em;">
75-
<job :status="state.name" />
76-
</td>
77-
</tr>
78-
</table>
50+
</v-card-text>
51+
<table id="task-job-state-table">
52+
<tr>
53+
<td>Task</td>
54+
<td></td>
55+
<td>Job</td>
56+
</tr>
57+
<tr
58+
v-bind:key="state.name.name"
59+
v-for="state of states"
60+
>
61+
<td style="font-size: 2em;">
62+
<!-- set times to make the progress change -->
63+
<task
64+
:task="{
65+
state: state.name,
66+
task: {meanElapsedTime: 30},
67+
}"
68+
:startTime="String(Date.now())"
69+
/>
70+
</td>
71+
<td>
72+
<span>{{ state.name }}</span>
73+
</td>
74+
<td style="font-size: 2em;">
75+
<job :status="state.name" />
76+
</td>
77+
</tr>
78+
</table>
7979
<v-card-text>
8080
<p>
8181
A <b>waiting task</b> with <b>failed jobs</b> will
@@ -97,7 +97,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
9797
<p>
9898
Why has my task not started to run yet?
9999
</p>
100-
<v-list
100+
<v-list
101101
lines="three"
102102
>
103103
<v-list-item>
@@ -167,14 +167,14 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
167167
</v-list-item>
168168
</v-list>
169169
<p>
170-
<em>Note: tasks downstream of queued (or runahead limited) tasks
171-
are not themselves shown as queued (or runahead limited)
172-
because they are not otherwise ready to run yet.</em>
173-
</p>
170+
<em>Note: tasks downstream of queued (or runahead limited) tasks
171+
are not themselves shown as queued (or runahead limited)
172+
because they are not otherwise ready to run yet.</em>
173+
</p>
174174
<p>
175175
<em>Note: external triggers (e.g. clock triggers) are not yet
176-
exposed in the UI.</em>
177-
</p>
176+
exposed in the UI.</em>
177+
</p>
178178
</v-card-text>
179179
</v-card>
180180
</v-col>

0 commit comments

Comments
 (0)