зеркало из https://github.com/mozilla/bedrock.git
Update ESLint config and define globals
This commit is contained in:
Родитель
0fe338c2d9
Коммит
1464b4e2e8
|
@ -0,0 +1,2 @@
|
||||||
|
/media/js/styleguide/logo-prototype/vendor/
|
||||||
|
/media/js/plugincheck/lib/mustache.js
|
|
@ -23,5 +23,9 @@ module.exports = {
|
||||||
2,
|
2,
|
||||||
"always"
|
"always"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
"globals": {
|
||||||
|
"Mozilla": true,
|
||||||
|
"site": true
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
/* exported _dntEnabled */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns true or false based on whether doNotTack is enabled. It also takes into account the
|
* Returns true or false based on whether doNotTack is enabled. It also takes into account the
|
||||||
* anomalies, such as !bugzilla 887703, which effect versions of Fx 31 and lower. It also handles
|
* anomalies, such as !bugzilla 887703, which effect versions of Fx 31 and lower. It also handles
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
/* global init_download_links, init_mobile_download_links,
|
||||||
|
update_download_text_for_old_fx, init_lang_switcher */
|
||||||
|
|
||||||
// init global.js functions
|
// init global.js functions
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
init_download_links();
|
init_download_links();
|
||||||
|
|
|
@ -2,6 +2,8 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
|
/* exported trigger_ie_download, init_download_links, update_download_text_for_old_fx,
|
||||||
|
init_mobile_download_links, init_lang_switcher */
|
||||||
|
|
||||||
// download buttons
|
// download buttons
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,8 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
|
/* global YT */
|
||||||
|
|
||||||
// YouTube API hook has to be in global scope
|
// YouTube API hook has to be in global scope
|
||||||
function onYouTubeIframeAPIReady() {
|
function onYouTubeIframeAPIReady() {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
|
@ -2,6 +2,8 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
|
/* global YT */
|
||||||
|
|
||||||
// YouTube API hook has to be in global scope
|
// YouTube API hook has to be in global scope
|
||||||
|
|
||||||
// Videos are not yet ready for the whatsnew features (Performance Tools
|
// Videos are not yet ready for the whatsnew features (Performance Tools
|
||||||
|
|
|
@ -2,6 +2,8 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
|
/* global YT */
|
||||||
|
|
||||||
// YouTube API hook has to be in global scope
|
// YouTube API hook has to be in global scope
|
||||||
function onYouTubeIframeAPIReady() {
|
function onYouTubeIframeAPIReady() {
|
||||||
Mozilla.firstRunOnYouTubeIframeAPIReady();
|
Mozilla.firstRunOnYouTubeIframeAPIReady();
|
||||||
|
|
|
@ -2,6 +2,8 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
|
/* global L */
|
||||||
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
var map = null;
|
var map = null;
|
||||||
var circle = null;
|
var circle = null;
|
||||||
|
|
|
@ -2,6 +2,8 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
|
/* global Waypoint */
|
||||||
|
|
||||||
;(function($) {
|
;(function($) {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,8 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
|
/* global L */
|
||||||
|
|
||||||
(function($) {
|
(function($) {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,8 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
|
/* global Spinner */
|
||||||
|
|
||||||
$(function () {
|
$(function () {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
/* global PluginCheck, Mustache, vulnerablePluginsTmpl, outdatedPluginsTmpl,
|
||||||
|
unknownPluginsTmpl, upToDatePluginsTmpl */
|
||||||
|
|
||||||
$(function() {
|
$(function() {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
/* exported versionCompare */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Compares two software version numbers (e.g. "1.7.1" or "1.2b").
|
* Compares two software version numbers (e.g. "1.7.1" or "1.2b").
|
||||||
*
|
*
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
/* exported vulnerablePluginsTmpl, outdatedPluginsTmpl, unknownPluginsTmpl,
|
||||||
|
upToDatePluginsTmpl */
|
||||||
|
|
||||||
var vulnerablePluginsTmpl = '{{#vulnerablePlugins}} <tr><th scope="row">' +
|
var vulnerablePluginsTmpl = '{{#vulnerablePlugins}} <tr><th scope="row">' +
|
||||||
'<img class="icon" width="60" height="60" src="{{icon}}" alt="" />' +
|
'<img class="icon" width="60" height="60" src="{{icon}}" alt="" />' +
|
||||||
'{{plugin_name}}' +
|
'{{plugin_name}}' +
|
||||||
|
|
|
@ -2,6 +2,8 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
|
/* global mina, Snap */
|
||||||
|
|
||||||
;(function($) {
|
;(function($) {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,8 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
|
/* global Waypoint, Circles */
|
||||||
|
|
||||||
;(function($) {
|
;(function($) {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
|
@ -237,4 +239,3 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
})(window.jQuery);
|
})(window.jQuery);
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче