From 79b6266cf9ae41669effd9aa75ab04ace41f38bd Mon Sep 17 00:00:00 2001 From: eight Date: Wed, 1 Nov 2017 08:10:08 +0800 Subject: [PATCH] Fix: no new line before use strict --- background/storage.js | 1 - background/usercss-helper.js | 1 - edit/edit.js | 1 - edit/regexp-tester.js | 1 - edit/source-editor.js | 1 - install-usercss/install-usercss.js | 1 - js/moz-parser.js | 1 - js/usercss.js | 1 - manage/config-dialog.js | 1 - 9 files changed, 9 deletions(-) diff --git a/background/storage.js b/background/storage.js index 327e5f4d..fe6a98fc 100644 --- a/background/storage.js +++ b/background/storage.js @@ -1,5 +1,4 @@ /* global LZString */ - 'use strict'; const RX_NAMESPACE = new RegExp([/[\s\r\n]*/, diff --git a/background/usercss-helper.js b/background/usercss-helper.js index 56c545cf..8a9a3a0c 100644 --- a/background/usercss-helper.js +++ b/background/usercss-helper.js @@ -1,5 +1,4 @@ /* global usercss saveStyle getStyles */ - 'use strict'; // eslint-disable-next-line no-var diff --git a/edit/edit.js b/edit/edit.js index c289810a..e0d2bf70 100644 --- a/edit/edit.js +++ b/edit/edit.js @@ -4,7 +4,6 @@ /* global CSSLint initLint linterConfig updateLintReport renderLintReport updateLinter */ /* global mozParser createSourceEditor */ /* global loadScript closeCurrentTab regExpTester */ - 'use strict'; let styleId = null; diff --git a/edit/regexp-tester.js b/edit/regexp-tester.js index dc33e53b..fd5be505 100644 --- a/edit/regexp-tester.js +++ b/edit/regexp-tester.js @@ -1,5 +1,4 @@ /* global showHelp */ - 'use strict'; // eslint-disable-next-line no-var diff --git a/edit/source-editor.js b/edit/source-editor.js index 6b93c0d4..0ae63e48 100644 --- a/edit/source-editor.js +++ b/edit/source-editor.js @@ -3,7 +3,6 @@ /* global hotkeyRerouter setupAutocomplete setupOptionsExpand */ /* global editors linterConfig updateLinter regExpTester mozParser */ /* global makeLink */ - 'use strict'; function createSourceEditor(style) { diff --git a/install-usercss/install-usercss.js b/install-usercss/install-usercss.js index 7f4436d2..7a2862fc 100644 --- a/install-usercss/install-usercss.js +++ b/install-usercss/install-usercss.js @@ -1,5 +1,4 @@ /* global CodeMirror semverCompare makeLink closeCurrentTab */ - 'use strict'; (() => { diff --git a/js/moz-parser.js b/js/moz-parser.js index fe6a3030..72f01b69 100644 --- a/js/moz-parser.js +++ b/js/moz-parser.js @@ -1,5 +1,4 @@ /* global parserlib, loadScript */ - 'use strict'; // eslint-disable-next-line no-var diff --git a/js/usercss.js b/js/usercss.js index 1a637d79..161d8d59 100644 --- a/js/usercss.js +++ b/js/usercss.js @@ -1,5 +1,4 @@ /* global loadScript mozParser semverCompare */ - 'use strict'; // eslint-disable-next-line no-var diff --git a/manage/config-dialog.js b/manage/config-dialog.js index 2ab02aa0..aba5ebe2 100644 --- a/manage/config-dialog.js +++ b/manage/config-dialog.js @@ -1,5 +1,4 @@ /* global usercss messageBox makeLink */ - 'use strict'; function configDialog(style) {