Skip to content

Commit

Permalink
chore: lint fix
Browse files Browse the repository at this point in the history
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
  • Loading branch information
skjnldsv committed Jun 28, 2023
1 parent 9734763 commit 000cfa9
Show file tree
Hide file tree
Showing 16 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ module.exports = {
oc_defaults: true,
},
extends: [
'@nextcloud',
'@nextcloud/eslint-config/typescript',
],
}
4 changes: 2 additions & 2 deletions cypress/dockerNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export const stopNextcloud = async function() {
* @param container the container to get the ip from
*/
export const getContainerIP = async function(
container: Container = docker.getContainer(CONTAINER_NAME)
container: Container = docker.getContainer(CONTAINER_NAME),
): Promise<string> {
let ip = ''
let tries = 0
Expand Down Expand Up @@ -195,7 +195,7 @@ export const waitOnNextcloud = async function(ip: string) {
const runExec = async function(
container: Docker.Container,
command: string[],
verbose = false
verbose = false,
) {
const exec = await container.exec({
Cmd: command,
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/mixins/oddname.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export default function(file, type, sidebar = false) {
cy.get('body > .viewer .icon-error').should('not.exist')
cy.get('body > .viewer .modal-name').should('contain', placedName)
cy.get('body > .viewer .modal-header button.header-close').should(
'be.visible'
'be.visible',
)
}

Expand Down
Binary file modified cypress/snapshots/base/visual-regression.cy.js/image.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified cypress/snapshots/base/visual-regression.cy.js/image2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified cypress/snapshots/base/visual-regression.cy.js/non-dav.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified cypress/snapshots/base/visual-regression.cy.js/video.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
"dev": "webpack --node-env development --progress",
"watch": "webpack --node-env development --progress --watch",
"stats": "webpack --node-env production --json webpack-stats.json",
"lint": "eslint --ext .ts,.js,.vue cypress src",
"lint:fix": "eslint --ext .ts,.js,.vue cypress src --fix",
"lint": "eslint cypress src",
"lint:fix": "eslint cypress src --fix",
"stylelint": "stylelint src",
"stylelint:fix": "stylelint src --fix",
"cypress": "npm run cypress:e2e",
Expand Down
1 change: 1 addition & 0 deletions src/components/Audios.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
</template>

<script>
// eslint-disable-next-line n/no-missing-import
import '@skjnldsv/vue-plyr/dist/vue-plyr.css'
import logger from '../services/logger.js'
Expand Down
4 changes: 2 additions & 2 deletions src/components/ImageEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export default {
this.imageEditor = new FilerobotImageEditor(
this.$refs.editor,
this.config
this.config,
)
this.imageEditor.render()
window.addEventListener('keydown', this.handleKeydown, true)
Expand Down Expand Up @@ -220,7 +220,7 @@ export default {
return
}
this.onClose('warning-ignored', false)
}
},
)
},
Expand Down
1 change: 1 addition & 0 deletions src/components/Videos.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
</template>

<script>
// eslint-disable-next-line n/no-missing-import
import '@skjnldsv/vue-plyr/dist/vue-plyr.css'
import logger from '../services/logger.js'
import { imagePath } from '@nextcloud/router'
Expand Down
1 change: 0 additions & 1 deletion src/mixins/PreviewUrl.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

/**
* @copyright Copyright (c) 2019 John Molakvoæ <skjnldsv@protonmail.com>
*
Expand Down
2 changes: 1 addition & 1 deletion src/services/DavClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ patcher.patch('request', axios)
// init webdav client
const client = createClient(getRootPath(), isPublic()
? { username: getToken(), password: '' }
: {}
: {},
)

export default client
2 changes: 1 addition & 1 deletion src/utils/CancelableRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const CancelableRequest = function(request) {
const fetch = async function(url, options) {
return request(
url,
{ ...options, signal: controller.signal }
{ ...options, signal: controller.signal },
)
}
return {
Expand Down
1 change: 0 additions & 1 deletion src/utils/canDownload.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

/**
* @copyright Copyright (c) 2020 John Molakvoæ <skjnldsv@protonmail.com>
*
Expand Down
2 changes: 1 addition & 1 deletion src/utils/fileUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const extractFilePaths = function(path) {
* @param {object} fileInfo1 file 1 fileinfo
* @param {object} fileInfo2 file 2 fileinfo
* @param {string} key key to sort with
* @param {boolean} [asc=true] sort ascending?
* @param {boolean} [asc] sort ascending?
* @return {number}
*/
const sortCompare = function(fileInfo1, fileInfo2, key, asc = true) {
Expand Down

0 comments on commit 000cfa9

Please sign in to comment.