Skip to content

Commit 924b519

Browse files
committed
eslint.ignore
1 parent 3fb691a commit 924b519

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+78
-437
lines changed

.eslintignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
lib/
2+
docs/pages/usekshow.vue
3+
4+

docs/pages/usekshow.vue

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<template>
2-
32
<DocsPageTemplate apiDocs>
43
<DocsPageSection
54
title="Overview"
@@ -105,7 +104,7 @@
105104
v-model="fetchingTimeInput"
106105
type="number"
107106
:style="{ display: 'block' }"
108-
>
107+
/>
109108
</span>
110109
<span>
111110
<label :style="{ display: 'block', marginTop: '12px' }">
@@ -115,7 +114,7 @@
115114
v-model="minVisibleTimeInput"
116115
type="number"
117116
:style="{ display: 'block' }"
118-
>
117+
/>
119118
</span>
120119
<KButton
121120
:style="{ marginTop: '24px' }"
@@ -136,8 +135,8 @@
136135
Some components offer a simpler interfance to achieve the same effect when there is no
137136
need to be switching between more components. For example, see
138137
<DocsInternalLink href="/kcircularloader#prop:minVisibleTime">
139-
KCircularLoader's <code>minVisibleTime</code>
140-
</DocsInternalLink>.
138+
KCircularLoader's <code>minVisibleTime</code> </DocsInternalLink
139+
>.
141140
</li>
142141
</ul>
143142
</DocsPageSection>
@@ -163,12 +162,9 @@
163162
</p>
164163
</DocsPageSection>
165164
</DocsPageTemplate>
166-
167165
</template>
168166

169-
170167
<script>
171-
172168
import { ref } from 'vue';
173169
import useKShow from '../../lib/composables/useKShow';
174170
import PropsTable from '../common/DocsPageTemplate/jsdocs/PropsTable';
@@ -240,5 +236,4 @@
240236
};
241237
},
242238
};
243-
244239
</script>

lib/KBreadcrumbs.vue

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<template>
2-
32
<div
43
v-show="showSingleItem || crumbs.length > 1"
54
:class="{ 'breadcrumbs-collapsed': collapsedCrumbs.length }"
@@ -40,13 +39,15 @@
4039
<span
4140
class="breadcrumbs-crumb-text"
4241
dir="auto"
43-
>{{ text }}</span>
42+
>{{ text }}</span
43+
>
4444
</template>
4545
</KRouterLink>
4646
<span
4747
v-else
4848
dir="auto"
49-
>{{ crumb.text }}</span>
49+
>{{ crumb.text }}</span
50+
>
5051
</li>
5152
</ol>
5253
</div>
@@ -71,13 +72,15 @@
7172
<span
7273
class="breadcrumbs-crumb-text"
7374
:title="text"
74-
>{{ text }}</span>
75+
>{{ text }}</span
76+
>
7577
</template>
7678
</KRouterLink>
7779
<span
7880
v-else
7981
:title="crumb.text"
80-
>{{ crumb.text }}</span>
82+
>{{ crumb.text }}</span
83+
>
8184
</li>
8285

8386
<li
@@ -141,12 +144,9 @@
141144
</ol>
142145
</div>
143146
</div>
144-
145147
</template>
146148

147-
148149
<script>
149-
150150
import filter from 'lodash/filter';
151151
import startsWith from 'lodash/startsWith';
152152
import throttle from 'lodash/throttle';
@@ -307,12 +307,9 @@
307307
},
308308
},
309309
};
310-
311310
</script>
312311

313-
314312
<style lang="scss" scoped>
315-
316313
@import './styles/definitions';
317314
$crumb-max-width: 300px;
318315
@@ -403,5 +400,4 @@
403400
position: absolute;
404401
left: -1000em;
405402
}
406-
407403
</style>

lib/KCheckbox.vue

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<template>
2-
32
<div
43
class="k-checkbox-container"
54
:class="{ 'k-checkbox-disabled': disabled }"
@@ -20,7 +19,7 @@
2019
@focus="isActive = true"
2120
@blur="markInactive"
2221
@keydown="$emit('keydown', $event)"
23-
>
22+
/>
2423

2524
<KIcon
2625
v-if="indeterminate"
@@ -66,12 +65,9 @@
6665
</label>
6766
</div>
6867
</div>
69-
7068
</template>
7169

72-
7370
<script>
74-
7571
/**
7672
* Used for toggling boolean user input
7773
*/
@@ -185,12 +181,9 @@
185181
},
186182
},
187183
};
188-
189184
</script>
190185

191-
192186
<style lang="scss" scoped>
193-
194187
$checkbox-height: 24px;
195188
196189
.k-checkbox-container {
@@ -248,5 +241,4 @@
248241
font-size: 12px;
249242
line-height: normal;
250243
}
251-
252244
</style>

lib/KDateRange/KDateCalendar.vue

