Bump @nextcloud/eslint-config and peers

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
John Molakvoæ (skjnldsv) 2020-07-31 09:31:39 +02:00
parent 0f8aca9d87
commit a384b4a97a
No known key found for this signature in database
GPG Key ID: 60C25B8C072916CF
32 changed files with 238 additions and 919 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -40,16 +40,16 @@
}, },
davProperties: { davProperties: {
'id': OC.Files.Client.PROPERTY_FILEID, id: OC.Files.Client.PROPERTY_FILEID,
'message': OC.Files.Client.PROPERTY_MESSAGE, message: OC.Files.Client.PROPERTY_MESSAGE,
'actorType': OC.Files.Client.PROPERTY_ACTORTYPE, actorType: OC.Files.Client.PROPERTY_ACTORTYPE,
'actorId': OC.Files.Client.PROPERTY_ACTORID, actorId: OC.Files.Client.PROPERTY_ACTORID,
'actorDisplayName': OC.Files.Client.PROPERTY_ACTORDISPLAYNAME, actorDisplayName: OC.Files.Client.PROPERTY_ACTORDISPLAYNAME,
'creationDateTime': OC.Files.Client.PROPERTY_CREATIONDATETIME, creationDateTime: OC.Files.Client.PROPERTY_CREATIONDATETIME,
'objectType': OC.Files.Client.PROPERTY_OBJECTTYPE, objectType: OC.Files.Client.PROPERTY_OBJECTTYPE,
'objectId': OC.Files.Client.PROPERTY_OBJECTID, objectId: OC.Files.Client.PROPERTY_OBJECTID,
'isUnread': OC.Files.Client.PROPERTY_ISUNREAD, isUnread: OC.Files.Client.PROPERTY_ISUNREAD,
'mentions': OC.Files.Client.PROPERTY_MENTIONS, mentions: OC.Files.Client.PROPERTY_MENTIONS,
}, },
parse(data) { parse(data) {

View File

@ -58,7 +58,7 @@
* Renders the menu with the currently set items * Renders the menu with the currently set items
*/ */
render() { render() {
this.$el.html(OCA.Comments.Templates['commentsmodifymenu']({ this.$el.html(OCA.Comments.Templates.commentsmodifymenu({
items: this._scopes, items: this._scopes,
})) }))
}, },

View File

@ -41,7 +41,7 @@
_objectId: null, _objectId: null,
davProperties: { davProperties: {
'readMarker': OC.Files.Client.PROPERTY_READMARKER, readMarker: OC.Files.Client.PROPERTY_READMARKER,
}, },
/** /**

View File

@ -32,7 +32,7 @@
], ],
_formatCommentCount(count) { _formatCommentCount(count) {
return OCA.Comments.Templates['filesplugin']({ return OCA.Comments.Templates.filesplugin({
count, count,
countMessage: n('comments', '%n unread comment', '%n unread comments', count), countMessage: n('comments', '%n unread comment', '%n unread comments', count),
iconUrl: OC.imagePath('core', 'actions/comment'), iconUrl: OC.imagePath('core', 'actions/comment'),

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -469,7 +469,7 @@ export default {
* @returns {boolean} * @returns {boolean}
*/ */
isTalkEnabled() { isTalkEnabled() {
return OC.appswebroots['spreed'] !== undefined return OC.appswebroots.spreed !== undefined
}, },
/** /**

View File

@ -194,7 +194,7 @@ export default {
this.SHARE_TYPES.SHARE_TYPE_GUEST, this.SHARE_TYPES.SHARE_TYPE_GUEST,
] ]
if (OC.getCapabilities()['files_sharing']['public']['enabled'] === true) { if (OC.getCapabilities().files_sharing.public.enabled === true) {
shareType.push(this.SHARE_TYPES.SHARE_TYPE_EMAIL) shareType.push(this.SHARE_TYPES.SHARE_TYPE_EMAIL)
} }

View File

@ -226,7 +226,7 @@ export default class Config {
* @memberof Config * @memberof Config
*/ */
get isPasswordForMailSharesRequired() { get isPasswordForMailSharesRequired() {
return (OC.getCapabilities()['files_sharing']['sharebymail'] === undefined) ? false : OC.getCapabilities()['files_sharing']['sharebymail']['password']['enforced'] return (OC.getCapabilities().files_sharing.sharebymail === undefined) ? false : OC.getCapabilities().files_sharing.sharebymail.password.enforced
} }
/** /**

View File

@ -77,7 +77,7 @@ export default {
data() { data() {
return { return {
canLinkShare: OC.getCapabilities()['files_sharing']['public']['enabled'], canLinkShare: OC.getCapabilities().files_sharing.public.enabled,
} }
}, },

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -16,9 +16,9 @@
sync: OC.Backbone.davSync, sync: OC.Backbone.davSync,
davProperties: { davProperties: {
'size': '{DAV:}getcontentlength', size: '{DAV:}getcontentlength',
'mimetype': '{DAV:}getcontenttype', mimetype: '{DAV:}getcontenttype',
'timestamp': '{DAV:}getlastmodified', timestamp: '{DAV:}getlastmodified',
}, },
/** /**

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -399,7 +399,7 @@ export default {
url: generateUrl('/apps/updatenotification/channel'), url: generateUrl('/apps/updatenotification/channel'),
type: 'POST', type: 'POST',
data: { data: {
'channel': this.currentChannel, channel: this.currentChannel,
}, },
success(data) { success(data) {
OC.msg.finishedAction('#channel_save_msg', data) OC.msg.finishedAction('#channel_save_msg', data)

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -81,17 +81,17 @@ export default {
let bytes = null let bytes = null
const bytesArray = { const bytesArray = {
'b': 1, b: 1,
'k': 1024, k: 1024,
'kb': 1024, kb: 1024,
'mb': 1024 * 1024, mb: 1024 * 1024,
'm': 1024 * 1024, m: 1024 * 1024,
'gb': 1024 * 1024 * 1024, gb: 1024 * 1024 * 1024,
'g': 1024 * 1024 * 1024, g: 1024 * 1024 * 1024,
'tb': 1024 * 1024 * 1024 * 1024, tb: 1024 * 1024 * 1024 * 1024,
't': 1024 * 1024 * 1024 * 1024, t: 1024 * 1024 * 1024 * 1024,
'pb': 1024 * 1024 * 1024 * 1024 * 1024, pb: 1024 * 1024 * 1024 * 1024 * 1024,
'p': 1024 * 1024 * 1024 * 1024 * 1024, p: 1024 * 1024 * 1024 * 1024 * 1024,
} }
const matches = s.match(/^[\s+]?([0-9]*)(\.([0-9]+))?( +)?([kmgtp]?b?)$/i) const matches = s.match(/^[\s+]?([0-9]*)(\.([0-9]+))?( +)?([kmgtp]?b?)$/i)

View File

@ -59,14 +59,14 @@ function onQuerySuccess(data, statusText, xhr, dismissOptions) {
menuItem.className = 'menuitem' menuItem.className = 'menuitem'
text = document.createElement('span') text = document.createElement('span')
text.innerText = t('core', 'New in') + ' ' + data['ocs']['data']['product'] text.innerText = t('core', 'New in') + ' ' + data.ocs.data.product
text.className = 'caption' text.className = 'caption'
menuItem.appendChild(text) menuItem.appendChild(text)
icon = document.createElement('span') icon = document.createElement('span')
icon.className = 'icon-close' icon.className = 'icon-close'
icon.onclick = function() { icon.onclick = function() {
dismiss(data['ocs']['data']['version'], dismissOptions) dismiss(data.ocs.data.version, dismissOptions)
} }
menuItem.appendChild(icon) menuItem.appendChild(icon)
@ -74,8 +74,8 @@ function onQuerySuccess(data, statusText, xhr, dismissOptions) {
list.appendChild(item) list.appendChild(item)
// Highlights // Highlights
for (const i in data['ocs']['data']['whatsNew']['regular']) { for (const i in data.ocs.data.whatsNew.regular) {
const whatsNewTextItem = data['ocs']['data']['whatsNew']['regular'][i] const whatsNewTextItem = data.ocs.data.whatsNew.regular[i]
item = document.createElement('li') item = document.createElement('li')
menuItem = document.createElement('span') menuItem = document.createElement('span')
@ -94,11 +94,11 @@ function onQuerySuccess(data, statusText, xhr, dismissOptions) {
} }
// Changelog URL // Changelog URL
if (!_.isUndefined(data['ocs']['data']['changelogURL'])) { if (!_.isUndefined(data.ocs.data.changelogURL)) {
item = document.createElement('li') item = document.createElement('li')
menuItem = document.createElement('a') menuItem = document.createElement('a')
menuItem.href = data['ocs']['data']['changelogURL'] menuItem.href = data.ocs.data.changelogURL
menuItem.rel = 'noreferrer noopener' menuItem.rel = 'noreferrer noopener'
menuItem.target = '_blank' menuItem.target = '_blank'

View File

@ -137,7 +137,7 @@ export default {
publicKey.allowCredentials = publicKey.allowCredentials.map(function(data) { publicKey.allowCredentials = publicKey.allowCredentials.map(function(data) {
return { return {
...data, ...data,
'id': Uint8Array.from(base64urlDecode(data.id), c => c.charCodeAt(0)), id: Uint8Array.from(base64urlDecode(data.id), c => c.charCodeAt(0)),
} }
}) })

View File

@ -203,7 +203,7 @@ $.widget('oc.ocdialog', {
lessHeight += this.$buttonrow.outerHeight(true) lessHeight += this.$buttonrow.outerHeight(true)
} }
this.element.css({ this.element.css({
'height': 'calc(100% - ' + lessHeight + 'px)', height: 'calc(100% - ' + lessHeight + 'px)',
}) })
}, },
_createOverlay() { _createOverlay() {

View File

@ -39,7 +39,7 @@ $.fn.extend({
showPassword(c) { showPassword(c) {
// Setup callback object // Setup callback object
const callback = { 'fn': null, 'args': {} } const callback = { fn: null, args: {} }
callback.fn = c callback.fn = c
// Clones passwords and turn the clones into text inputs // Clones passwords and turn the clones into text inputs
@ -52,13 +52,13 @@ $.fn.extend({
// Name added for JQuery Validation compatibility // Name added for JQuery Validation compatibility
// Element name is required to avoid script warning. // Element name is required to avoid script warning.
$clone.attr({ $clone.attr({
'type': 'text', type: 'text',
'class': $element.attr('class'), class: $element.attr('class'),
'style': $element.attr('style'), style: $element.attr('style'),
'size': $element.attr('size'), size: $element.attr('size'),
'name': $element.attr('name') + '-clone', name: $element.attr('name') + '-clone',
'tabindex': $element.attr('tabindex'), tabindex: $element.attr('tabindex'),
'autocomplete': 'off', autocomplete: 'off',
}) })
if ($element.attr('placeholder') !== undefined) { if ($element.attr('placeholder') !== undefined) {

View File

@ -36,12 +36,12 @@
}, },
davProperties: { davProperties: {
'id': OC.Files.Client.PROPERTY_FILEID, id: OC.Files.Client.PROPERTY_FILEID,
'name': OC.Files.Client.PROPERTY_DISPLAYNAME, name: OC.Files.Client.PROPERTY_DISPLAYNAME,
'userVisible': OC.Files.Client.PROPERTY_USERVISIBLE, userVisible: OC.Files.Client.PROPERTY_USERVISIBLE,
'userAssignable': OC.Files.Client.PROPERTY_USERASSIGNABLE, userAssignable: OC.Files.Client.PROPERTY_USERASSIGNABLE,
// read-only, effective permissions computed by the server, // read-only, effective permissions computed by the server,
'canAssign': OC.Files.Client.PROPERTY_CAN_ASSIGN, canAssign: OC.Files.Client.PROPERTY_CAN_ASSIGN,
}, },
parse(data) { parse(data) {

1013
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -83,12 +83,12 @@
"vuex-router-sync": "^5.0.0" "vuex-router-sync": "^5.0.0"
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "^7.10.5", "@babel/core": "^7.11.0",
"@babel/plugin-proposal-class-properties": "^7.10.4", "@babel/plugin-proposal-class-properties": "^7.10.4",
"@babel/plugin-syntax-dynamic-import": "^7.8.3", "@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/preset-env": "^7.10.4", "@babel/preset-env": "^7.11.0",
"@nextcloud/browserslist-config": "^1.0.0", "@nextcloud/browserslist-config": "^1.0.0",
"@nextcloud/eslint-config": "^2.0.0", "@nextcloud/eslint-config": "^2.2.0",
"@nextcloud/eslint-plugin": "^1.4.0", "@nextcloud/eslint-plugin": "^1.4.0",
"babel-eslint": "^10.1.0", "babel-eslint": "^10.1.0",
"babel-loader": "^8.1.0", "babel-loader": "^8.1.0",
@ -96,8 +96,8 @@
"chai": "^4.2.0", "chai": "^4.2.0",
"css-loader": "^3.6.0", "css-loader": "^3.6.0",
"eslint": "^6.8.0", "eslint": "^6.8.0",
"eslint-config-standard": "^12.0.0", "eslint-config-standard": "^14.1.1",
"eslint-loader": "^3.0.4", "eslint-loader": "^4.0.2",
"eslint-plugin-import": "^2.22.0", "eslint-plugin-import": "^2.22.0",
"eslint-plugin-node": "^11.1.0", "eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1", "eslint-plugin-promise": "^4.2.1",