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 and Follow-on search are imported as a system add-on and have
68 # their own lint rules currently.
69 browser/extensions/followonsearch/**
70 browser/extensions/screenshots/**
71 browser/extensions/pdfjs/content/build**
72 browser/extensions/pdfjs/content/web**
73 # generated or library files in pocket
74 browser/extensions/pocket/content/panels/js/tmpl.js
75 browser/extensions/pocket/content/panels/js/vendor/**
77 # generated or library files in activity-stream
78 browser/extensions/activity-stream/data/content/activity-stream.bundle.js
79 browser/extensions/activity-stream/vendor/**
80 # imported from chromium
81 browser/extensions/mortar/**
83 # devtools/ exclusions
84 devtools/client/canvasdebugger/**
85 devtools/client/commandline/**
86 devtools/client/debugger/**
87 devtools/client/framework/**
88 !devtools/client/framework/devtools.js
89 !devtools/client/framework/devtools-browser.js
90 !devtools/client/framework/selection.js
91 !devtools/client/framework/target*
92 !devtools/client/framework/toolbox*
93 devtools/client/inspector/markup/test/doc_markup_events_*.html
94 devtools/client/inspector/rules/test/doc_media_queries.html
95 devtools/client/memory/test/chrome/*.html
96 devtools/client/performance/components/test/test_jit_optimizations_01.html
97 devtools/client/projecteditor/**
98 devtools/client/responsive.html/test/browser/touch.html
99 devtools/client/responsivedesign/**
100 !devtools/client/responsivedesign/responsivedesign.jsm
101 devtools/client/scratchpad/**
102 devtools/client/shadereditor/**
103 devtools/client/shared/*.jsm
104 devtools/client/shared/components/reps/reps.js
105 devtools/client/shared/components/reps/test/mochitest/*.html
106 !devtools/client/shared/components/reps/test/mochitest/test_reps_infinity.html
107 !devtools/client/shared/components/reps/test/mochitest/test_reps_nan.html
108 !devtools/client/shared/components/reps/test/mochitest/test_reps_promise.html
109 !devtools/client/shared/components/reps/test/mochitest/test_reps_symbol.html
110 !devtools/client/shared/components/reps/test/mochitest/test_reps_text-node.html
111 devtools/client/shared/components/test/mochitest/*.html
112 !devtools/client/shared/components/test/mochitest/test_stack-trace.html
113 devtools/client/shared/shim/test/test_*.html
114 devtools/client/shared/test/browser_toolbar_webconsole_errors_count.html
115 devtools/client/shared/webgl-utils.js
116 devtools/client/shared/widgets/*.jsm
117 devtools/client/storage/test/*.html
118 !devtools/client/storage/test/storage-cookies.html
119 !devtools/client/storage/test/storage-overflow.html
120 !devtools/client/storage/test/storage-search.html
121 !devtools/client/storage/test/storage-unsecured-iframe.html
122 !devtools/client/storage/test/storage-unsecured-iframe-usercontextid.html
123 devtools/client/webaudioeditor/**
124 devtools/client/webconsole/net/**
125 devtools/client/webconsole/test/**
126 devtools/client/webconsole/hudservice.js
127 devtools/client/webconsole/webconsole-connection-proxy.js
128 devtools/client/webconsole/webconsole.js
129 devtools/client/webide/**
130 !devtools/client/webide/components/webideCli.js
131 devtools/server/tests/browser/storage-*.html
132 !devtools/server/tests/browser/storage-unsecured-iframe.html
133 devtools/server/tests/browser/stylesheets-nested-iframes.html
134 devtools/server/tests/unit/xpcshell_debugging_script.js
135 devtools/shared/platform/content/test/test_clipboard.html
136 devtools/shared/qrcode/tests/mochitest/test_decode.html
137 devtools/shared/tests/mochitest/*.html
138 devtools/shared/webconsole/test/test_*.html
140 # Ignore devtools pre-processed files
141 devtools/client/framework/toolbox-process-window.js
142 devtools/client/performance/system.js
143 devtools/client/webide/webide-prefs.js
144 devtools/client/preferences/**
146 # Ignore devtools third-party libs
147 devtools/shared/jsbeautify/*
148 devtools/shared/acorn/*
149 devtools/shared/gcli/source/*
150 devtools/shared/node-properties/*
151 devtools/shared/pretty-fast/*
152 devtools/shared/sourcemap/*
153 devtools/shared/sprintfjs/*
154 devtools/shared/qrcode/decoder/*
155 devtools/shared/qrcode/encoder/*
156 devtools/client/shared/demangle.js
157 devtools/client/shared/source-map/*
158 devtools/client/shared/vendor/*
159 devtools/client/sourceeditor/codemirror/*.js
160 devtools/client/sourceeditor/codemirror/**/*.js
161 devtools/client/sourceeditor/tern/*
162 devtools/client/sourceeditor/test/cm_mode_ruby.js
163 devtools/client/sourceeditor/test/codemirror/*
164 devtools/client/inspector/markup/test/lib_*
165 devtools/client/jsonview/lib/require.js
166 devtools/server/actors/utils/automation-timeline.js
168 # Ignore devtools files testing sourcemaps / code style
169 devtools/client/debugger/test/mochitest/code_binary_search.js
170 devtools/client/debugger/test/mochitest/code_binary_search_absolute.js
171 devtools/client/debugger/test/mochitest/code_math.min.js
172 devtools/client/debugger/test/mochitest/code_math_bogus_map.js
173 devtools/client/debugger/test/mochitest/code_ugly*
174 devtools/client/debugger/test/mochitest/code_worker-source-map.js
175 devtools/client/framework/test/code_ugly*
176 devtools/client/inspector/markup/test/events_bundle.js
177 devtools/client/netmonitor/test/xhr_bundle.js
178 devtools/server/tests/unit/babel_and_browserify_script_with_source_map.js
179 devtools/server/tests/unit/setBreakpoint*
180 devtools/server/tests/unit/sourcemapped.js
190 dom/broadcastchannel/**
191 dom/browser-element/**
194 dom/commandhandler/**
218 dom/messagechannel/**
244 dom/webbrowserpersist/**
254 # Exclude everything but self-hosted JS
266 # mobile/android/ exclusions
267 mobile/android/tests/browser/chrome/tp5/**
269 # Uses `#filter substitution`
270 mobile/android/b2gdroid/app/b2gdroid.js
271 mobile/android/app/mobile.js
272 mobile/android/chrome/content/healthreport-prefs.js
275 mobile/android/chrome/content/about.js
277 # Not much JS to lint and non-standard at that
278 mobile/android/installer/
279 mobile/android/locales/
281 # Non-standard `(catch ex if ...)`
282 mobile/android/chrome/content/browser.js
283 mobile/android/components/Snippets.js
285 # Bug 1178739: Ignore this file as a quick fix for "Illegal yield expression"
286 mobile/android/modules/HomeProvider.jsm
288 # security/ exclusions (pref files).
289 security/manager/ssl/security-prefs.js
294 # services/ exclusions
296 # Uses `#filter substitution`
297 services/sync/modules/constants.js
298 services/sync/services-sync.js
300 # testing/ exclusions
301 testing/marionette/**
304 # octothorpe used for pref file comment causes parsing error
305 testing/mozbase/mozprofile/tests/files/prefs_with_comments.js
307 testing/web-platform/**
308 testing/xpcshell/moz-http2/**
309 testing/xpcshell/node-http2/**
311 # Third party services
312 services/common/kinto-http-client.js
313 services/common/kinto-offline-client.js
314 services/sync/tps/extensions/mozmill
316 # toolkit/ exclusions
318 # Not part of the default build
319 toolkit/components/help/**
321 # Intentionally invalid JS
322 toolkit/components/workerloader/tests/moduleF-syntax-error.js
324 # Tests old non-star function generators
325 toolkit/modules/tests/xpcshell/test_task.js
328 toolkit/components/osfile/**
331 toolkit/components/microformats/test/**
332 toolkit/components/microformats/microformat-shiv.js
333 toolkit/components/reader/Readability.js
334 toolkit/components/reader/JSDOMParser.js
337 toolkit/content/widgets/wizard.xml
338 toolkit/components/jsdownloads/src/DownloadIntegration.jsm
339 toolkit/components/url-classifier/**
340 toolkit/components/urlformatter/nsURLFormatter.js
341 toolkit/modules/AppConstants.jsm
342 toolkit/mozapps/downloads/nsHelperAppDlg.js
343 toolkit/mozapps/extensions/internal/AddonConstants.jsm
344 toolkit/mozapps/update/tests/data/xpcshellConstantsPP.js
348 toolkit/modules/third_party/**