Skip to content

Commit 48684a8

Browse files
Antreesybackportbot[bot]
authored andcommitted
chore(eslint): new lines rules
- @stylistic/padded-blocks - vue/padding-line-between-blocks - manual: add lines after SPDX headers Signed-off-by: Maksim Sukharev <[email protected]>
1 parent 9343b29 commit 48684a8

31 files changed

+31
-7
lines changed

eslint.config.mjs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ export default [
2020
'@stylistic/max-statements-per-line': 'off',
2121
'@stylistic/member-delimiter-style': 'off',
2222
'@stylistic/object-curly-spacing': 'off',
23-
'@stylistic/padded-blocks': 'off',
2423
'@typescript-eslint/no-unsafe-function-type': 'off',
2524
'@typescript-eslint/no-unused-vars': 'off',
2625
'@typescript-eslint/no-use-before-define': 'off',
@@ -36,7 +35,6 @@ export default [
3635
'vue/no-boolean-default': 'off',
3736
'vue/no-required-prop-with-default': 'off',
3837
'vue/no-unused-properties': 'off',
39-
'vue/padding-line-between-blocks': 'off',
4038
},
4139
},
4240
]

src/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
SPDX-FileCopyrightText: 2023 Nextcloud Gmbh and Nextcloud contributors
33
SPDX-License-Identifier: AGPL-3.0-or-later
44
-->
5+
56
<template>
67
<div class="logreader-container">
78
<div class="logreader-container__header">
@@ -92,7 +93,6 @@ const onHandlePaste = (event: ClipboardEvent) => {
9293
const paste = event.clipboardData.getData('text')
9394
loggingStore.loadText(paste)
9495
}
95-
9696
}
9797
// Add / remove event listeners
9898
onMounted(() => window.addEventListener('paste', onHandlePaste))

src/api.spec.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
* SPDX-FileCopyrightText: 2023 Nextcloud Gmbh and Nextcloud contributors
33
* SPDX-License-Identifier: AGPL-3.0-or-later
44
*/
5+
56
import { expect, describe, it, vi, afterEach } from 'vitest'
67
import { getAppSettings, getLog, pollLog, setAppSetting } from './api'
78

@@ -76,7 +77,6 @@ describe('api', () => {
7677
})
7778

7879
it('getAppSettings with config', async () => {
79-
8080
const config = { headers: { Accept: 'application/json' } }
8181

8282
await getAppSettings(undefined, config)
@@ -95,7 +95,6 @@ describe('api', () => {
9595
})
9696

9797
it('setAppSetting with config', async () => {
98-
9998
const data = { settingsKey: 'liveLog' as const, settingsValue: true }
10099
const config = { headers: { Accept: 'application/json' } }
101100

src/components/IntersectionObserver.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
SPDX-FileCopyrightText: 2023 Nextcloud Gmbh and Nextcloud contributors
33
SPDX-License-Identifier: AGPL-3.0-or-later
44
-->
5+
56
<template>
67
<div ref="observable">
78
<!-- Allow custom content for the observer e.g. "load more" text -->

src/components/LogDetailsModal.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
SPDX-FileCopyrightText: 2023 Nextcloud Gmbh and Nextcloud contributors
33
SPDX-License-Identifier: AGPL-3.0-or-later
44
-->
5+
56
<template>
67
<NcModal :show="open"
78
size="large"

src/components/LogSearch.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
SPDX-FileCopyrightText: 2023 Nextcloud Gmbh and Nextcloud contributors
33
SPDX-License-Identifier: AGPL-3.0-or-later
44
-->
5+
56
<template>
67
<NcActions :force-menu="true"
78
:open.sync="isOpen"

src/components/exception/LogException.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
SPDX-FileCopyrightText: 2023 Nextcloud Gmbh and Nextcloud contributors
33
SPDX-License-Identifier: AGPL-3.0-or-later
44
-->
5+
56
<template>
67
<span class="exception_wrapper">
78
<div class="exception">
@@ -14,6 +15,7 @@
1415
<LogException v-if="props.isExpanded && props.exception.Previous" :is-previous="true" :exception="props.exception.Previous" />
1516
</span>
1617
</template>
18+
1719
<script setup lang="ts">
1820
import type { IException } from '../../interfaces'
1921

src/components/exception/StackTrace.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
SPDX-FileCopyrightText: 2023 Nextcloud Gmbh and Nextcloud contributors
33
SPDX-License-Identifier: AGPL-3.0-or-later
44
-->
5+
56
<template>
67
<ol class="stack-trace">
78
<TraceLine v-for="line, idx in props.trace" :key="idx" :line="line" />

src/components/exception/TraceLine.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
SPDX-FileCopyrightText: 2023 Nextcloud Gmbh and Nextcloud contributors
33
SPDX-License-Identifier: AGPL-3.0-or-later
44
-->
5+
56
<template>
67
<li>
78
<div class="trace__position">

src/components/settings/AppSettingsDialog.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
SPDX-FileCopyrightText: 2023 Nextcloud Gmbh and Nextcloud contributors
33
SPDX-License-Identifier: AGPL-3.0-or-later
44
-->
5+
56
<template>
67
<NcAppSettingsDialog :open="props.open"
78
:show-navigation="true"

0 commit comments

Comments
 (0)