mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-10 17:24:29 +00:00
Bug 1350298 - Enable ESLint of nsContextMenu.js, fixing the last issues. Also enable it for finding globals for the browser-window environment. r=jaws
MozReview-Commit-ID: Cl8AFvzR6o8 --HG-- extra : rebase_source : 8ad57d20d53def238bbe214aa2f33f6948e49809
This commit is contained in:
parent
7f46a2f8e5
commit
314a1804e2
@ -55,7 +55,6 @@ b2g/locales/en-US/b2g-l10n.js
|
||||
# browser/ exclusions
|
||||
browser/app/**
|
||||
browser/branding/**/firefox-branding.js
|
||||
browser/base/content/nsContextMenu.js
|
||||
browser/base/content/sanitizeDialog.js
|
||||
browser/base/content/test/general/file_csp_block_all_mixedcontent.html
|
||||
browser/base/content/test/urlbar/file_blank_but_not_blank.html
|
||||
|
@ -296,6 +296,8 @@ module.exports = {
|
||||
"ChromeWorker": false,
|
||||
"ChromeUtils": false,
|
||||
"Components": false,
|
||||
"CSSPrimitiveValue": false,
|
||||
"CSSValueList": false,
|
||||
"dump": true,
|
||||
// Specific to Firefox
|
||||
// eslint-disable-next-line max-len
|
||||
|
@ -23,7 +23,7 @@ const rootDir = helpers.getRootDir(module.filename);
|
||||
// These are scripts not included in global-scripts.inc, but which are loaded
|
||||
// via overlays.
|
||||
const EXTRA_SCRIPTS = [
|
||||
//"browser/base/content/nsContextMenu.js",
|
||||
"browser/base/content/nsContextMenu.js",
|
||||
"toolkit/content/contentAreaUtils.js",
|
||||
"browser/components/places/content/editBookmarkOverlay.js",
|
||||
"browser/components/downloads/content/downloads.js",
|
||||
@ -116,5 +116,6 @@ function mapGlobals(fileGlobals) {
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
globals: mapGlobals(getScriptGlobals())
|
||||
globals: mapGlobals(getScriptGlobals()),
|
||||
browserjsScripts: getGlobalScriptsIncludes().concat(EXTRA_SCRIPTS)
|
||||
};
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "eslint-plugin-mozilla",
|
||||
"version": "0.2.33",
|
||||
"version": "0.2.34",
|
||||
"description": "A collection of rules that help enforce JavaScript coding standard in the Mozilla project.",
|
||||
"keywords": [
|
||||
"eslint",
|
||||
|
Loading…
x
Reference in New Issue
Block a user