Bump @nextcloud/eslint-config and peers

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
pull/22068/head
John Molakvoæ (skjnldsv) 4 years ago
parent 0f8aca9d87
commit a384b4a97a
No known key found for this signature in database
GPG Key ID: 60C25B8C072916CF

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

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

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

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

@ -32,7 +32,7 @@
],
_formatCommentCount(count) {
return OCA.Comments.Templates['filesplugin']({
return OCA.Comments.Templates.filesplugin({
count,
countMessage: n('comments', '%n unread comment', '%n unread comments', count),
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

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

@ -194,7 +194,7 @@ export default {
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)
}

@ -226,7 +226,7 @@ export default class Config {
* @memberof Config
*/
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
}
/**

@ -77,7 +77,7 @@ export default {
data() {
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

@ -16,9 +16,9 @@
sync: OC.Backbone.davSync,
davProperties: {
'size': '{DAV:}getcontentlength',
'mimetype': '{DAV:}getcontenttype',
'timestamp': '{DAV:}getlastmodified',
size: '{DAV:}getcontentlength',
mimetype: '{DAV:}getcontenttype',
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

@ -399,7 +399,7 @@ export default {
url: generateUrl('/apps/updatenotification/channel'),
type: 'POST',
data: {
'channel': this.currentChannel,
channel: this.currentChannel,
},
success(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

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

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

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

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

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

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

1201
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -83,12 +83,12 @@
"vuex-router-sync": "^5.0.0"
},
"devDependencies": {
"@babel/core": "^7.10.5",
"@babel/core": "^7.11.0",
"@babel/plugin-proposal-class-properties": "^7.10.4",
"@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/eslint-config": "^2.0.0",
"@nextcloud/eslint-config": "^2.2.0",
"@nextcloud/eslint-plugin": "^1.4.0",
"babel-eslint": "^10.1.0",
"babel-loader": "^8.1.0",
@ -96,8 +96,8 @@
"chai": "^4.2.0",
"css-loader": "^3.6.0",
"eslint": "^6.8.0",
"eslint-config-standard": "^12.0.0",
"eslint-loader": "^3.0.4",
"eslint-config-standard": "^14.1.1",
"eslint-loader": "^4.0.2",
"eslint-plugin-import": "^2.22.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",

Loading…
Cancel
Save