Skip to content

Commit

Permalink
chore(deps): update dependency @kong/eslint-config-kong-ui to ^1.1.6 (#…
Browse files Browse the repository at this point in the history
…2549)

* chore(deps): update dependency @kong/eslint-config-kong-ui to ^1.1.6

* fix: lint

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Adam DeHaven <[email protected]>
  • Loading branch information
renovate[bot] and adamdehaven authored Jan 7, 2025
1 parent b492aee commit 1a92ec1
Show file tree
Hide file tree
Showing 16 changed files with 245 additions and 296 deletions.
2 changes: 1 addition & 1 deletion .stylelintrc.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default {
'order/properties-order': [
['all'],
{ 'unspecified': 'bottomAlphabetical' },
],
],
'@kong/design-tokens/use-proper-token': true,
'@stylistic/indentation': [2, { baseIndentLevel: 0 }],
// Only allow @kong/design-tokens or `--kong-ui-*` CSS custom properties
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
"@evilmartians/lefthook": "^1.8.1",
"@kong-ui-public/sandbox-layout": "^2.1.59",
"@kong/design-tokens": "^1.17.2",
"@kong/eslint-config-kong-ui": "^1.1.2",
"@kong/eslint-config-kong-ui": "^1.1.6",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@stylistic/stylelint-plugin": "^3.1.1",
Expand Down
485 changes: 217 additions & 268 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion postcss.config.cjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

// eslint-disable-next-line @typescript-eslint/no-require-imports
const autoprefixer = require('autoprefixer')

module.exports = () => ({
Expand Down
6 changes: 3 additions & 3 deletions src/components/KCheckbox/KCheckbox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ const props = defineProps({
})
const emit = defineEmits<{
(e: 'change', value: boolean): void;
(e: 'input', value: boolean): void;
(e: 'update:modelValue', value: boolean): void;
(e: 'change', value: boolean): void
(e: 'input', value: boolean): void
(e: 'update:modelValue', value: boolean): void
}>()
const slots = useSlots()
Expand Down
4 changes: 2 additions & 2 deletions src/components/KCollapse/KCollapse.vue
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ const props = defineProps({
})
const emit = defineEmits<{
(e: 'toggle', value: boolean): void;
(e: 'update:modelValue', value: boolean): void;
(e: 'toggle', value: boolean): void
(e: 'update:modelValue', value: boolean): void
}>()
const contentId = useId()
Expand Down
4 changes: 2 additions & 2 deletions src/components/KDropdown/KDropdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ const props = defineProps({
})
const emit = defineEmits<{
(e: 'toggleDropdown', value: boolean): void;
(e: 'change', value: DropdownItem): void;
(e: 'toggleDropdown', value: boolean): void
(e: 'change', value: DropdownItem): void
}>()
const tooltipComponent = computed(() => props.disabledTooltip ? KTooltip : 'div')
Expand Down
4 changes: 2 additions & 2 deletions src/components/KDropdown/KDropdownItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ const props = defineProps({
})
const emit = defineEmits<{
(e: 'click', val: Event): void;
(e: 'change', item: DropdownItem): void;
(e: 'click', val: Event): void
(e: 'change', item: DropdownItem): void
}>()
const type = computed((): DropdownItemType => {
Expand Down
6 changes: 3 additions & 3 deletions src/components/KMultiselect/KMultiselectItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ const props = defineProps({
})
const emit = defineEmits<{
(e: 'selected', value: MultiselectItem): void;
(e: 'arrow-down'): void;
(e: 'arrow-up'): void;
(e: 'selected', value: MultiselectItem): void
(e: 'arrow-down'): void
(e: 'arrow-up'): void
}>()
const handleClick = (): void => {
Expand Down
4 changes: 2 additions & 2 deletions src/components/KSegmentedControl/KSegmentedControl.vue
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ const props = defineProps({
})
const emit = defineEmits<{
(e: 'click', event: string): void;
(e: 'update:modelValue', event: string): void;
(e: 'click', event: string): void
(e: 'update:modelValue', event: string): void
}>()
const normalizedOptions = ref(normalizeItems(props.options))
Expand Down
6 changes: 3 additions & 3 deletions src/components/KSelect/KSelectItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ const props = defineProps({
})
const emit = defineEmits<{
(e: 'selected', value: SelectItem): void;
(e: 'arrow-down'): void;
(e: 'arrow-up'): void;
(e: 'selected', value: SelectItem): void
(e: 'arrow-down'): void
(e: 'arrow-up'): void
}>()
const handleClick = (e: MouseEvent): void => {
Expand Down
2 changes: 1 addition & 1 deletion src/components/KToggle/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default defineComponent({
isToggled,
toggle,
})
} catch (_) {
} catch {
console.error(`KToggle expects to have slot content.
Example usage:
Expand Down
4 changes: 2 additions & 2 deletions src/components/KTreeList/KTreeDraggable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ const props = defineProps({
})
const emit = defineEmits<{
(event: 'change', data: TreeListChangeEvent): void,
(event: 'child-change', data: TreeListChildChangeEvent): void,
(event: 'change', data: TreeListChangeEvent): void
(event: 'child-change', data: TreeListChildChangeEvent): void
(event: 'selected', item: TreeListItem): void
}>()
Expand Down
4 changes: 2 additions & 2 deletions src/components/KTreeList/KTreeList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ const props = defineProps({
})
const emit = defineEmits<{
(event: 'change', data: TreeListChangeEvent): void,
(event: 'child-change', data: TreeListChildChangeEvent): void,
(event: 'change', data: TreeListChangeEvent): void
(event: 'child-change', data: TreeListChildChangeEvent): void
(event: 'selected', item: TreeListItem): void
}>()
Expand Down
4 changes: 2 additions & 2 deletions src/types/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ interface TablePropsShared {
/**
* Provide the name of the data property key to utilize as a unique identifier, or a function that receives the `row` object as a parameter that generates a unique identifier string for each row.
*/
rowKey?: string | ((row: Record<string, any>) => string),
rowKey?: string | ((row: Record<string, any>) => string)
/**
* A function that conditionally specifies cell attributes
*/
Expand Down Expand Up @@ -196,7 +196,7 @@ interface TablePropsShared {
* A prop to pass in a custom error state action message
*/
errorStateActionMessage?: string
maxHeight?: string,
maxHeight?: string
hidePagination?: boolean
paginationAttributes?: TablePaginationAttributes
/**
Expand Down
2 changes: 1 addition & 1 deletion src/vue.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare module '*.vue' {
import type { DefineComponent } from 'vue'
// eslint-disable-next-line @typescript-eslint/ban-types
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
const component: DefineComponent<{}, {}, any>
export default component
}

0 comments on commit 1a92ec1

Please sign in to comment.