From b1c9ca65fa31440cba8268e560521e6aea306612 Mon Sep 17 00:00:00 2001 From: El RIDO Date: Sun, 8 Sep 2019 08:39:28 +0200 Subject: [PATCH] trying to address eslint false positives --- .eslintrc | 1 + js/privatebin.js | 13 ++----------- tpl/bootstrap.php | 2 +- tpl/page.php | 2 +- 4 files changed, 5 insertions(+), 13 deletions(-) diff --git a/.eslintrc b/.eslintrc index 1c90b8e..41a4e00 100644 --- a/.eslintrc +++ b/.eslintrc @@ -22,6 +22,7 @@ globals: jsc: false jsdom: true kjua: true + WebCrypto: true # http://eslint.org/docs/rules/ rules: diff --git a/js/privatebin.js b/js/privatebin.js index 412e31f..cdfce54 100644 --- a/js/privatebin.js +++ b/js/privatebin.js @@ -9,19 +9,10 @@ * @version 1.3 * @name PrivateBin * @namespace + * + * global Base64, DOMPurify, FileReader, RawDeflate, history, navigator, prettyPrint, prettyPrintOne, showdown, kjua */ -/** global: Base64 */ -/** global: DOMPurify */ -/** global: FileReader */ -/** global: RawDeflate */ -/** global: history */ -/** global: navigator */ -/** global: prettyPrint */ -/** global: prettyPrintOne */ -/** global: showdown */ -/** global: kjua */ - jQuery.fn.draghover = function() { return this.each(function() { let collection = $(), diff --git a/tpl/bootstrap.php b/tpl/bootstrap.php index 45de8a8..338cf40 100644 --- a/tpl/bootstrap.php +++ b/tpl/bootstrap.php @@ -71,7 +71,7 @@ if ($MARKDOWN): endif; ?> - + diff --git a/tpl/page.php b/tpl/page.php index c93423d..567f4bb 100644 --- a/tpl/page.php +++ b/tpl/page.php @@ -49,7 +49,7 @@ if ($MARKDOWN): endif; ?> - +