summaryrefslogtreecommitdiffstats
path: root/core/src
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-03-25 10:38:16 +0100
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2020-03-25 11:53:59 +0100
commit6af1ed8cb32cff0ba384db33ba19540b0ac8ba6a (patch)
treeefa3660dd0bb9ef3d3260201306d406688eeb1ce /core/src
parentba14c41a1ca39624040282ab9082fff7aa09bff6 (diff)
downloadnextcloud-server-6af1ed8cb32cff0ba384db33ba19540b0ac8ba6a.tar.gz
nextcloud-server-6af1ed8cb32cff0ba384db33ba19540b0ac8ba6a.zip
Update eslint and switch to @nextcloud packages
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'core/src')
-rw-r--r--core/src/OC/dialogs.js1
-rw-r--r--core/src/OC/msg.js2
-rw-r--r--core/src/OCP/loader.js4
-rw-r--r--core/src/globals.js2
4 files changed, 3 insertions, 6 deletions
diff --git a/core/src/OC/dialogs.js b/core/src/OC/dialogs.js
index 87b7728bdd9..bf6a92aef8b 100644
--- a/core/src/OC/dialogs.js
+++ b/core/src/OC/dialogs.js
@@ -1,4 +1,3 @@
-/* global alert */
/* eslint-disable */
/*
* @copyright 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
diff --git a/core/src/OC/msg.js b/core/src/OC/msg.js
index 8f58d415768..d84d0503cb3 100644
--- a/core/src/OC/msg.js
+++ b/core/src/OC/msg.js
@@ -1,5 +1,3 @@
-/* global t */
-
/*
* @copyright 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
*
diff --git a/core/src/OCP/loader.js b/core/src/OCP/loader.js
index 293af9bbec2..46087fcae19 100644
--- a/core/src/OCP/loader.js
+++ b/core/src/OCP/loader.js
@@ -37,7 +37,7 @@ export default {
*/
loadScript: function(app, file) {
const key = app + file
- if (loadedScripts.hasOwnProperty(key)) {
+ if (Object.prototype.hasOwnProperty.call(loadedScripts, key)) {
return Promise.resolve()
}
loadedScripts[key] = true
@@ -61,7 +61,7 @@ export default {
*/
loadStylesheet: function(app, file) {
const key = app + file
- if (loadedStylesheets.hasOwnProperty(key)) {
+ if (Object.prototype.hasOwnProperty.call(loadedStylesheets, key)) {
return Promise.resolve()
}
loadedStylesheets[key] = true
diff --git a/core/src/globals.js b/core/src/globals.js
index 1ceb4aacd85..e7f2b075374 100644
--- a/core/src/globals.js
+++ b/core/src/globals.js
@@ -1,4 +1,4 @@
-/* eslint-disable nextcloud/no-deprecations */
+/* eslint-disable @nextcloud/no-deprecations */
/**
* @copyright 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
*