Skip to content

Commit

Permalink
Merge pull request #36532 from nextcloud/dependabot/npm_and_yarn/next…
Browse files Browse the repository at this point in the history
…cloud/eslint-config-8.2.1

bump @nextcloud/eslint-config from 8.0.0 to 8.2.1
  • Loading branch information
skjnldsv authored Mar 23, 2023
2 parents 4521c79 + 91eb420 commit 55ba960
Show file tree
Hide file tree
Showing 264 changed files with 2,021 additions and 1,352 deletions.
2 changes: 1 addition & 1 deletion apps/comments/src/comments-app.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*
*/

import CommentsInstance from './services/CommentsInstance'
import CommentsInstance from './services/CommentsInstance.js'

// Init Comments
if (window.OCA && !window.OCA.Comments) {
Expand Down
2 changes: 1 addition & 1 deletion apps/comments/src/comments-tab.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*
*/

// eslint-disable-next-line node/no-missing-import, import/no-unresolved
// eslint-disable-next-line n/no-missing-import, import/no-unresolved
import MessageReplyText from '@mdi/svg/svg/message-reply-text.svg?raw'

// Init Comments tab component
Expand Down
8 changes: 4 additions & 4 deletions apps/comments/src/comments.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
*
*/

import './app'
import './templates'
import './filesplugin'
import './activitytabviewplugin'
import './app.js'
import './templates.js'
import './filesplugin.js'
import './activitytabviewplugin.js'

window.OCA.Comments = OCA.Comments
22 changes: 11 additions & 11 deletions apps/comments/src/components/Comment.vue
Original file line number Diff line number Diff line change
Expand Up @@ -104,17 +104,17 @@
import { getCurrentUser } from '@nextcloud/auth'
import moment from '@nextcloud/moment'

import NcActionButton from '@nextcloud/vue/dist/Components/NcActionButton'
import NcActions from '@nextcloud/vue/dist/Components/NcActions'
import NcActionSeparator from '@nextcloud/vue/dist/Components/NcActionSeparator'
import NcAvatar from '@nextcloud/vue/dist/Components/NcAvatar'
import NcButton from '@nextcloud/vue/dist/Components/NcButton'
import NcRichContenteditable from '@nextcloud/vue/dist/Components/NcRichContenteditable'
import RichEditorMixin from '@nextcloud/vue/dist/Mixins/richEditor'
import ArrowRight from 'vue-material-design-icons/ArrowRight'

import Moment from './Moment'
import CommentMixin from '../mixins/CommentMixin'
import NcActionButton from '@nextcloud/vue/dist/Components/NcActionButton.js'
import NcActions from '@nextcloud/vue/dist/Components/NcActions.js'
import NcActionSeparator from '@nextcloud/vue/dist/Components/NcActionSeparator.js'
import NcAvatar from '@nextcloud/vue/dist/Components/NcAvatar.js'
import NcButton from '@nextcloud/vue/dist/Components/NcButton.js'
import NcRichContenteditable from '@nextcloud/vue/dist/Components/NcRichContenteditable.js'
import RichEditorMixin from '@nextcloud/vue/dist/Mixins/richEditor.js'
import ArrowRight from 'vue-material-design-icons/ArrowRight.vue'

import Moment from './Moment.vue'
import CommentMixin from '../mixins/CommentMixin.js'

export default {
name: 'Comment',
Expand Down
6 changes: 3 additions & 3 deletions apps/comments/src/mixins/CommentMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
*
*/

import NewComment from '../services/NewComment'
import DeleteComment from '../services/DeleteComment'
import EditComment from '../services/EditComment'
import NewComment from '../services/NewComment.js'
import DeleteComment from '../services/DeleteComment.js'
import EditComment from '../services/EditComment.js'
import { showError, showUndo, TOAST_UNDO_TIMEOUT } from '@nextcloud/dialogs'

export default {
Expand Down
2 changes: 1 addition & 1 deletion apps/comments/src/services/CommentsInstance.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

import { getLoggerBuilder } from '@nextcloud/logger'
import { translate as t, translatePlural as n } from '@nextcloud/l10n'
import CommentsApp from '../views/Comments'
import CommentsApp from '../views/Comments.vue'
import Vue from 'vue'

const logger = getLoggerBuilder()
Expand Down
2 changes: 1 addition & 1 deletion apps/comments/src/services/DavClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import { createClient, getPatcher } from 'webdav'
import axios from '@nextcloud/axios'

import { getRootPath } from '../utils/davUtils'
import { getRootPath } from '../utils/davUtils.js'

// Add this so the server knows it is an request from the browser
axios.defaults.headers['X-Requested-With'] = 'XMLHttpRequest'
Expand Down
2 changes: 1 addition & 1 deletion apps/comments/src/services/DeleteComment.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*
*/

import client from './DavClient'
import client from './DavClient.js'

/**
* Delete a comment
Expand Down
2 changes: 1 addition & 1 deletion apps/comments/src/services/EditComment.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*
*/

import client from './DavClient'
import client from './DavClient.js'

/**
* Edit an existing comment
Expand Down
8 changes: 4 additions & 4 deletions apps/comments/src/services/GetComments.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
*
*/

import { parseXML, prepareFileFromProps } from 'webdav/dist/node/tools/dav'
import { processResponsePayload } from 'webdav/dist/node/response'
import { decodeHtmlEntities } from '../utils/decodeHtmlEntities'
import client from './DavClient'
import { parseXML, prepareFileFromProps } from 'webdav/dist/node/tools/dav.js'
import { processResponsePayload } from 'webdav/dist/node/response.js'
import { decodeHtmlEntities } from '../utils/decodeHtmlEntities.js'
import client from './DavClient.js'

export const DEFAULT_LIMIT = 20
/**
Expand Down
6 changes: 3 additions & 3 deletions apps/comments/src/services/NewComment.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
*/

import { getCurrentUser } from '@nextcloud/auth'
import { getRootPath } from '../utils/davUtils'
import { decodeHtmlEntities } from '../utils/decodeHtmlEntities'
import { getRootPath } from '../utils/davUtils.js'
import { decodeHtmlEntities } from '../utils/decodeHtmlEntities.js'
import axios from '@nextcloud/axios'
import client from './DavClient'
import client from './DavClient.js'

/**
* Retrieve the comments list
Expand Down
10 changes: 5 additions & 5 deletions apps/comments/src/views/Comments.vue
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,11 @@ import axios from '@nextcloud/axios'
import VTooltip from 'v-tooltip'
import Vue from 'vue'

import NcEmptyContent from '@nextcloud/vue/dist/Components/NcEmptyContent'
import NcButton from '@nextcloud/vue/dist/Components/NcButton'
import RefreshIcon from 'vue-material-design-icons/Refresh'
import MessageReplyTextIcon from 'vue-material-design-icons/MessageReplyText'
import AlertCircleOutlineIcon from 'vue-material-design-icons/AlertCircleOutline'
import NcEmptyContent from '@nextcloud/vue/dist/Components/NcEmptyContent.js'
import NcButton from '@nextcloud/vue/dist/Components/NcButton.js'
import RefreshIcon from 'vue-material-design-icons/Refresh.vue'
import MessageReplyTextIcon from 'vue-material-design-icons/MessageReplyText.vue'
import AlertCircleOutlineIcon from 'vue-material-design-icons/AlertCircleOutline.vue'

import Comment from '../components/Comment.vue'
import getComments, { DEFAULT_LIMIT } from '../services/GetComments.js'
Expand Down
4 changes: 2 additions & 2 deletions apps/dashboard/src/DashboardApp.vue
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ import { generateUrl } from '@nextcloud/router'
import { getCurrentUser } from '@nextcloud/auth'
import { loadState } from '@nextcloud/initial-state'
import axios from '@nextcloud/axios'
import NcButton from '@nextcloud/vue/dist/Components/NcButton'
import NcButton from '@nextcloud/vue/dist/Components/NcButton.js'
import Draggable from 'vuedraggable'
import NcModal from '@nextcloud/vue/dist/Components/NcModal'
import NcModal from '@nextcloud/vue/dist/Components/NcModal.js'
import Pencil from 'vue-material-design-icons/Pencil.vue'
import Vue from 'vue'
Expand Down
2 changes: 1 addition & 1 deletion apps/dashboard/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import Vue from 'vue'
import DashboardApp from './DashboardApp.vue'
import { translate as t } from '@nextcloud/l10n'
import VTooltip from '@nextcloud/vue/dist/Directives/Tooltip'
import VTooltip from '@nextcloud/vue/dist/Directives/Tooltip.js'
import { getRequestToken } from '@nextcloud/auth'

// eslint-disable-next-line camelcase
Expand Down
4 changes: 2 additions & 2 deletions apps/dav/src/dav/client.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/**
* @copyright 2021 Christoph Wurst <christoph@winzerhof-wurst.at>
*
* @author 2021 Christoph Wurst <christoph@winzerhof-wurst.at>
Expand All @@ -21,7 +21,7 @@

import * as webdav from 'webdav'
import axios from '@nextcloud/axios'
import memoize from 'lodash/fp/memoize'
import memoize from 'lodash/fp/memoize.js'
import { generateRemoteUrl } from '@nextcloud/router'
import { getCurrentUser } from '@nextcloud/auth'

Expand Down
6 changes: 3 additions & 3 deletions apps/dav/src/service/CalendarService.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import { getClient } from '../dav/client'
import logger from './logger'
import { parseXML } from 'webdav/dist/node/tools/dav'
import { getClient } from '../dav/client.js'
import logger from './logger.js'
import { parseXML } from 'webdav/dist/node/tools/dav.js'

import {
slotsToVavailability,
Expand Down
2 changes: 1 addition & 1 deletion apps/dav/src/settings-personal-availability.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Vue from 'vue'
import { translate } from '@nextcloud/l10n'
import Availability from './views/Availability'
import Availability from './views/Availability.vue'

Vue.prototype.$t = translate

Expand Down
2 changes: 1 addition & 1 deletion apps/dav/src/settings.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Vue from 'vue'
import { loadState } from '@nextcloud/initial-state'
import { translate } from '@nextcloud/l10n'
import CalDavSettings from './views/CalDavSettings'
import CalDavSettings from './views/CalDavSettings.vue'

Vue.prototype.$t = translate

Expand Down
12 changes: 6 additions & 6 deletions apps/dav/src/views/Availability.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,15 @@ import {
findScheduleInboxAvailability,
getEmptySlots,
saveScheduleInboxAvailability,
} from '../service/CalendarService'
} from '../service/CalendarService.js'
import {
enableUserStatusAutomation,
disableUserStatusAutomation,
} from '../service/PreferenceService'
import NcButton from '@nextcloud/vue/dist/Components/NcButton'
import NcCheckboxRadioSwitch from '@nextcloud/vue/dist/Components/NcCheckboxRadioSwitch'
import NcSettingsSection from '@nextcloud/vue/dist/Components/NcSettingsSection'
import NcTimezonePicker from '@nextcloud/vue/dist/Components/NcTimezonePicker'
} from '../service/PreferenceService.js'
import NcButton from '@nextcloud/vue/dist/Components/NcButton.js'
import NcCheckboxRadioSwitch from '@nextcloud/vue/dist/Components/NcCheckboxRadioSwitch.js'
import NcSettingsSection from '@nextcloud/vue/dist/Components/NcSettingsSection.js'
import NcTimezonePicker from '@nextcloud/vue/dist/Components/NcTimezonePicker.js'
export default {
name: 'Availability',
Expand Down
2 changes: 1 addition & 1 deletion apps/dav/src/views/CalDavSettings.spec.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { render } from '@testing-library/vue'
import CalDavSettings from './CalDavSettings'
import CalDavSettings from './CalDavSettings.vue'
// eslint-disable-next-line no-unused-vars
import { generateUrl } from '@nextcloud/router'

Expand Down
4 changes: 2 additions & 2 deletions apps/dav/src/views/CalDavSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@
import axios from '@nextcloud/axios'
import { generateUrl } from '@nextcloud/router'
import { loadState } from '@nextcloud/initial-state'
import NcSettingsSection from '@nextcloud/vue/dist/Components/NcSettingsSection'
import NcCheckboxRadioSwitch from '@nextcloud/vue/dist/Components/NcCheckboxRadioSwitch'
import NcSettingsSection from '@nextcloud/vue/dist/Components/NcSettingsSection.js'
import NcCheckboxRadioSwitch from '@nextcloud/vue/dist/Components/NcCheckboxRadioSwitch.js'
const userSyncCalendarsDocUrl = loadState('dav', 'userSyncCalendarsDocUrl', '#')
Expand Down
4 changes: 2 additions & 2 deletions apps/federatedfilesharing/src/components/AdminSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@
</template>

<script>
import NcCheckboxRadioSwitch from '@nextcloud/vue/dist/Components/NcCheckboxRadioSwitch'
import NcSettingsSection from '@nextcloud/vue/dist/Components/NcSettingsSection'
import NcCheckboxRadioSwitch from '@nextcloud/vue/dist/Components/NcCheckboxRadioSwitch.js'
import NcSettingsSection from '@nextcloud/vue/dist/Components/NcSettingsSection.js'
import { loadState } from '@nextcloud/initial-state'
import { showError } from '@nextcloud/dialogs'
import axios from '@nextcloud/axios'
Expand Down
12 changes: 6 additions & 6 deletions apps/federatedfilesharing/src/components/PersonalSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<script>
import { showError, showSuccess } from '@nextcloud/dialogs'
import { loadState } from '@nextcloud/initial-state'
import NcSettingsSection from '@nextcloud/vue/dist/Components/NcSettingsSection'
import NcButton from '@nextcloud/vue/dist/Components/NcButton'
import Twitter from 'vue-material-design-icons/Twitter'
import Facebook from 'vue-material-design-icons/Facebook'
import Web from 'vue-material-design-icons/Web'
import Clipboard from 'vue-material-design-icons/Clipboard'
import NcSettingsSection from '@nextcloud/vue/dist/Components/NcSettingsSection.js'
import NcButton from '@nextcloud/vue/dist/Components/NcButton.js'
import Twitter from 'vue-material-design-icons/Twitter.vue'
import Facebook from 'vue-material-design-icons/Facebook.vue'
import Web from 'vue-material-design-icons/Web.vue'
import Clipboard from 'vue-material-design-icons/Clipboard.vue'

export default {
name: 'PersonalSettings',
Expand Down
2 changes: 1 addition & 1 deletion apps/federatedfilesharing/src/main-admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import { translate as t } from '@nextcloud/l10n'
import '@nextcloud/dialogs/dist/index.css'
import { loadState } from '@nextcloud/initial-state'

import AdminSettings from './components/AdminSettings'
import AdminSettings from './components/AdminSettings.vue'

__webpack_nonce__ = btoa(getRequestToken())

Expand Down
2 changes: 1 addition & 1 deletion apps/federatedfilesharing/src/main-personal.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import { getRequestToken } from '@nextcloud/auth'
import { translate as t } from '@nextcloud/l10n'
import '@nextcloud/dialogs/dist/index.css'

import PersonalSettings from './components/PersonalSettings'
import PersonalSettings from './components/PersonalSettings.vue'

__webpack_nonce__ = btoa(getRequestToken())

Expand Down
2 changes: 1 addition & 1 deletion apps/files/src/components/PersonalSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
</template>

<script>
import TransferOwnershipDialogue from './TransferOwnershipDialogue'
import TransferOwnershipDialogue from './TransferOwnershipDialogue.vue'

export default {
name: 'PersonalSettings',
Expand Down
4 changes: 2 additions & 2 deletions apps/files/src/components/SidebarTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
</template>

<script>
import NcAppSidebarTab from '@nextcloud/vue/dist/Components/NcAppSidebarTab'
import NcEmptyContent from '@nextcloud/vue/dist/Components/NcEmptyContent'
import NcAppSidebarTab from '@nextcloud/vue/dist/Components/NcAppSidebarTab.js'
import NcEmptyContent from '@nextcloud/vue/dist/Components/NcEmptyContent.js'

export default {
name: 'SidebarTab',
Expand Down
4 changes: 2 additions & 2 deletions apps/files/src/components/TemplatePreview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@

<script>
import { generateUrl } from '@nextcloud/router'
import { encodeFilePath } from '../utils/fileUtils'
import { getToken, isPublic } from '../utils/davUtils'
import { encodeFilePath } from '../utils/fileUtils.js'
import { getToken, isPublic } from '../utils/davUtils.js'

// preview width generation
const previewWidth = 256
Expand Down
6 changes: 3 additions & 3 deletions apps/files/src/components/TransferOwnershipDialogue.vue
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@ import axios from '@nextcloud/axios'
import debounce from 'debounce'
import { generateOcsUrl } from '@nextcloud/router'
import { getFilePickerBuilder, showSuccess } from '@nextcloud/dialogs'
import NcMultiselect from '@nextcloud/vue/dist/Components/NcMultiselect'
import NcMultiselect from '@nextcloud/vue/dist/Components/NcMultiselect.js'
import Vue from 'vue'
import NcButton from '@nextcloud/vue/dist/Components/NcButton'
import NcButton from '@nextcloud/vue/dist/Components/NcButton.js'

import logger from '../logger'
import logger from '../logger.js'

const picker = getFilePickerBuilder(t('files', 'Choose a file or folder to transfer'))
.setMultiSelect(false)
Expand Down
2 changes: 1 addition & 1 deletion apps/files/src/main-personal-settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
import Vue from 'vue'
import { getRequestToken } from '@nextcloud/auth'

import PersonalSettings from './components/PersonalSettings'
import PersonalSettings from './components/PersonalSettings.vue'

// eslint-disable-next-line camelcase
__webpack_nonce__ = btoa(getRequestToken())
Expand Down
2 changes: 1 addition & 1 deletion apps/files/src/services/Navigation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import type Node from '@nextcloud/files/dist/files/node'
import isSvg from 'is-svg'

import logger from '../logger'
import logger from '../logger.js'

export interface Column {
/** Unique column ID */
Expand Down
4 changes: 2 additions & 2 deletions apps/files/src/sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ import Vue from 'vue'
import { translate as t } from '@nextcloud/l10n'

import SidebarView from './views/Sidebar.vue'
import Sidebar from './services/Sidebar'
import Tab from './models/Tab'
import Sidebar from './services/Sidebar.js'
import Tab from './models/Tab.js'

Vue.prototype.t = t

Expand Down
4 changes: 2 additions & 2 deletions apps/files/src/templates.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ import { getLoggerBuilder } from '@nextcloud/logger'
import { loadState } from '@nextcloud/initial-state'
import { translate as t, translatePlural as n } from '@nextcloud/l10n'
import { generateOcsUrl } from '@nextcloud/router'
import { getCurrentDirectory } from './utils/davUtils'
import { getCurrentDirectory } from './utils/davUtils.js'
import axios from '@nextcloud/axios'
import Vue from 'vue'

import TemplatePickerView from './views/TemplatePicker'
import TemplatePickerView from './views/TemplatePicker.vue'
import { showError } from '@nextcloud/dialogs'

// Set up logger
Expand Down
Loading

0 comments on commit 55ba960

Please sign in to comment.