mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
e10f46b2fb
To properly lint XBL files we need to support things like import-globals-from and other ESlint comment directives so we have to pass comments through to the code blocks that ESlint parses. Unfortunately the way the XBL processor works now is by passing a separate code block for every method/property/etc. in the XBL and ESlint doesn't retain state across the blocks so we would have to prefix every block with every comment. Instead this change makes us output just a single block that roughly looks like this: <comments> var bindings = { "<binding-id>": { <binding-part-name>: function() { ... } } } This has some interesting bonuses. Defining the same ID twice will cause a lint failure. Same for the same field in a binding. The line mapping is a little harder and there are still a few lines that won't map directly back to the original file but they should be rare cases. The only downside is that since some bindings have the same binding declared differently for different platforms we have to exclude those from linting for now. MozReview-Commit-ID: CAsPt5dtf6T
203 lines
5.0 KiB
Plaintext
203 lines
5.0 KiB
Plaintext
# Always ignore node_modules.
|
||
**/node_modules/**/*.*
|
||
|
||
# Exclude expected objdirs.
|
||
obj*/**
|
||
|
||
# We ignore all these directories by default, until we get them enabled.
|
||
# If you are enabling a directory, please add directory specific exclusions
|
||
# below.
|
||
accessible/**
|
||
addon-sdk/**
|
||
build/**
|
||
caps/**
|
||
chrome/**
|
||
config/**
|
||
db/**
|
||
docshell/**
|
||
dom/**
|
||
editor/**
|
||
embedding/**
|
||
extensions/**
|
||
gfx/**
|
||
gradle/**
|
||
hal/**
|
||
image/**
|
||
intl/**
|
||
ipc/**
|
||
js/**
|
||
layout/**
|
||
media/**
|
||
memory/**
|
||
mfbt/**
|
||
modules/**
|
||
mozglue/**
|
||
netwerk/**
|
||
nsprpub/**
|
||
other-licenses/**
|
||
parser/**
|
||
probes/**
|
||
python/**
|
||
rdf/**
|
||
startupcache/**
|
||
testing/**
|
||
tools/**
|
||
uriloader/**
|
||
view/**
|
||
webapprt/**
|
||
widget/**
|
||
xpcom/**
|
||
xpfe/**
|
||
xulrunner/**
|
||
|
||
# b2g exclusions (pref files).
|
||
b2g/app/b2g.js
|
||
b2g/graphene/graphene.js
|
||
b2g/locales/en-US/b2g-l10n.js
|
||
|
||
# browser/ exclusions
|
||
browser/app/**
|
||
browser/base/content/browser-social.js
|
||
browser/base/content/nsContextMenu.js
|
||
browser/base/content/sanitizeDialog.js
|
||
browser/base/content/test/**
|
||
browser/base/content/newtab/**
|
||
browser/components/downloads/**
|
||
browser/components/feeds/**
|
||
browser/components/pocket/**
|
||
browser/components/preferences/**
|
||
browser/components/privatebrowsing/**
|
||
browser/components/sessionstore/**
|
||
browser/components/shell/**
|
||
browser/components/tabview/**
|
||
browser/components/translation/**
|
||
browser/extensions/pdfjs/**
|
||
browser/extensions/pocket/content/panels/js/vendor/**
|
||
browser/extensions/shumway/**
|
||
browser/locales/**
|
||
|
||
# Ignore all of loop since it is imported from github and checked at source.
|
||
browser/extensions/loop/**
|
||
|
||
# devtools/ exclusions
|
||
devtools/*.js
|
||
devtools/client/animationinspector/**
|
||
devtools/client/canvasdebugger/**
|
||
devtools/client/commandline/**
|
||
devtools/client/debugger/**
|
||
devtools/client/eyedropper/**
|
||
devtools/client/framework/**
|
||
# devtools/client/inspector/shared/*.js files are eslint-clean, so they aren't
|
||
# included in the ignore list.
|
||
devtools/client/inspector/computed/**
|
||
devtools/client/inspector/fonts/**
|
||
devtools/client/inspector/markup/test/**
|
||
devtools/client/inspector/rules/**
|
||
devtools/client/inspector/shared/test/**
|
||
devtools/client/inspector/test/**
|
||
devtools/client/inspector/*.js
|
||
devtools/client/jsonview/**
|
||
devtools/client/memory/**
|
||
devtools/client/netmonitor/**
|
||
devtools/client/performance/**
|
||
devtools/client/projecteditor/**
|
||
devtools/client/promisedebugger/**
|
||
devtools/client/responsivedesign/**
|
||
devtools/client/scratchpad/**
|
||
devtools/client/shadereditor/**
|
||
devtools/client/shared/**
|
||
devtools/client/sourceeditor/**
|
||
devtools/client/storage/**
|
||
devtools/client/tilt/**
|
||
devtools/client/webaudioeditor/**
|
||
devtools/client/webconsole/**
|
||
devtools/client/webide/**
|
||
devtools/server/**
|
||
devtools/shared/**
|
||
|
||
# Ignore devtools pre-processed files
|
||
devtools/client/framework/toolbox-process-window.js
|
||
devtools/client/performance/system.js
|
||
devtools/client/webide/webide-prefs.js
|
||
devtools/client/preferences/**
|
||
|
||
# Ignore devtools third-party libs
|
||
devtools/shared/jsbeautify/*
|
||
devtools/shared/acorn/*
|
||
devtools/client/sourceeditor/tern/*
|
||
devtools/shared/pretty-fast/*
|
||
devtools/shared/sourcemap/*
|
||
devtools/shared/qrcode/decoder/*
|
||
devtools/shared/qrcode/encoder/*
|
||
devtools/client/shared/vendor/*
|
||
devtools/client/shared/d3.js
|
||
devtools/client/webaudioeditor/lib/dagre-d3.js
|
||
devtools/client/sourceeditor/codemirror/*.js
|
||
devtools/client/sourceeditor/codemirror/**/*.js
|
||
devtools/client/sourceeditor/test/codemirror/*
|
||
devtools/client/markupview/test/lib_*
|
||
|
||
# mobile/android/ exclusions
|
||
mobile/android/chrome/content
|
||
mobile/android/tests/
|
||
|
||
# Uses `#filter substitution`
|
||
mobile/android/b2gdroid/app/b2gdroid.js
|
||
mobile/android/app/mobile.js
|
||
mobile/android/chrome/content/healthreport-prefs.js
|
||
|
||
# Uses `#expand`
|
||
mobile/android/chrome/content/about.js
|
||
|
||
# Not much JS to lint and non-standard at that
|
||
mobile/android/installer/
|
||
mobile/android/locales/
|
||
|
||
# Pretty sure we're disabling this one anyway
|
||
mobile/android/modules/ContactService.jsm
|
||
|
||
# es7 proposed: array comprehensions
|
||
# https://github.com/eslint/espree/issues/125
|
||
mobile/android/modules/WebappManager.jsm
|
||
|
||
# Non-standard `(catch ex if ...)`
|
||
mobile/android/components/Snippets.js
|
||
|
||
# Bug 1178739: Ignore this file as a quick fix for "Illegal yield expression"
|
||
mobile/android/modules/HomeProvider.jsm
|
||
|
||
# services/ exclusions
|
||
|
||
# Uses `#filter substitution`
|
||
services/sync/modules/constants.js
|
||
|
||
# toolkit/ exclusions
|
||
|
||
# Not part of the default build
|
||
toolkit/components/help/**
|
||
|
||
# Intentionally invalid JS
|
||
toolkit/components/workerloader/tests/moduleF-syntax-error.js
|
||
|
||
# Tests old non-star function generators
|
||
toolkit/modules/tests/xpcshell/test_task.js
|
||
|
||
# Not yet updated
|
||
toolkit/components/osfile/**
|
||
toolkit/components/passwordmgr/**
|
||
|
||
# Uses preprocessing
|
||
toolkit/content/contentAreaUtils.js
|
||
toolkit/content/widgets/videocontrols.xml
|
||
toolkit/content/widgets/wizard.xml
|
||
toolkit/components/jsdownloads/src/DownloadIntegration.jsm
|
||
toolkit/components/search/nsSearchService.js
|
||
toolkit/components/url-classifier/**
|
||
toolkit/components/urlformatter/nsURLFormatter.js
|
||
toolkit/identity/FirefoxAccounts.jsm
|
||
toolkit/modules/AppConstants.jsm
|
||
toolkit/mozapps/downloads/nsHelperAppDlg.js
|
||
toolkit/mozapps/extensions/internal/AddonConstants.jsm
|
||
toolkit/mozapps/update/tests/data/xpcshellConstantsPP.js
|
||
toolkit/webapps/**
|