2015-11-27 20:39:59 +03:00
|
|
|
# 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
|
2017-01-16 20:51:00 +03:00
|
|
|
# below.
|
2015-11-27 20:39:59 +03:00
|
|
|
addon-sdk/**
|
|
|
|
chrome/**
|
|
|
|
config/**
|
|
|
|
docshell/**
|
|
|
|
editor/**
|
|
|
|
embedding/**
|
2017-07-07 13:00:25 +03:00
|
|
|
extensions/cookie/**
|
|
|
|
extensions/spellcheck/**
|
|
|
|
extensions/universalchardet/**
|
2015-11-27 20:39:59 +03:00
|
|
|
gfx/**
|
|
|
|
image/**
|
|
|
|
intl/**
|
|
|
|
ipc/**
|
|
|
|
layout/**
|
|
|
|
media/**
|
|
|
|
memory/**
|
|
|
|
modules/**
|
|
|
|
netwerk/**
|
|
|
|
parser/**
|
|
|
|
python/**
|
|
|
|
rdf/**
|
2017-02-03 03:05:56 +03:00
|
|
|
servo/**
|
2016-12-22 13:53:51 +03:00
|
|
|
tools/update-packaging/**
|
2015-11-27 20:39:59 +03:00
|
|
|
uriloader/**
|
|
|
|
view/**
|
|
|
|
widget/**
|
|
|
|
xpcom/**
|
|
|
|
|
2017-07-06 17:31:07 +03:00
|
|
|
# We currently have no js files in these directories, so we ignore them by
|
|
|
|
# default to aid ESLint's performance.
|
|
|
|
build/**
|
|
|
|
db/**
|
|
|
|
gradle/**
|
|
|
|
hal/**
|
|
|
|
mfbt/**
|
|
|
|
mozglue/**
|
|
|
|
nsprpub/**
|
|
|
|
other-licenses/**
|
|
|
|
probes/**
|
|
|
|
startupcache/**
|
|
|
|
xpfe/**
|
2015-12-03 20:14:07 +03:00
|
|
|
|
2015-11-27 20:39:59 +03:00
|
|
|
# browser/ exclusions
|
|
|
|
browser/app/**
|
2016-10-25 18:35:05 +03:00
|
|
|
browser/branding/**/firefox-branding.js
|
2017-05-08 12:29:47 +03:00
|
|
|
# Gzipped test file.
|
|
|
|
browser/base/content/test/general/gZipOfflineChild.html
|
2016-08-31 19:53:24 +03:00
|
|
|
browser/base/content/test/urlbar/file_blank_but_not_blank.html
|
2017-07-06 17:31:07 +03:00
|
|
|
# New tab is likely to be replaced soon.
|
2015-12-02 22:51:26 +03:00
|
|
|
browser/base/content/newtab/**
|
2016-10-28 00:18:50 +03:00
|
|
|
# Test files that are really json not js, and don't need to be linted.
|
|
|
|
browser/components/sessionstore/test/unit/data/sessionstore_valid.js
|
|
|
|
browser/components/sessionstore/test/unit/data/sessionstore_invalid.js
|
2017-03-03 12:29:14 +03:00
|
|
|
# generated & special files in cld2
|
|
|
|
browser/components/translation/cld2/**
|
2017-05-31 18:40:52 +03:00
|
|
|
# Screenshots and Follow-on search are imported as a system add-on and have
|
|
|
|
# their own lint rules currently.
|
|
|
|
browser/extensions/followonsearch/**
|
2017-03-10 15:34:54 +03:00
|
|
|
browser/extensions/screenshots/**
|
2017-01-23 23:32:49 +03:00
|
|
|
browser/extensions/pdfjs/content/build**
|
|
|
|
browser/extensions/pdfjs/content/web**
|
2016-09-21 02:06:37 +03:00
|
|
|
# generated or library files in pocket
|
|
|
|
browser/extensions/pocket/content/panels/js/tmpl.js
|
2016-01-06 21:10:35 +03:00
|
|
|
browser/extensions/pocket/content/panels/js/vendor/**
|
2017-04-25 23:31:29 +03:00
|
|
|
# generated or library files in activity-stream
|
|
|
|
browser/extensions/activity-stream/data/content/activity-stream.bundle.js
|
2017-03-24 18:16:35 +03:00
|
|
|
browser/extensions/activity-stream/vendor/**
|
2017-07-06 17:31:07 +03:00
|
|
|
# The only file in browser/locales/ is pre-processed.
|
|
|
|
browser/locales/**
|
2016-12-20 01:02:59 +03:00
|
|
|
# imported from chromium
|
|
|
|
browser/extensions/mortar/**
|
2017-06-29 02:01:25 +03:00
|
|
|
# Generated data files
|
|
|
|
browser/extensions/formautofill/phonenumberutils/PhoneNumberMetaData.jsm
|
2017-05-10 23:07:06 +03:00
|
|
|
|
2015-11-27 20:39:59 +03:00
|
|
|
# devtools/ exclusions
|
2016-01-21 15:19:58 +03:00
|
|
|
devtools/client/canvasdebugger/**
|
|
|
|
devtools/client/commandline/**
|
|
|
|
devtools/client/debugger/**
|
|
|
|
devtools/client/framework/**
|
2017-04-27 18:19:17 +03:00
|
|
|
!devtools/client/framework/devtools.js
|
2017-04-27 18:21:07 +03:00
|
|
|
!devtools/client/framework/devtools-browser.js
|
2016-07-26 22:26:10 +03:00
|
|
|
!devtools/client/framework/selection.js
|
2017-02-22 21:33:20 +03:00
|
|
|
!devtools/client/framework/target*
|
|
|
|
!devtools/client/framework/toolbox*
|
2017-02-26 01:54:25 +03:00
|
|
|
devtools/client/inspector/markup/test/doc_markup_events_*.html
|
|
|
|
devtools/client/inspector/rules/test/doc_media_queries.html
|
|
|
|
devtools/client/memory/test/chrome/*.html
|
|
|
|
devtools/client/performance/components/test/test_jit_optimizations_01.html
|
2016-01-21 15:19:58 +03:00
|
|
|
devtools/client/projecteditor/**
|
2017-02-26 01:54:25 +03:00
|
|
|
devtools/client/responsive.html/test/browser/touch.html
|
2016-01-21 15:19:58 +03:00
|
|
|
devtools/client/responsivedesign/**
|
2017-03-21 01:07:07 +03:00
|
|
|
!devtools/client/responsivedesign/responsivedesign.jsm
|
2016-01-21 15:19:58 +03:00
|
|
|
devtools/client/scratchpad/**
|
|
|
|
devtools/client/shadereditor/**
|
2016-04-29 23:13:14 +03:00
|
|
|
devtools/client/shared/*.jsm
|
2017-01-18 16:38:10 +03:00
|
|
|
devtools/client/shared/components/reps/reps.js
|
2017-02-26 01:54:25 +03:00
|
|
|
devtools/client/shared/components/reps/test/mochitest/*.html
|
|
|
|
!devtools/client/shared/components/reps/test/mochitest/test_reps_infinity.html
|
|
|
|
!devtools/client/shared/components/reps/test/mochitest/test_reps_nan.html
|
|
|
|
!devtools/client/shared/components/reps/test/mochitest/test_reps_promise.html
|
|
|
|
!devtools/client/shared/components/reps/test/mochitest/test_reps_symbol.html
|
|
|
|
!devtools/client/shared/components/reps/test/mochitest/test_reps_text-node.html
|
|
|
|
devtools/client/shared/components/test/mochitest/*.html
|
|
|
|
!devtools/client/shared/components/test/mochitest/test_stack-trace.html
|
|
|
|
devtools/client/shared/shim/test/test_*.html
|
|
|
|
devtools/client/shared/test/browser_toolbar_webconsole_errors_count.html
|
2016-06-22 22:35:12 +03:00
|
|
|
devtools/client/shared/webgl-utils.js
|
2016-05-19 17:35:45 +03:00
|
|
|
devtools/client/shared/widgets/*.jsm
|
2017-02-26 01:54:25 +03:00
|
|
|
devtools/client/storage/test/*.html
|
|
|
|
!devtools/client/storage/test/storage-cookies.html
|
|
|
|
!devtools/client/storage/test/storage-overflow.html
|
|
|
|
!devtools/client/storage/test/storage-search.html
|
|
|
|
!devtools/client/storage/test/storage-unsecured-iframe.html
|
|
|
|
!devtools/client/storage/test/storage-unsecured-iframe-usercontextid.html
|
2016-01-21 15:19:58 +03:00
|
|
|
devtools/client/webaudioeditor/**
|
2016-12-08 11:16:41 +03:00
|
|
|
devtools/client/webconsole/net/**
|
|
|
|
devtools/client/webconsole/test/**
|
|
|
|
devtools/client/webconsole/hudservice.js
|
|
|
|
devtools/client/webconsole/webconsole-connection-proxy.js
|
|
|
|
devtools/client/webconsole/webconsole.js
|
2016-01-21 15:19:58 +03:00
|
|
|
devtools/client/webide/**
|
2016-06-04 01:20:45 +03:00
|
|
|
!devtools/client/webide/components/webideCli.js
|
2017-02-26 01:54:25 +03:00
|
|
|
devtools/server/tests/browser/storage-*.html
|
|
|
|
!devtools/server/tests/browser/storage-unsecured-iframe.html
|
|
|
|
devtools/server/tests/browser/stylesheets-nested-iframes.html
|
2017-03-18 14:26:05 +03:00
|
|
|
devtools/server/tests/unit/xpcshell_debugging_script.js
|
2017-02-26 01:54:25 +03:00
|
|
|
devtools/shared/platform/content/test/test_clipboard.html
|
|
|
|
devtools/shared/qrcode/tests/mochitest/test_decode.html
|
|
|
|
devtools/shared/tests/mochitest/*.html
|
|
|
|
devtools/shared/webconsole/test/test_*.html
|
2016-01-21 15:19:58 +03:00
|
|
|
|
2017-07-21 13:27:35 +03:00
|
|
|
# Ignore devtools preferences files
|
2016-01-21 15:19:58 +03:00
|
|
|
devtools/client/preferences/**
|
2017-07-21 13:27:35 +03:00
|
|
|
devtools/shim/devtools-startup-prefs.js
|
2015-11-27 20:39:59 +03:00
|
|
|
|
2016-01-21 15:19:58 +03:00
|
|
|
# Ignore devtools third-party libs
|
2015-11-27 20:39:59 +03:00
|
|
|
devtools/shared/jsbeautify/*
|
|
|
|
devtools/shared/acorn/*
|
2017-01-04 01:47:28 +03:00
|
|
|
devtools/shared/gcli/source/*
|
2016-08-25 18:51:42 +03:00
|
|
|
devtools/shared/node-properties/*
|
2015-11-27 20:39:59 +03:00
|
|
|
devtools/shared/pretty-fast/*
|
|
|
|
devtools/shared/sourcemap/*
|
2016-08-25 18:51:42 +03:00
|
|
|
devtools/shared/sprintfjs/*
|
2015-12-10 23:46:32 +03:00
|
|
|
devtools/shared/qrcode/decoder/*
|
|
|
|
devtools/shared/qrcode/encoder/*
|
2016-05-18 01:23:07 +03:00
|
|
|
devtools/client/shared/demangle.js
|
2017-03-17 00:17:25 +03:00
|
|
|
devtools/client/shared/source-map/*
|
2015-12-10 23:46:32 +03:00
|
|
|
devtools/client/shared/vendor/*
|
2016-01-21 15:19:58 +03:00
|
|
|
devtools/client/sourceeditor/codemirror/*.js
|
|
|
|
devtools/client/sourceeditor/codemirror/**/*.js
|
2017-01-04 01:47:28 +03:00
|
|
|
devtools/client/sourceeditor/tern/*
|
2016-11-12 19:57:41 +03:00
|
|
|
devtools/client/sourceeditor/test/cm_mode_ruby.js
|
2016-01-21 15:19:58 +03:00
|
|
|
devtools/client/sourceeditor/test/codemirror/*
|
2016-03-02 18:14:16 +03:00
|
|
|
devtools/client/inspector/markup/test/lib_*
|
2016-05-18 01:23:07 +03:00
|
|
|
devtools/client/jsonview/lib/require.js
|
|
|
|
devtools/server/actors/utils/automation-timeline.js
|
|
|
|
|
|
|
|
# Ignore devtools files testing sourcemaps / code style
|
|
|
|
devtools/client/debugger/test/mochitest/code_binary_search.js
|
2017-05-30 22:08:12 +03:00
|
|
|
devtools/client/debugger/test/mochitest/code_binary_search_absolute.js
|
2016-05-18 01:23:07 +03:00
|
|
|
devtools/client/debugger/test/mochitest/code_math.min.js
|
|
|
|
devtools/client/debugger/test/mochitest/code_math_bogus_map.js
|
|
|
|
devtools/client/debugger/test/mochitest/code_ugly*
|
|
|
|
devtools/client/debugger/test/mochitest/code_worker-source-map.js
|
|
|
|
devtools/client/framework/test/code_ugly*
|
2017-05-12 23:34:26 +03:00
|
|
|
devtools/client/inspector/markup/test/events_bundle.js
|
2017-05-10 23:07:06 +03:00
|
|
|
devtools/client/netmonitor/test/xhr_bundle.js
|
2017-08-04 22:14:11 +03:00
|
|
|
devtools/client/webconsole/new-console-output/test/mochitest/code_bundle_nosource.js
|
2017-08-31 21:03:24 +03:00
|
|
|
devtools/client/webconsole/new-console-output/test/mochitest/code_bundle_invalidmap.js
|
2016-05-18 01:23:07 +03:00
|
|
|
devtools/server/tests/unit/babel_and_browserify_script_with_source_map.js
|
|
|
|
devtools/server/tests/unit/setBreakpoint*
|
2017-03-18 14:26:05 +03:00
|
|
|
devtools/server/tests/unit/sourcemapped.js
|
2015-11-27 20:39:59 +03:00
|
|
|
|
2017-02-11 05:47:57 +03:00
|
|
|
# dom/ exclusions
|
|
|
|
dom/animation/**
|
|
|
|
dom/archivereader/**
|
|
|
|
dom/asmjscache/**
|
|
|
|
dom/audiochannel/**
|
|
|
|
dom/base/**
|
|
|
|
dom/battery/**
|
|
|
|
dom/bindings/**
|
|
|
|
dom/broadcastchannel/**
|
|
|
|
dom/browser-element/**
|
|
|
|
dom/cache/**
|
|
|
|
dom/canvas/**
|
|
|
|
dom/commandhandler/**
|
|
|
|
dom/console/**
|
|
|
|
dom/crypto/**
|
|
|
|
dom/devicestorage/**
|
|
|
|
dom/encoding/**
|
|
|
|
dom/events/**
|
|
|
|
dom/fetch/**
|
|
|
|
dom/file/**
|
|
|
|
dom/filehandle/**
|
|
|
|
dom/filesystem/**
|
|
|
|
dom/flyweb/**
|
|
|
|
dom/gamepad/**
|
|
|
|
dom/geolocation/**
|
|
|
|
dom/grid/**
|
|
|
|
dom/html/**
|
|
|
|
dom/imptests/**
|
|
|
|
dom/interfaces/**
|
|
|
|
dom/ipc/**
|
|
|
|
dom/json/**
|
|
|
|
dom/jsurl/**
|
|
|
|
dom/locales/**
|
|
|
|
dom/manifest/**
|
|
|
|
dom/mathml/**
|
|
|
|
dom/media/**
|
2017-06-28 22:41:50 +03:00
|
|
|
!dom/media/*.js*
|
2017-02-11 05:47:57 +03:00
|
|
|
dom/messagechannel/**
|
|
|
|
dom/network/**
|
|
|
|
dom/notification/**
|
|
|
|
dom/offline/**
|
2017-05-25 20:50:32 +03:00
|
|
|
dom/payments/**
|
2017-02-11 05:47:57 +03:00
|
|
|
dom/performance/**
|
|
|
|
dom/permission/**
|
|
|
|
dom/plugins/**
|
|
|
|
dom/power/**
|
|
|
|
dom/presentation/**
|
|
|
|
dom/promise/**
|
|
|
|
dom/push/**
|
|
|
|
dom/quota/**
|
|
|
|
dom/res/**
|
|
|
|
dom/secureelement/**
|
|
|
|
dom/security/**
|
|
|
|
dom/smil/**
|
|
|
|
dom/storage/**
|
|
|
|
dom/svg/**
|
|
|
|
dom/system/**
|
|
|
|
dom/tests/**
|
|
|
|
dom/time/**
|
|
|
|
dom/u2f/**
|
|
|
|
dom/url/**
|
|
|
|
dom/vr/**
|
|
|
|
dom/webauthn/**
|
|
|
|
dom/webbrowserpersist/**
|
|
|
|
dom/webidl/**
|
|
|
|
dom/workers/**
|
|
|
|
dom/worklet/**
|
|
|
|
dom/xbl/**
|
|
|
|
dom/xhr/**
|
|
|
|
dom/xml/**
|
|
|
|
dom/xslt/**
|
|
|
|
dom/xul/**
|
|
|
|
|
2017-06-28 22:41:50 +03:00
|
|
|
# Third-party
|
|
|
|
dom/media/webvtt/**
|
|
|
|
|
2017-02-07 23:58:21 +03:00
|
|
|
# Exclude everything but self-hosted JS
|
|
|
|
js/ductwork/**
|
|
|
|
js/examples/**
|
|
|
|
js/ipc/**
|
|
|
|
js/public/**
|
|
|
|
js/xpconnect/**
|
|
|
|
js/src/devtools/**
|
|
|
|
js/src/octane/**
|
|
|
|
js/src/jit-test/**
|
|
|
|
js/src/tests/**
|
2017-05-10 18:56:32 +03:00
|
|
|
js/src/Y.js
|
2017-02-07 23:58:21 +03:00
|
|
|
|
2015-11-27 20:39:59 +03:00
|
|
|
# mobile/android/ exclusions
|
2017-04-27 16:52:58 +03:00
|
|
|
mobile/android/tests/browser/chrome/tp5/**
|
2015-11-27 20:39:59 +03:00
|
|
|
|
|
|
|
# Uses `#filter substitution`
|
|
|
|
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/
|
|
|
|
|
|
|
|
# Non-standard `(catch ex if ...)`
|
2016-09-15 00:18:40 +03:00
|
|
|
mobile/android/chrome/content/browser.js
|
2015-11-27 20:39:59 +03:00
|
|
|
mobile/android/components/Snippets.js
|
2015-12-01 21:06:52 +03:00
|
|
|
|
2017-02-08 15:16:27 +03:00
|
|
|
# security/ exclusions (pref files).
|
|
|
|
security/manager/ssl/security-prefs.js
|
|
|
|
|
2017-07-06 17:31:07 +03:00
|
|
|
# NSS / taskcluster only.
|
2017-02-08 15:16:27 +03:00
|
|
|
security/nss/**
|
|
|
|
|
2016-02-02 05:37:50 +03:00
|
|
|
# services/ exclusions
|
|
|
|
|
|
|
|
# Uses `#filter substitution`
|
|
|
|
services/sync/modules/constants.js
|
2017-03-02 09:14:31 +03:00
|
|
|
services/sync/services-sync.js
|
2016-02-02 05:37:50 +03:00
|
|
|
|
2017-06-24 21:01:48 +03:00
|
|
|
# Remote protocol exclusions
|
|
|
|
testing/marionette/test_*.js
|
|
|
|
testing/marionette/atom.js
|
|
|
|
testing/marionette/legacyaction.js
|
2017-07-26 17:04:51 +03:00
|
|
|
testing/marionette/client
|
|
|
|
testing/marionette/doc
|
|
|
|
testing/marionette/harness
|
2017-06-24 21:01:48 +03:00
|
|
|
|
|
|
|
# other testing/ exclusions
|
2017-05-25 16:32:42 +03:00
|
|
|
testing/mochitest/**
|
2017-06-24 00:08:02 +03:00
|
|
|
# third party modules
|
|
|
|
testing/modules/ajv-4.1.1.js
|
|
|
|
testing/modules/sinon-2.3.2.js
|
2017-05-31 01:06:29 +03:00
|
|
|
# octothorpe used for pref file comment causes parsing error
|
|
|
|
testing/mozbase/mozprofile/tests/files/prefs_with_comments.js
|
2017-06-28 15:58:01 +03:00
|
|
|
testing/talos/talos/scripts/jszip.min.js
|
2017-06-28 15:58:03 +03:00
|
|
|
testing/talos/talos/startup_test/sessionrestore/profile/sessionstore.js
|
2017-06-28 05:42:34 +03:00
|
|
|
testing/talos/talos/startup_test/sessionrestore/profile-manywindows/sessionstore.js
|
2017-06-28 15:58:01 +03:00
|
|
|
testing/talos/talos/tests/canvasmark/**
|
|
|
|
testing/talos/talos/tests/dromaeo/**
|
|
|
|
testing/talos/talos/tests/v8_7/**
|
|
|
|
testing/talos/talos/tests/kraken/**
|
|
|
|
|
2017-05-25 16:32:42 +03:00
|
|
|
testing/web-platform/**
|
|
|
|
testing/xpcshell/moz-http2/**
|
|
|
|
testing/xpcshell/node-http2/**
|
|
|
|
|
2017-01-10 20:09:02 +03:00
|
|
|
# Third party services
|
|
|
|
services/common/kinto-http-client.js
|
|
|
|
services/common/kinto-offline-client.js
|
|
|
|
services/sync/tps/extensions/mozmill
|
|
|
|
|
2015-12-03 21:02:45 +03:00
|
|
|
# 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
|
|
|
|
|
2016-03-08 20:00:47 +03:00
|
|
|
# External code:
|
2016-04-05 21:33:12 +03:00
|
|
|
toolkit/components/microformats/test/**
|
2017-02-20 14:45:58 +03:00
|
|
|
toolkit/components/microformats/microformat-shiv.js
|
2016-03-08 20:00:47 +03:00
|
|
|
toolkit/components/reader/Readability.js
|
|
|
|
toolkit/components/reader/JSDOMParser.js
|
|
|
|
|
2015-12-03 21:02:45 +03:00
|
|
|
# Uses preprocessing
|
2016-02-05 23:13:34 +03:00
|
|
|
toolkit/content/widgets/wizard.xml
|
2017-07-31 18:34:04 +03:00
|
|
|
toolkit/components/osfile/osfile.jsm
|
2015-12-03 21:02:45 +03:00
|
|
|
toolkit/components/urlformatter/nsURLFormatter.js
|
|
|
|
toolkit/modules/AppConstants.jsm
|
|
|
|
toolkit/mozapps/downloads/nsHelperAppDlg.js
|
|
|
|
toolkit/mozapps/update/tests/data/xpcshellConstantsPP.js
|
2016-02-24 17:40:55 +03:00
|
|
|
|
|
|
|
# Third party
|
|
|
|
toolkit/modules/third_party/**
|
2017-05-08 20:10:33 +03:00
|
|
|
third_party/**
|