1 # Please DO NOT add more third party files to this file.
2 # They should be added to tools/rewriting/ThirdPartyPaths.txt instead.
4 # Please also DO NOT add generated files that are for some reason checked
5 # into source - add them to tools/rewriting/Generated.txt instead.
7 # This file should only be used for exclusions where we have:
9 # - intentionally invalid files
10 # - build directories and other items that we need to ignore
12 # Include all js dot files.
18 # Always ignore node_modules.
21 # Always ignore crashtests - specially crafted files that originally caused a
25 # Also ignore reftest - specially crafted to produce expected output.
28 # Don't ignore the reftest harness files.
29 !/layout/tools/reftest/
31 # Exclude expected objdirs.
34 # build/ third-party code
39 browser/branding/**/firefox-branding.js
41 browser/base/content/test/general/gZipOfflineChild.html
42 browser/base/content/test/urlbar/file_blank_but_not_blank.html
43 # Test files that are really json not js, and don't need to be linted.
44 browser/components/sessionstore/test/unit/data/sessionstore_valid.js
45 browser/components/sessionstore/test/unit/data/sessionstore_invalid.js
46 # This file is split into two in order to keep it as a valid json file
47 # for documentation purposes (policies.json) but to be accessed by the
48 # code as a .sys.mjs (schema.sys.mjs)
49 browser/components/enterprisepolicies/schemas/schema.sys.mjs
50 # generated or library files in pocket
51 browser/components/pocket/content/panels/js/tmpl.js
52 browser/components/pocket/content/panels/js/vendor.bundle.js
53 browser/components/pocket/content/panels/js/main.bundle.js
54 # Include the Storybook config files.
55 !browser/components/storybook/.storybook/
56 !browser/components/storybook/.storybook/*.js
59 browser/components/newtab/data/
60 browser/components/newtab/logs/
62 # Ignore webpack about:welcome files
63 browser/components/aboutwelcome/webpack.aboutwelcome.config.js
65 # The only file in browser/locales/ is pre-processed.
67 # Generated data files
68 browser/extensions/formautofill/phonenumberutils/PhoneNumberMetaData.jsm
70 # Ignore devtools debugger files which aren't intended for linting, and also
71 # aren't included in any .eslintignore or .prettierignore file.
72 # See https://github.com/firefox-devtools/debugger/blob/master/package.json#L24
73 devtools/client/debugger/bin/
74 devtools/client/debugger/configs/
75 devtools/client/debugger/dist/
76 devtools/client/debugger/images/
77 devtools/client/debugger/packages/
78 devtools/client/debugger/test/mochitest/examples/
79 devtools/client/debugger/index.html
80 devtools/client/debugger/webpack.config.js
82 # Ignore devtools preferences files
83 devtools/client/preferences/
85 # Ignore devtools generated code
86 devtools/client/webconsole/test/node/fixtures/stubs/*.js
87 !devtools/client/webconsole/test/node/fixtures/stubs/index.js
88 devtools/client/shared/components/test/node/stubs/reps/*.js
89 devtools/client/shared/source-map-loader/test/browser/fixtures/*.js
91 # Ignore devtools files testing sourcemaps / code style
92 devtools/client/framework/test/code_*
93 devtools/client/inspector/markup/test/events_bundle.js
94 devtools/client/netmonitor/test/xhr_bundle.js
95 devtools/client/webconsole/test/browser/code_bundle_nosource.js
96 devtools/client/webconsole/test/browser/code_bundle_invalidmap.js
97 devtools/client/webconsole/test/browser/test-autocomplete-mapped.js
98 devtools/client/webconsole/test/browser/test-autocomplete-mapped.src.js
99 devtools/client/inspector/markup/test/shadowdom_open_debugger.min.js
100 devtools/client/webconsole/test/browser/test-click-function-to-source*.js
101 devtools/client/webconsole/test/browser/test-external-script-errors.js
102 devtools/client/webconsole/test/browser/test-mangled-function.*
103 devtools/client/webconsole/test/browser/test-message-categories-canvas-css.js
104 devtools/client/webconsole/test/browser/test-message-categories-empty-getelementbyid.js
105 devtools/client/webconsole/test/browser/test-sourcemap*.js
106 devtools/server/tests/xpcshell/setBreakpoint*
107 devtools/server/tests/xpcshell/sourcemapped.js
109 # Ignore generated code from wasm-bindgen
110 devtools/client/performance-new/shared/profiler_get_symbols.js
112 # Testing syntax error
113 devtools/client/aboutdebugging/test/browser/resources/bad-extensions/invalid-json/manifest.json
114 devtools/client/jsonview/test/invalid_json.json
115 devtools/client/webconsole/test/browser/test-syntaxerror-worklet.js
117 # devtools specific format test file
118 devtools/server/tests/xpcshell/xpcshell_debugging_script.js
119 devtools/shared/webconsole/test/browser/data.json
122 dom/canvas/test/webgl-conf/generated/
124 # Intentionally invalid/not parsable
125 dom/html/test/test_bug677658.html
126 dom/svg/test/test_nonAnimStrings.xhtml
127 dom/svg/test/test_SVG_namespace_ids.html
130 dom/base/test/file_bug687859-16.js
131 dom/base/test/file_bug707142_bom.json
132 dom/base/test/file_bug707142_utf-16.json
133 dom/encoding/test/test_utf16_files.html
134 dom/encoding/test/file_utf16_be_bom.js
135 dom/encoding/test/file_utf16_le_bom.js
137 # Service workers fixtures which require specific resource caching.
138 dom/base/test/file_js_cache.js
139 dom/serviceworkers/test/file_js_cache.js
141 # Intentional broken files
142 dom/base/test/file_js_cache_syntax_error.js
143 dom/base/test/jsmodules/test_scriptNotParsedAsModule.html
144 dom/base/test/jsmodules/test_syntaxError.html
145 dom/base/test/jsmodules/test_syntaxErrorAsync.html
146 dom/base/test/jsmodules/module_badSyntax.mjs
147 dom/base/test/jsmodules/test_syntaxErrorInline.html
148 dom/base/test/jsmodules/test_syntaxErrorInlineAsync.html
149 dom/base/test/test_bug687859.html
150 dom/media/webrtc/tests/mochitests/identity/idp-bad.js
151 dom/security/test/general/file_nonscript.json
152 dom/serviceworkers/test/file_js_cache_syntax_error.js
153 dom/serviceworkers/test/parse_error_worker.js
154 dom/tests/mochitest/bugs/test_bug531176.html
155 dom/webauthn/tests/cbor.js
156 dom/workers/test/importScripts_worker_imported3.js
157 dom/workers/test/invalid.js
158 dom/workers/test/threadErrors_worker1.js
160 # Tests the module loader's path handling.
161 # Dynamic imports contains non-optimal paths.
162 dom/workers/test/xpcshell/data/base_uri_worker.js
163 dom/workers/test/xpcshell/data/base_uri_module.mjs
165 # Bug 1527075: This directory is linted in github repository
168 # Exclude everything but self-hosted JS
176 # Changes to XPConnect tests must be carefully audited.
177 js/xpconnect/tests/mochitest/
178 js/xpconnect/tests/unit/
180 # Fuzzing code for testing only, targeting the JS shell
184 mobile/android/docs/geckoview/assets/js/search-data.json
186 # Uses `#filter substitution`
187 mobile/android/app/geckoview-prefs.js
189 # Not much JS to lint and non-standard at that
190 mobile/android/installer/
191 mobile/android/locales/
193 # TODO - Bug 1881094: temporarily ignored for firefox-android migration
194 mobile/android/android-components/components/browser/engine-system/src/main/res/raw/domain_blocklist.json
195 mobile/android/android-components/components/browser/engine-system/src/main/res/raw/domain_safelist.json
196 mobile/android/android-components/components/browser/errorpages/src/main/assets/errorPageScripts.js
197 mobile/android/android-components/components/browser/errorpages/src/main/assets/error_page_js.html
198 mobile/android/android-components/components/browser/icons/src/main/assets/extensions/browser-icons/icons.js
199 mobile/android/android-components/components/browser/session-storage/src/androidTest/assets/index.html
200 mobile/android/android-components/components/concept/engine/src/test/resources/manifests/example_mdn.json
201 mobile/android/android-components/components/concept/engine/src/test/resources/manifests/invalid_json.json
202 mobile/android/android-components/components/concept/engine/src/test/resources/manifests/spec_typical.json
203 mobile/android/android-components/components/concept/engine/src/test/resources/manifests/twitter_mobile.json
204 mobile/android/android-components/components/feature/accounts/src/main/assets/extensions/fxawebchannel/background.js
205 mobile/android/android-components/components/feature/accounts/src/main/assets/extensions/fxawebchannel/fxawebchannel.js
206 mobile/android/android-components/components/feature/addons/src/test/resources/collection.json
207 mobile/android/android-components/components/feature/addons/src/test/resources/collection_with_empty_values.json
208 mobile/android/android-components/components/feature/addons/src/test/resources/localized_collection.json
209 mobile/android/android-components/components/feature/readerview/src/main/assets/extensions/readerview/
210 mobile/android/android-components/components/feature/search/src/main/assets/extensions/ads/adsTelemetry.js
211 mobile/android/android-components/components/feature/search/src/main/assets/extensions/search/searchTelemetry.js
212 mobile/android/android-components/components/feature/webcompat-reporter/src/main/assets/
213 mobile/android/android-components/components/feature/webcompat/src/main/assets/extensions/webcompat/
214 mobile/android/android-components/samples/browser/src/main/assets/extensions/test/background.js
215 mobile/android/fenix/app/src/androidTest/assets/
216 mobile/android/fenix/app/src/androidTest/java/org/mozilla/fenix/syncintegration/
217 mobile/android/fenix/app/src/main/assets/
218 mobile/android/focus-android/app/src/androidTest/assets/
219 mobile/android/android-components/docs/assets/js/icon-js.js
221 # Pre-processed/pref files
222 modules/libpref/greprefs.js
223 modules/libpref/init/all.js
224 modules/libpref/test/unit/*data/
225 toolkit/components/backgroundtasks/defaults/backgroundtasks.js
226 toolkit/components/backgroundtasks/defaults/backgroundtasks_browser.js
228 # Only contains non-standard test files.
231 # These are (mainly) imported code that we don't want to lint to make imports easier.
232 remote/cdp/Protocol.sys.mjs
233 remote/cdp/test/browser/chrome-remote-interface.js
234 remote/marionette/atom.sys.mjs
236 # This file explicitly has a syntax error and cannot be parsed by eslint.
237 remote/shared/messagehandler/test/browser/resources/modules/root/invalid.sys.mjs
239 # services/ exclusions
241 # Webpack-bundled library
242 services/fxaccounts/FxAccountsPairingChannel.sys.mjs
247 # Test files that we don't want to lint (preprocessed, minified etc)
248 testing/condprofile/condprof/tests/profile
249 testing/mozbase/mozprofile/tests/files/prefs_with_comments.js
250 testing/mozharness/configs/test/test_malformed.json
251 testing/talos/talos/startup_test/sessionrestore/profile/sessionstore.js
252 testing/talos/talos/startup_test/sessionrestore/profile-manywindows/sessionstore.js
254 testing/talos/talos/unittests/test_talosconfig_browser_config.json
255 testing/talos/talos/unittests/test_talosconfig_test_config.json
256 # Runing Talos may extract data here, see bug 1435677.
257 testing/talos/talos/tests/tp5n/
258 testing/talos/talos/fis/tp5n/
260 # Mainly third-party related code, that shouldn't be linted.
261 testing/web-platform/
263 # toolkit/ exclusions
265 # Intentionally invalid files
266 toolkit/components/workerloader/tests/moduleF-syntax-error.js
267 toolkit/components/enterprisepolicies/tests/browser/config_broken_json.json
268 toolkit/mozapps/extensions/test/xpcshell/data/test_AddonRepository_fail.json
271 toolkit/components/pdfjs/content/build
272 toolkit/components/pdfjs/content/web
275 toolkit/components/reader/Readerable.sys.mjs
277 # Generated & special files in cld2
278 toolkit/components/translation/cld2/
281 toolkit/mozapps/update/tests/data/xpcshellConstantsPP.js
282 toolkit/modules/AppConstants.sys.mjs
284 # Tests of ESLint command.
285 tools/lint/test/files
287 # Uses special template formatting.
288 tools/tryselect/selectors/chooser/templates/chooser.html
290 # Ignore preprocessed *(P)refs.js files in update-packaging.
291 tools/update-packaging/**/*refs.js
293 # Ignore pre-generated webpack and typescript transpiled files for translations
294 browser/extensions/translations/extension/
296 # "scaffolding" used by uniffi which isn't valid JS in its original form.
297 toolkit/components/uniffi-bindgen-gecko-js/src/templates/js/
298 toolkit/components/uniffi-bindgen-gecko-js/components/generated/*
300 # Test files for circular import in modules.
301 dom/base/test/jsmodules/import_circular.mjs
302 dom/base/test/jsmodules/import_circular_1.mjs