1 # Always ignore node_modules.
4 # Exclude expected objdirs.
7 # We ignore all these directories by default, until we get them enabled.
8 # If you are enabling a directory, please add directory specific exclusions
40 tools/update-packaging/**
48 # b2g exclusions (pref files).
50 b2g/graphene/graphene.js
51 b2g/locales/en-US/b2g-l10n.js
55 browser/branding/**/firefox-branding.js
56 browser/base/content/test/general/file_csp_block_all_mixedcontent.html
58 browser/base/content/test/general/gZipOfflineChild.html
59 browser/base/content/test/urlbar/file_blank_but_not_blank.html
60 browser/base/content/newtab/**
61 # Test files that are really json not js, and don't need to be linted.
62 browser/components/sessionstore/test/unit/data/sessionstore_valid.js
63 browser/components/sessionstore/test/unit/data/sessionstore_invalid.js
64 browser/components/tabview/**
65 # generated & special files in cld2
66 browser/components/translation/cld2/**
67 # Screenshots is imported as a system add-on and has its own lint rules currently.
68 browser/extensions/screenshots/**
69 browser/extensions/pdfjs/content/build**
70 browser/extensions/pdfjs/content/web**
71 # generated or library files in pocket
72 browser/extensions/pocket/content/panels/js/tmpl.js
73 browser/extensions/pocket/content/panels/js/vendor/**
75 # generated or library files in activity-stream
76 browser/extensions/activity-stream/data/content/activity-stream.bundle.js
77 browser/extensions/activity-stream/vendor/**
78 # imported from chromium
79 browser/extensions/mortar/**
81 # devtools/ exclusions
82 devtools/client/canvasdebugger/**
83 devtools/client/commandline/**
84 devtools/client/debugger/**
85 devtools/client/framework/**
86 !devtools/client/framework/devtools.js
87 !devtools/client/framework/devtools-browser.js
88 !devtools/client/framework/selection.js
89 !devtools/client/framework/target*
90 !devtools/client/framework/toolbox*
91 devtools/client/inspector/markup/test/doc_markup_events_*.html
92 devtools/client/inspector/rules/test/doc_media_queries.html
93 devtools/client/memory/test/chrome/*.html
94 devtools/client/performance/components/test/test_jit_optimizations_01.html
95 devtools/client/projecteditor/**
96 devtools/client/responsive.html/test/browser/touch.html
97 devtools/client/responsivedesign/**
98 !devtools/client/responsivedesign/responsivedesign.jsm
99 devtools/client/scratchpad/**
100 devtools/client/shadereditor/**
101 devtools/client/shared/*.jsm
102 devtools/client/shared/components/reps/reps.js
103 devtools/client/shared/components/reps/test/mochitest/*.html
104 !devtools/client/shared/components/reps/test/mochitest/test_reps_infinity.html
105 !devtools/client/shared/components/reps/test/mochitest/test_reps_nan.html
106 !devtools/client/shared/components/reps/test/mochitest/test_reps_promise.html
107 !devtools/client/shared/components/reps/test/mochitest/test_reps_symbol.html
108 !devtools/client/shared/components/reps/test/mochitest/test_reps_text-node.html
109 devtools/client/shared/components/test/mochitest/*.html
110 !devtools/client/shared/components/test/mochitest/test_stack-trace.html
111 devtools/client/shared/shim/test/test_*.html
112 devtools/client/shared/test/browser_toolbar_webconsole_errors_count.html
113 devtools/client/shared/webgl-utils.js
114 devtools/client/shared/widgets/*.jsm
115 devtools/client/storage/test/*.html
116 !devtools/client/storage/test/storage-cookies.html
117 !devtools/client/storage/test/storage-overflow.html
118 !devtools/client/storage/test/storage-search.html
119 !devtools/client/storage/test/storage-unsecured-iframe.html
120 !devtools/client/storage/test/storage-unsecured-iframe-usercontextid.html
121 devtools/client/webaudioeditor/**
122 devtools/client/webconsole/net/**
123 devtools/client/webconsole/test/**
124 devtools/client/webconsole/hudservice.js
125 devtools/client/webconsole/webconsole-connection-proxy.js
126 devtools/client/webconsole/webconsole.js
127 devtools/client/webide/**
128 !devtools/client/webide/components/webideCli.js
129 devtools/server/tests/browser/storage-*.html
130 !devtools/server/tests/browser/storage-unsecured-iframe.html
131 devtools/server/tests/browser/stylesheets-nested-iframes.html
132 devtools/server/tests/unit/xpcshell_debugging_script.js
133 devtools/shared/platform/content/test/test_clipboard.html
134 devtools/shared/qrcode/tests/mochitest/test_decode.html
135 devtools/shared/tests/mochitest/*.html
136 devtools/shared/webconsole/test/test_*.html
138 # Ignore devtools pre-processed files
139 devtools/client/framework/toolbox-process-window.js
140 devtools/client/performance/system.js
141 devtools/client/webide/webide-prefs.js
142 devtools/client/preferences/**
144 # Ignore devtools third-party libs
145 devtools/shared/jsbeautify/*
146 devtools/shared/acorn/*
147 devtools/shared/gcli/source/*
148 devtools/shared/node-properties/*
149 devtools/shared/pretty-fast/*
150 devtools/shared/sourcemap/*
151 devtools/shared/sprintfjs/*
152 devtools/shared/qrcode/decoder/*
153 devtools/shared/qrcode/encoder/*
154 devtools/client/shared/demangle.js
155 devtools/client/shared/source-map/*
156 devtools/client/shared/vendor/*
157 devtools/client/sourceeditor/codemirror/*.js
158 devtools/client/sourceeditor/codemirror/**/*.js
159 devtools/client/sourceeditor/tern/*
160 devtools/client/sourceeditor/test/cm_mode_ruby.js
161 devtools/client/sourceeditor/test/codemirror/*
162 devtools/client/inspector/markup/test/lib_*
163 devtools/client/jsonview/lib/require.js
164 devtools/server/actors/utils/automation-timeline.js
166 # Ignore devtools files testing sourcemaps / code style
167 devtools/client/debugger/test/mochitest/code_binary_search.js
168 devtools/client/debugger/test/mochitest/code_math.min.js
169 devtools/client/debugger/test/mochitest/code_math_bogus_map.js
170 devtools/client/debugger/test/mochitest/code_ugly*
171 devtools/client/debugger/test/mochitest/code_worker-source-map.js
172 devtools/client/framework/test/code_ugly*
173 devtools/client/inspector/markup/test/events_bundle.js
174 devtools/client/netmonitor/test/xhr_bundle.js
175 devtools/server/tests/unit/babel_and_browserify_script_with_source_map.js
176 devtools/server/tests/unit/setBreakpoint*
177 devtools/server/tests/unit/sourcemapped.js
187 dom/broadcastchannel/**
188 dom/browser-element/**
191 dom/commandhandler/**
215 dom/messagechannel/**
241 dom/webbrowserpersist/**
251 # Exclude everything but self-hosted JS
263 # mobile/android/ exclusions
264 mobile/android/tests/browser/chrome/tp5/**
266 # Uses `#filter substitution`
267 mobile/android/b2gdroid/app/b2gdroid.js
268 mobile/android/app/mobile.js
269 mobile/android/chrome/content/healthreport-prefs.js
272 mobile/android/chrome/content/about.js
274 # Not much JS to lint and non-standard at that
275 mobile/android/installer/
276 mobile/android/locales/
278 # Non-standard `(catch ex if ...)`
279 mobile/android/chrome/content/browser.js
280 mobile/android/components/Snippets.js
282 # Bug 1178739: Ignore this file as a quick fix for "Illegal yield expression"
283 mobile/android/modules/HomeProvider.jsm
285 # security/ exclusions (pref files).
286 security/manager/ssl/security-prefs.js
291 # services/ exclusions
293 # Uses `#filter substitution`
294 services/sync/modules/constants.js
295 services/sync/services-sync.js
297 # testing/ exclusions
298 testing/firefox-ui/**
299 testing/marionette/**
304 testing/specialpowers/**
306 testing/web-platform/**
307 testing/xpcshell/moz-http2/**
308 testing/xpcshell/node-http2/**
310 # Third party services
311 services/common/kinto-http-client.js
312 services/common/kinto-offline-client.js
313 services/sync/tps/extensions/mozmill
315 # toolkit/ exclusions
317 # Not part of the default build
318 toolkit/components/help/**
320 # Intentionally invalid JS
321 toolkit/components/workerloader/tests/moduleF-syntax-error.js
323 # Tests old non-star function generators
324 toolkit/modules/tests/xpcshell/test_task.js
327 toolkit/components/osfile/**
330 toolkit/components/microformats/test/**
331 toolkit/components/microformats/microformat-shiv.js
332 toolkit/components/reader/Readability.js
333 toolkit/components/reader/JSDOMParser.js
336 toolkit/content/widgets/wizard.xml
337 toolkit/components/jsdownloads/src/DownloadIntegration.jsm
338 toolkit/components/url-classifier/**
339 toolkit/components/urlformatter/nsURLFormatter.js
340 toolkit/modules/AppConstants.jsm
341 toolkit/mozapps/downloads/nsHelperAppDlg.js
342 toolkit/mozapps/extensions/internal/AddonConstants.jsm
343 toolkit/mozapps/update/tests/data/xpcshellConstantsPP.js
347 toolkit/modules/third_party/**