1 # Please DO NOT add more third party files to this file.
2 # They should be added to tools/rewriting/ThirdPartyPaths.txt instead.
4 # This file should only be used for exclusions where we have:
6 # - generated files that are for some reason checked into source
7 # - intentionally invalid files
8 # - build directories and other items that we need to ignore
12 # Always ignore node_modules.
15 # Always ignore crashtests - specially crafted files that originally caused a
18 # Also ignore reftest - specially crafted to produce expected output.
22 # Exclude expected objdirs.
25 # build/ third-party code
30 browser/branding/**/firefox-branding.js
32 browser/base/content/test/general/gZipOfflineChild.html
33 browser/base/content/test/urlbar/file_blank_but_not_blank.html
34 # Test files that are really json not js, and don't need to be linted.
35 browser/components/sessionstore/test/unit/data/sessionstore_valid.js
36 browser/components/sessionstore/test/unit/data/sessionstore_invalid.js
37 # This file is split into two in order to keep it as a valid json file
38 # for documentation purposes (policies.json) but to be accessed by the
39 # code as a .jsm (schema.jsm)
40 browser/components/enterprisepolicies/schemas/schema.jsm
41 # generated & special files in cld2
42 browser/components/translation/cld2/
43 # Screenshots is imported as a system add-on and has
44 # their own lint rules currently.
45 browser/extensions/screenshots/
46 # generated or library files in pocket
47 browser/components/pocket/content/panels/js/tmpl.js
50 browser/components/newtab/aboutwelcome/content/aboutwelcome.bundle.js
51 browser/components/newtab/data/
52 browser/components/newtab/logs/
54 # The only file in browser/locales/ is pre-processed.
56 # Generated data files
57 browser/extensions/formautofill/phonenumberutils/PhoneNumberMetaData.jsm
59 # Ignore devtools debugger files which aren't intended for linting, and also
60 # aren't included in any .eslintignore or .prettierignore file.
61 # See https://github.com/firefox-devtools/debugger/blob/master/package.json#L24
62 devtools/client/debugger/configs/
63 devtools/client/debugger/dist/
64 devtools/client/debugger/flow-typed/
65 devtools/client/debugger/images/
66 devtools/client/debugger/test/
67 devtools/client/debugger/index.html
69 # Ignore devtools imported repositories
70 devtools/client/shared/components/reps/
72 # Ignore devtools preferences files
73 devtools/client/preferences/
75 # Ignore devtools generated code
76 devtools/shared/css/generated/properties-db.js
77 devtools/client/webconsole/test/node/fixtures/stubs/*.js
78 !devtools/client/webconsole/test/node/fixtures/stubs/index.js
80 # Ignore devtools files testing sourcemaps / code style
81 devtools/client/framework/test/code_*
82 devtools/client/inspector/markup/test/events_bundle.js
83 devtools/client/netmonitor/test/xhr_bundle.js
84 devtools/client/webconsole/test/browser/code_bundle_nosource.js
85 devtools/client/webconsole/test/browser/code_bundle_invalidmap.js
86 devtools/server/tests/xpcshell/setBreakpoint*
87 devtools/server/tests/xpcshell/sourcemapped.js
89 # Testing syntax error
90 devtools/client/webconsole/test/browser/test-syntaxerror-worklet.js
92 # devtools specific format test file
93 devtools/server/tests/xpcshell/xpcshell_debugging_script.js
96 dom/canvas/test/webgl-conf/generated/
98 # Intentionally invalid/not parsable
99 dom/html/test/test_bug677658.html
100 dom/svg/test/test_nonAnimStrings.xhtml
101 dom/svg/test/test_SVG_namespace_ids.html
104 dom/base/test/file_bug687859-16.js
105 dom/encoding/test/test_utf16_files.html
106 dom/encoding/test/file_utf16_be_bom.js
107 dom/encoding/test/file_utf16_le_bom.js
109 # Service workers fixtures which require specific resource caching.
110 dom/base/test/file_js_cache.js
111 dom/serviceworkers/test/file_js_cache.js
113 # Intentional broken files
114 dom/base/test/file_js_cache_syntax_error.js
115 dom/base/test/jsmodules/test_syntaxError.html
116 dom/base/test/jsmodules/test_syntaxErrorAsync.html
117 dom/base/test/jsmodules/module_badSyntax.js
118 dom/base/test/jsmodules/test_syntaxErrorInline.html
119 dom/base/test/jsmodules/test_syntaxErrorInlineAsync.html
120 dom/base/test/test_bug687859.html
121 dom/media/tests/mochitest/identity/idp-bad.js
122 dom/serviceworkers/test/file_js_cache_syntax_error.js
123 dom/serviceworkers/test/parse_error_worker.js
124 dom/tests/mochitest/bugs/test_bug531176.html
125 dom/webauthn/tests/cbor.js
126 dom/workers/test/importScripts_worker_imported3.js
127 dom/workers/test/invalid.js
128 dom/workers/test/threadErrors_worker1.js
130 # Bug 1527075: This directory is linted in github repository
133 # Exclude everything but self-hosted JS
140 js/src/jsapi-tests/binast/
144 # Fuzzing code for testing only, targeting the JS shell
147 # Uses `#filter substitution`
148 mobile/android/app/mobile.js
149 mobile/android/app/geckoview-prefs.js
151 # Not much JS to lint and non-standard at that
152 mobile/android/installer/
153 mobile/android/locales/
155 # Pre-processed/pref files
156 modules/libpref/greprefs.js
157 modules/libpref/init/all.js
158 modules/libpref/test/unit/*data/
160 # Only contains non-standard test files.
163 # These are (mainly) imported code that we don't want to lint to make imports easier.
165 remote/test/browser/chrome-remote-interface.js
167 # services/ exclusions
169 # Third party services
170 services/common/kinto-http-client.js
171 services/common/kinto-offline-client.js
173 # Webpack-bundled library
174 services/fxaccounts/FxAccountsPairingChannel.js
179 # Test files that we don't want to lint (preprocessed, minified etc)
180 testing/condprofile/condprof/tests/profile
181 testing/marionette/atom.js
182 testing/mozbase/mozprofile/tests/files/prefs_with_comments.js
183 testing/talos/talos/scripts/jszip.min.js
184 testing/talos/talos/startup_test/sessionrestore/profile/sessionstore.js
185 testing/talos/talos/startup_test/sessionrestore/profile-manywindows/sessionstore.js
186 testing/talos/talos/tests/devtools/addon/content/pages/
187 # Runing Talos may extract data here, see bug 1435677.
188 testing/talos/talos/tests/tp5n/
189 testing/talos/talos/fis/tp5n/
191 # Mainly third-party related code, that shouldn't be linted.
192 testing/web-platform/
194 # toolkit/ exclusions
196 # Ignore generated code from wasm-bindgen
197 toolkit/components/extensions/profiler_get_symbols.js
199 # Intentionally invalid JS
200 toolkit/components/workerloader/tests/moduleF-syntax-error.js
203 toolkit/components/pdfjs/content/build
204 toolkit/components/pdfjs/content/web
207 toolkit/components/reader/Readability.js
208 toolkit/components/reader/Readability-readerable.js
209 toolkit/components/reader/JSDOMParser.js
212 toolkit/components/reader/Readerable.jsm
215 toolkit/mozapps/update/tests/data/xpcshellConstantsPP.js
216 toolkit/modules/AppConstants.jsm
218 # Tests old non-star function generators
219 toolkit/modules/tests/xpcshell/test_task.js
221 # Uses special template formatting.
222 tools/tryselect/selectors/chooser/templates/chooser.html
224 # Ignore preprocessed *(P)refs.js files in update-packaging.
225 tools/update-packaging/**/*refs.js