Lines changed: 16 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<template>
2-
32
<div class="calendar">
43
<div class="calendar-wrap">
54
<KIconButton
@@ -43,13 +42,13 @@
4342
activeMonthDay,
4443
activeMonthDate,
4544
) === 'first' ||
46-
selectionOrder(
47-
weekIndex,
48-
dayInWeekIndex,
49-
'first',
50-
activeMonthDay,
51-
activeMonthDate,
52-
) === 'second'
45+
selectionOrder(
46+
weekIndex,
47+
dayInWeekIndex,
48+
'first',
49+
activeMonthDay,
50+
activeMonthDate,
51+
) === 'second'
5352
? { backgroundColor: $themeBrand.primary.v_100 }
5453
: {},
5554
]"
@@ -88,7 +87,7 @@
8887
"
8988
:isDisabled="
9089
isDateDisabled(weekIndex, dayInWeekIndex, activeMonthDay, activeMonthDate) ||
91-
isDateDisabledLeft(weekIndex, dayInWeekIndex, activeMonthDay)
90+
isDateDisabledLeft(weekIndex, dayInWeekIndex, activeMonthDay)
9291
"
9392
:isLastDay="
9493
isLastDay(weekIndex, dayInWeekIndex, 'first', activeMonthDay, activeMonthDate)
@@ -123,13 +122,13 @@
123122
nextActiveMonthDay,
124123
nextActiveMonthDate,
125124
) === 'first' ||
126-
selectionOrder(
127-
weekIndex,
128-
dayInWeekIndex,
129-
'second',
130-
nextActiveMonthDay,
131-
nextActiveMonthDate,
132-
) === 'second'
125+
selectionOrder(
126+
weekIndex,
127+
dayInWeekIndex,
128+
'second',
129+
nextActiveMonthDay,
130+
nextActiveMonthDate,
131+
) === 'second'
133132
? { backgroundColor: $themeBrand.primary.v_100 }
134133
: {},
135134
]"
@@ -208,12 +207,9 @@
208207
</div>
209208
</div>
210209
</div>
211-
212210
</template>
213211

214-
215212
<script>
216-
217213
import { format, isAfter } from 'date-fns';
218214
import KIconButton from '../buttons-and-links/KIconButton';
219215
import KDateDay from './KDateDay';
@@ -415,7 +411,7 @@
415411
this.isValidDate(this.selectedEndDate) &&
416412
isAfter(this.selectedEndDate, this.selectedStartDate) &&
417413
format(this.selectedStartDate, 'DD/MM/YYYY') !==
418-
format(this.selectedEndDate, 'DD/MM/YYYY')
414+
format(this.selectedEndDate, 'DD/MM/YYYY')
419415
) {
420416
if (
421417
this.selectedStartDate &&
@@ -517,12 +513,9 @@
517513
},
518514
},
519515
};
520-
521516
</script>
522517

523-
524518
<style lang="css" scoped>
525-
526519
.calendar-wrap {
527520
position: relative;
528521
}
@@ -601,5 +594,4 @@
601594
border-top-right-radius: 60px;
602595
border-bottom-right-radius: 60px;
603596
}
604-
605597
</style>

lib/KDateRange/KDateDay.vue

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<template>
2-
32
<KButton
43
autocomplete="off"
54
:primary="false"
@@ -23,18 +22,17 @@
2322
<span
2423
aria-hidden="true"
2524
class="k-date-vhidden"
26-
>{{ day }}</span>
25+
>{{ day }}</span
26+
>
2727
<span
2828
:aria-hidden="isDisabled"
2929
class="k-date-vhidden"
30-
>{{ toMonthName(activeMonth) }}</span>
30+
>{{ toMonthName(activeMonth) }}</span
31+
>
3132
</KButton>
32-
3333
</template>
3434

35-
3635
<script>
37-
3836
import KButton from '../buttons-and-links/KButton';
3937
4038
export default {
@@ -77,19 +75,19 @@
7775
inRangeStyle() {
7876
return this.isInRange
7977
? {
80-
backgroundColor: this.$themeBrand.primary.v_100,
81-
':hover': {
82-
backgroundColor: this.$themePalette.grey.v_300,
83-
},
84-
}
78+
backgroundColor: this.$themeBrand.primary.v_100,
79+
':hover': {
80+
backgroundColor: this.$themePalette.grey.v_300,
81+
},
82+
}
8583
: {};
8684
},
8785
selectedStyle() {
8886
return this.isSelected
8987
? {
90-
backgroundColor: this.$themeBrand.primary.v_500,
91-
color: this.$themePalette.white + '!important',
92-
}
88+
backgroundColor: this.$themeBrand.primary.v_500,
89+
color: this.$themePalette.white + '!important',
90+
}
9391
: {};
9492
},
9593
styleOverrides() {
@@ -117,12 +115,9 @@
117115
},
118116
},
119117
};
120-
121118
</script>
122119

123-
124120
<style lang="css" scoped>
125-
126121
button:hover,
127122
button.calendar-days-selected,
128123
.calendar-days-in-range:hover {
@@ -156,5 +151,4 @@
156151
clip: rect(1px, 1px, 1px, 1px);
157152
border: 0;
158153
}
159-
160154
</style>

lib/KDateRange/KDateInput.vue

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<template>
2-
32
<div>
43
<fieldset
54
:aria-label="legendText"
@@ -30,12 +29,9 @@
3029
</span>
3130
</fieldset>
3231
</div>
33-
3432
</template>
3533

36-
3734
<script>
38-
3935
import KTextBox from '../KTextbox';
4036
4137
let uuid = 0;
@@ -116,12 +112,9 @@
116112
},
117113
},
118114
};
119-
120115
</script>
121116

122-
123117
<style lang="scss" scoped>
124-
125118
/* stylelint-disable */
126119
.date-input-fieldset {
127120
padding-bottom: 0;
@@ -162,5 +155,4 @@
162155
clip-path: inset(0 25px 0 0);
163156
}
164157
}
165-
166158
</style>

0 commit comments

Comments
 (0)