diff --git a/.eslintrc.json b/.eslintrc.json deleted file mode 100644 index 9da6cc525..000000000 --- a/.eslintrc.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "extends": ["@nextcloud/eslint-config/vue3"], - "overrides": [ - // https://github.com/mysticatea/eslint-plugin-node/issues/248#issuecomment-1052550467 - { - "files": ["**/*.vue"], - "rules": { - "n/no-missing-import": "off", - // Note: you must disable the base rule as it can report incorrect errors - "func-call-spacing": "off", - "@typescript-eslint/func-call-spacing": "error" - } - } - ] -} \ No newline at end of file diff --git a/REUSE.toml b/REUSE.toml index 76586e49e..cbdd483f6 100644 --- a/REUSE.toml +++ b/REUSE.toml @@ -6,7 +6,7 @@ SPDX-PackageSupplier = "Nextcloud " SPDX-PackageDownloadLocation = "https://github.com/nextcloud-libraries/nextcloud-dialogs" [[annotations]] -path = ["package-lock.json", "package.json", "tsconfig-typedoc.json", "tsconfig.json", "test/tsconfig.json", ".eslintrc.json"] +path = ["package-lock.json", "package.json", "tsconfig-typedoc.json", "tsconfig.json", "test/tsconfig.json"] precedence = "aggregate" SPDX-FileCopyrightText = "2019-2024 Nextcloud GmbH and Nextcloud contributors" SPDX-License-Identifier = "AGPL-3.0-or-later" diff --git a/eslint.config.js b/eslint.config.js new file mode 100644 index 000000000..93088dcab --- /dev/null +++ b/eslint.config.js @@ -0,0 +1,9 @@ +/** + * SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors + * SPDX-License-Identifier: CC0-1.0 + */ +import { recommendedLibrary } from '@nextcloud/eslint-config' + +export default [ + ...recommendedLibrary, +] diff --git a/lib/components/FilePicker/FileList.spec.ts b/lib/components/FilePicker/FileList.spec.ts index adddc4e7e..c3e4d34d9 100644 --- a/lib/components/FilePicker/FileList.spec.ts +++ b/lib/components/FilePicker/FileList.spec.ts @@ -3,12 +3,11 @@ * SPDX-License-Identifier: AGPL-3.0-or-later */ +import { File, Folder } from '@nextcloud/files' import { mount, shallowMount } from '@vue/test-utils' import { beforeAll, describe, expect, it, vi } from 'vitest' - -import FileList from './FileList.vue' -import { File, Folder } from '@nextcloud/files' import { nextTick } from 'vue' +import FileList from './FileList.vue' const axios = vi.hoisted(() => ({ get: vi.fn(() => new Promise(() => {})), diff --git a/lib/components/FilePicker/FileList.vue b/lib/components/FilePicker/FileList.vue index e4990c073..63d219d69 100644 --- a/lib/components/FilePicker/FileList.vue +++ b/lib/components/FilePicker/FileList.vue @@ -11,7 +11,8 @@ {{ t('Select entry') }} -
- @@ -60,7 +62,8 @@