Bug 1833114 - Simplify marking code now |stack| represents the mark stack for the...
[gecko.git] / .prettierignore
blobac4b9b46ac8062b25fa4faa54ee8f34e70be9a74
1 # Exclude everything by default, then include all the formats we support.
2 *.*
3 !*.js
4 !*.jsm
5 !*.json
6 !*.jsx
7 !*.mjs
8 !*.sjs
10 # Not currently enabled, but planning to soon.
11 # !*.html
12 # !*.xhtml
14 # This should be re-enabled in bug 1827456.
15 js/src/builtin
17 # Don't format README files.
18 README
20 # Ignore build files which are used for generating toolchains. Whitespace changes
21 # here would trigger new toolchains.
22 build/build-clang/**
24 # Ignore testing pref files which aren't parsed normally.
25 testing/profiles/**/user.js
27 # Ignore CORS fixtures which require specific resource hashes.
28 dom/security/test/sri/script*
30 # Files that are intentionally broken for tests.
31 dom/base/test/file_bug687859-charset.js
32 dom/base/test/file_bug687859-inherit.js
33 parser/htmlparser/tests/mochitest/broken_xml.xhtml
34 parser/htmlparser/tests/mochitest/test_bug563322.xhtml
36 # Files that are specific formats/layouts for tests.
37 devtools/client/debugger/src/**/fixtures/**
39 # Imported files where we don't want to change the format, but we do want ESLint
40 # to keep an eye on them (hence not in Generated.txt/ThirdPartyFiles.txt)
41 devtools/shared/plural-form.js
42 toolkit/components/formautofill/shared/CreditCardRuleset.sys.mjs
44 ##############################################################################
45 # The list below is copied from .eslintignore. Prettier doesn't currently
46 # support multiple ignore files or dynamic ignore configurations.
47 # When this is implemented, we'll update the configuration below (bug 1825508)
48 ##############################################################################
50 # Always ignore crashtests - specially crafted files that originally caused a
51 # crash.
52 **/crashtests/
53 # Also ignore reftest - specially crafted to produce expected output.
54 **/reftest/
55 **/reftests/
57 # Exclude expected objdirs.
58 obj*/
60 # build/ third-party code
61 build/pgo/js-input/
63 # browser/ exclusions
64 browser/app/
65 browser/branding/**/firefox-branding.js
66 # Gzipped test file.
67 browser/base/content/test/general/gZipOfflineChild.html
68 browser/base/content/test/urlbar/file_blank_but_not_blank.html
69 # Test files that are really json not js, and don't need to be linted.
70 browser/components/sessionstore/test/unit/data/sessionstore_valid.js
71 browser/components/sessionstore/test/unit/data/sessionstore_invalid.js
72 # This file is split into two in order to keep it as a valid json file
73 # for documentation purposes (policies.json) but to be accessed by the
74 # code as a .sys.mjs (schema.sys.mjs)
75 browser/components/enterprisepolicies/schemas/schema.sys.mjs
76 # generated or library files in pocket
77 browser/components/pocket/content/panels/js/tmpl.js
78 browser/components/pocket/content/panels/js/vendor.bundle.js
79 browser/components/pocket/content/panels/js/main.bundle.js
80 # Include the Storybook config files.
81 !browser/components/storybook/.storybook/
82 !browser/components/storybook/.storybook/*.js
84 # Ignore newtab files
85 browser/components/newtab/aboutwelcome/content/aboutwelcome.bundle.js
86 browser/components/newtab/data/
87 browser/components/newtab/logs/
89 # The only file in browser/locales/ is pre-processed.
90 browser/locales/
91 # Generated data files
92 browser/extensions/formautofill/phonenumberutils/PhoneNumberMetaData.jsm
94 # Ignore devtools debugger files which aren't intended for linting, and also
95 # aren't included in any .eslintignore or .prettierignore file.
96 # See https://github.com/firefox-devtools/debugger/blob/master/package.json#L24
97 devtools/client/debugger/bin/
98 devtools/client/debugger/configs/
99 devtools/client/debugger/dist/
100 devtools/client/debugger/images/
101 devtools/client/debugger/packages/
102 devtools/client/debugger/test/mochitest/examples/
103 devtools/client/debugger/index.html
104 devtools/client/debugger/webpack.config.js
106 # Ignore devtools preferences files
107 devtools/client/preferences/
109 # Ignore devtools generated code
110 devtools/shared/css/generated/properties-db.js
111 devtools/client/webconsole/test/node/fixtures/stubs/*.js
112 !devtools/client/webconsole/test/node/fixtures/stubs/index.js
113 devtools/client/shared/components/test/node/stubs/reps/*.js
114 devtools/client/shared/source-map-loader/test/browser/fixtures/*.js
116 # Ignore devtools files testing sourcemaps / code style
117 devtools/client/framework/test/code_*
118 devtools/client/inspector/markup/test/events_bundle.js
119 devtools/client/netmonitor/test/xhr_bundle.js
120 devtools/client/webconsole/test/browser/code_bundle_nosource.js
121 devtools/client/webconsole/test/browser/code_bundle_invalidmap.js
122 devtools/client/webconsole/test/browser/test-autocomplete-mapped.js
123 devtools/client/webconsole/test/browser/test-autocomplete-mapped.src.js
124 devtools/client/inspector/markup/test/shadowdom_open_debugger.min.js
125 devtools/client/webconsole/test/browser/test-click-function-to-source*.js
126 devtools/client/webconsole/test/browser/test-external-script-errors.js
127 devtools/client/webconsole/test/browser/test-mangled-function.*
128 devtools/client/webconsole/test/browser/test-message-categories-canvas-css.js
129 devtools/client/webconsole/test/browser/test-message-categories-empty-getelementbyid.js
130 devtools/client/webconsole/test/browser/test-sourcemap*.js
131 devtools/server/tests/xpcshell/setBreakpoint*
132 devtools/server/tests/xpcshell/sourcemapped.js
134 # Ignore generated code from wasm-bindgen
135 devtools/client/performance-new/shared/profiler_get_symbols.js
137 # Testing syntax error
138 devtools/client/aboutdebugging/test/browser/resources/bad-extensions/invalid-json/manifest.json
139 devtools/client/jsonview/test/invalid_json.json
140 devtools/client/webconsole/test/browser/test-syntaxerror-worklet.js
142 # devtools specific format test file
143 devtools/server/tests/xpcshell/xpcshell_debugging_script.js
144 devtools/shared/webconsole/test/browser/data.json
146 # Generated
147 dom/canvas/test/webgl-conf/generated/
149 # Intentionally invalid/not parsable
150 dom/html/test/test_bug677658.html
151 dom/svg/test/test_nonAnimStrings.xhtml
152 dom/svg/test/test_SVG_namespace_ids.html
154 # Strange encodings
155 dom/base/test/file_bug687859-16.js
156 dom/base/test/file_bug707142_utf-16.json
157 dom/encoding/test/test_utf16_files.html
158 dom/encoding/test/file_utf16_be_bom.js
159 dom/encoding/test/file_utf16_le_bom.js
161 # Service workers fixtures which require specific resource caching.
162 dom/base/test/file_js_cache.js
163 dom/serviceworkers/test/file_js_cache.js
165 # Intentional broken files
166 dom/base/test/file_js_cache_syntax_error.js
167 dom/base/test/jsmodules/test_syntaxError.html
168 dom/base/test/jsmodules/test_syntaxErrorAsync.html
169 dom/base/test/jsmodules/module_badSyntax.js
170 dom/base/test/jsmodules/test_syntaxErrorInline.html
171 dom/base/test/jsmodules/test_syntaxErrorInlineAsync.html
172 dom/base/test/test_bug687859.html
173 dom/media/webrtc/tests/mochitests/identity/idp-bad.js
174 dom/security/test/general/file_nonscript.json
175 dom/serviceworkers/test/file_js_cache_syntax_error.js
176 dom/serviceworkers/test/parse_error_worker.js
177 dom/tests/mochitest/bugs/test_bug531176.html
178 dom/webauthn/tests/cbor.js
179 dom/workers/test/importScripts_worker_imported3.js
180 dom/workers/test/invalid.js
181 dom/workers/test/threadErrors_worker1.js
183 # Bug 1527075: This directory is linted in github repository
184 intl/l10n/
186 # Exclude everything but self-hosted JS
187 js/examples/
188 js/public/
189 js/src/devtools/
190 js/src/jit-test/
191 js/src/tests/
192 js/src/Y.js
194 # Changes to XPConnect tests must be carefully audited.
195 js/xpconnect/tests/mochitest/
196 js/xpconnect/tests/unit/
198 # Fuzzing code for testing only, targeting the JS shell
199 js/src/fuzz-tests/
201 # Template file
202 mobile/android/docs/geckoview/assets/js/search-data.json
204 # Uses `#filter substitution`
205 mobile/android/app/mobile.js
206 mobile/android/app/geckoview-prefs.js
208 # Not much JS to lint and non-standard at that
209 mobile/android/installer/
210 mobile/android/locales/
212 # Pre-processed/pref files
213 modules/libpref/greprefs.js
214 modules/libpref/init/all.js
215 modules/libpref/test/unit/*data/
217 # Only contains non-standard test files.
218 python/
220 # These are (mainly) imported code that we don't want to lint to make imports easier.
221 remote/cdp/Protocol.sys.mjs
222 remote/cdp/test/browser/chrome-remote-interface.js
223 remote/marionette/atom.sys.mjs
225 # This file explicitly has a syntax error and cannot be parsed by eslint.
226 remote/shared/messagehandler/test/browser/resources/modules/root/invalid.sys.mjs
228 # services/ exclusions
230 # Third party services
231 services/common/kinto-http-client.js
232 services/common/kinto-offline-client.js
234 # Webpack-bundled library
235 services/fxaccounts/FxAccountsPairingChannel.sys.mjs
237 # Servo is imported.
238 servo/
240 # Test files that we don't want to lint (preprocessed, minified etc)
241 testing/condprofile/condprof/tests/profile
242 testing/mozbase/mozprofile/tests/files/prefs_with_comments.js
243 testing/mozharness/configs/test/test_malformed.json
244 testing/talos/talos/startup_test/sessionrestore/profile/sessionstore.js
245 testing/talos/talos/startup_test/sessionrestore/profile-manywindows/sessionstore.js
246 testing/talos/talos/tests/devtools/addon/content/pages/
247 # Python json.
248 testing/talos/talos/unittests/test_talosconfig_browser_config.json
249 testing/talos/talos/unittests/test_talosconfig_test_config.json
250 # Runing Talos may extract data here, see bug 1435677.
251 testing/talos/talos/tests/tp5n/
252 testing/talos/talos/fis/tp5n/
254 # Mainly third-party related code, that shouldn't be linted.
255 testing/web-platform/
257 # toolkit/ exclusions
259 # Intentionally invalid files
260 toolkit/components/workerloader/tests/moduleF-syntax-error.js
261 toolkit/components/enterprisepolicies/tests/browser/config_broken_json.json
262 toolkit/mozapps/extensions/test/xpcshell/data/test_AddonRepository_fail.json
264 # Built files
265 toolkit/components/pdfjs/content/build
266 toolkit/components/pdfjs/content/web
268 # External code:
269 toolkit/components/reader/Readability.js
270 toolkit/components/reader/Readability-readerable.js
271 toolkit/components/reader/JSDOMParser.js
273 # Uses preprocessing
274 toolkit/components/reader/Readerable.sys.mjs
276 # Generated & special files in cld2
277 toolkit/components/translation/cld2/
279 # Uses preprocessing
280 toolkit/mozapps/update/tests/data/xpcshellConstantsPP.js
281 toolkit/modules/AppConstants.sys.mjs
283 # Tests of ESLint command.
284 tools/lint/test/files
286 # Uses special template formatting.
287 tools/tryselect/selectors/chooser/templates/chooser.html
289 # Ignore preprocessed *(P)refs.js files in update-packaging.
290 tools/update-packaging/**/*refs.js
292 # Ignore pre-generated webpack and typescript transpiled files for translations
293 browser/extensions/translations/extension/
295 # "scaffolding" used by uniffi which isn't valid JS in its original form.
296 toolkit/components/uniffi-bindgen-gecko-js/src/templates/js/
297 toolkit/components/uniffi-bindgen-gecko-js/components/generated/*
299 ##############################################################################
300 # The list below is copied from ThirdPartyPaths.txt. Prettier doesn't currently
301 # support multiple ignore files or dynamic ignore configurations.
302 # When this is implemented, we'll update the configuration below (bug 1825508)
303 ##############################################################################
305 browser/components/newtab/vendor/
306 browser/components/pocket/content/panels/js/vendor/
307 browser/components/storybook/node_modules/
308 browser/extensions/formautofill/content/third-party/
309 browser/extensions/formautofill/test/fixtures/third_party/
310 browser/extensions/formautofill/test/unit/heuristics/
311 browser/extensions/screenshots/build/raven.js
312 devtools/client/inspector/markup/test/lib_*
313 devtools/client/jsonview/lib/require.js
314 devtools/client/shared/build/babel.js
315 devtools/client/shared/source-map/
316 devtools/client/shared/sourceeditor/codemirror/
317 devtools/client/shared/sourceeditor/test/cm_mode_ruby.js
318 devtools/client/shared/sourceeditor/test/codemirror/
319 devtools/client/shared/vendor/
320 devtools/client/inspector/markup/test/helper_diff.js
321 devtools/shared/acorn/
322 devtools/shared/compatibility/dataset/css-properties.json
323 devtools/shared/heapsnapshot/CoreDump.pb.cc
324 devtools/shared/heapsnapshot/CoreDump.pb.h
325 devtools/shared/jsbeautify/
326 devtools/shared/node-properties/
327 devtools/shared/qrcode/decoder/
328 devtools/shared/qrcode/encoder/
329 devtools/shared/sprintfjs/
330 devtools/shared/storage/vendor/
331 dom/canvas/test/webgl-conf/checkout/
332 dom/imptests/
333 dom/media/gmp/rlz/
334 dom/media/gmp/widevine-adapter/content_decryption_module_export.h
335 dom/media/gmp/widevine-adapter/content_decryption_module_ext.h
336 dom/media/gmp/widevine-adapter/content_decryption_module.h
337 dom/media/gmp/widevine-adapter/content_decryption_module_proxy.h
338 dom/media/platforms/ffmpeg/ffmpeg57/
339 dom/media/platforms/ffmpeg/ffmpeg58/
340 dom/media/platforms/ffmpeg/ffmpeg59/
341 dom/media/platforms/ffmpeg/ffmpeg60/
342 dom/media/platforms/ffmpeg/libav53/
343 dom/media/platforms/ffmpeg/libav54/
344 dom/media/platforms/ffmpeg/libav55/
345 dom/media/webaudio/test/blink/
346 dom/media/webrtc/tests/mochitests/helpers_from_wpt/sdp.js
347 dom/media/webrtc/transport/third_party/
348 dom/media/webspeech/recognition/endpointer.cc
349 dom/media/webspeech/recognition/endpointer.h
350 dom/media/webspeech/recognition/energy_endpointer.cc
351 dom/media/webspeech/recognition/energy_endpointer.h
352 dom/media/webspeech/recognition/energy_endpointer_params.cc
353 dom/media/webspeech/recognition/energy_endpointer_params.h
354 dom/media/webvtt/vtt.sys.mjs
355 dom/tests/mochitest/ajax/
356 dom/tests/mochitest/dom-level1-core/
357 dom/tests/mochitest/dom-level2-core/
358 dom/tests/mochitest/dom-level2-html/
359 dom/u2f/tests/pkijs/
360 dom/webauthn/cbor-cpp/
361 dom/webauthn/tests/pkijs/
362 dom/webgpu/tests/cts/checkout/
363 editor/libeditor/tests/browserscope/lib/richtext/
364 editor/libeditor/tests/browserscope/lib/richtext2/
365 extensions/spellcheck/hunspell/src/
366 function2/
367 gfx/angle/checkout/
368 gfx/cairo/
369 gfx/graphite2/
370 gfx/harfbuzz/
371 gfx/ots/
372 gfx/qcms/
373 gfx/sfntly/
374 gfx/skia/
375 gfx/vr/service/openvr/
376 gfx/vr/service/openvr/headers/openvr.h
377 gfx/vr/service/openvr/src/README
378 gfx/vr/service/openvr/src/dirtools_public.cpp
379 gfx/vr/service/openvr/src/dirtools_public.h
380 gfx/vr/service/openvr/src/envvartools_public.cpp
381 gfx/vr/service/openvr/src/envvartools_public.h
382 gfx/vr/service/openvr/src/hmderrors_public.cpp
383 gfx/vr/service/openvr/src/hmderrors_public.h
384 gfx/vr/service/openvr/src/ivrclientcore.h
385 gfx/vr/service/openvr/src/openvr_api_public.cpp
386 gfx/vr/service/openvr/src/pathtools_public.cpp
387 gfx/vr/service/openvr/src/pathtools_public.h
388 gfx/vr/service/openvr/src/sharedlibtools_public.cpp
389 gfx/vr/service/openvr/src/sharedlibtools_public.h
390 gfx/vr/service/openvr/src/strtools_public.cpp
391 gfx/vr/service/openvr/src/strtools_public.h
392 gfx/vr/service/openvr/src/vrpathregistry_public.cpp
393 gfx/vr/service/openvr/src/vrpathregistry_public.h
394 gfx/wr/
395 gfx/ycbcr/
396 intl/icu/
397 ipc/chromium/src/third_party/
398 js/src/ctypes/libffi/
399 js/src/dtoa.c
400 js/src/editline/
401 js/src/jit/arm64/vixl/
402 js/src/octane/
403 js/src/vtune/disable_warnings.h
404 js/src/vtune/ittnotify_config.h
405 js/src/vtune/ittnotify.h
406 js/src/vtune/ittnotify_static.c
407 js/src/vtune/ittnotify_static.h
408 js/src/vtune/ittnotify_types.h
409 js/src/vtune/jitprofiling.c
410 js/src/vtune/jitprofiling.h
411 js/src/vtune/legacy/
412 js/src/zydis/
413 layout/docs/css-gap-decorations/
414 media/ffvpx/
415 media/kiss_fft/
416 media/libaom/
417 media/libcubeb/
418 media/libdav1d/
419 media/libjpeg/
420 media/libmkv/
421 media/libnestegg/
422 media/libogg/
423 media/libopus/
424 media/libpng/
425 media/libsoundtouch/
426 media/libspeex_resampler/
427 media/libtheora/
428 media/libtremor/
429 media/libvorbis/
430 media/libvpx/
431 media/libwebp/
432 media/libyuv/
433 media/mozva/va
434 media/mp4parse-rust/
435 media/openmax_dl/
436 media/openmax_il/
437 media/webrtc/signaling/gtest/MockCall.h
438 mfbt/double-conversion/double-conversion/
439 mfbt/lz4/.*
440 mobile/android/exoplayer2/
441 modules/brotli/
442 modules/fdlibm/
443 modules/freetype2/
444 modules/woff2/
445 modules/xz-embedded/
446 modules/zlib/
447 mozglue/misc/decimal/
448 mozglue/tests/glibc_printf_tests/
449 netwerk/dns/nsIDNKitInterface.h
450 netwerk/sctp/src/
451 netwerk/srtp/src/
452 nsprpub/
453 other-licenses/
454 parser/expat/
455 remote/cdp/test/browser/chrome-remote-interface.js
456 remote/test/puppeteer/
457 security/manager/tools/log_list.json
458 security/nss/
459 security/sandbox/chromium/
460 security/sandbox/chromium-shim/
461 testing/gtest/gmock/
462 testing/gtest/gtest/
463 testing/mochitest/MochiKit/
464 testing/mochitest/pywebsocket3/
465 testing/mochitest/tests/MochiKit-1.4.2/
466 testing/modules/sinon-7.2.7.js
467 testing/mozbase/mozproxy/mozproxy/backends/mitm/scripts/catapult/
468 testing/talos/talos/tests/dromaeo/
469 testing/talos/talos/tests/kraken/
470 testing/talos/talos/tests/v8_7/
471 testing/web-platform/tests/resources/webidl2/
472 testing/web-platform/tests/tools/third_party/
473 testing/web-platform/mozilla/tests/webgpu/
474 testing/xpcshell/dns-packet/
475 testing/xpcshell/node_ip/
476 testing/xpcshell/node-http2/
477 testing/xpcshell/node-ws/
478 testing/xpcshell/odoh-wasm/
479 third_party/
480 toolkit/components/certviewer/content/vendor/
481 toolkit/components/jsoncpp/
482 toolkit/components/normandy/vendor/
483 toolkit/components/passwordmgr/PasswordRulesParser.sys.mjs
484 toolkit/components/protobuf/
485 toolkit/components/translation/cld2/
486 toolkit/components/translations/bergamot-translator
487 toolkit/components/translations/fasttext/fasttext.js
488 toolkit/components/translations/fasttext/fasttext_wasm.js
489 toolkit/components/url-classifier/chromium/
490 toolkit/components/utils/mozjexl.js
491 toolkit/components/viaduct/fetch_msg_types.pb.cc
492 toolkit/components/viaduct/fetch_msg_types.pb.h
493 toolkit/content/widgets/vendor/lit.all.mjs
494 toolkit/crashreporter/breakpad-client/
495 toolkit/crashreporter/google-breakpad/
496 tools/fuzzing/libfuzzer/
497 tools/profiler/core/vtune/
498 xpcom/build/mach_override.c
499 xpcom/build/mach_override.h
500 xpcom/io/crc32c.c
503 ##############################################################################
504 # The list below is copied from Generated.txt. Prettier doesn't currently
505 # support multiple ignore files or dynamic ignore configurations.
506 # When this is implemented, we'll update the configuration below (bug 1825508)
507 ##############################################################################
509 .gradle/
510 browser/components/newtab/content-src/asrouter/schemas/BackgroundTaskMessagingExperiment.schema.json
511 browser/components/newtab/content-src/asrouter/schemas/MessagingExperiment.schema.json
512 browser/components/newtab/logs/
513 browser/components/newtab/node_modules/
514 browser/components/storybook/storybook-static/
515 browser/locales/l10n-changesets.json
516 browser/locales/l10n-onchange-changesets.json
517 devtools/client/aboutdebugging/test/jest/node_modules/
518 devtools/client/application/test/components/node_modules/
519 devtools/client/debugger/node_modules/
520 dom/tests/ajax/jquery/
521 dom/tests/ajax/mochikit/
522 intl/components/src/UnicodeScriptCodes.h
523 intl/unicharutil/util/nsSpecialCasingData.cpp
524 intl/unicharutil/util/nsUnicodePropertyData.cpp
525 mobile/locales/l10n-changesets.json
526 mobile/locales/l10n-onchange-changesets.json
527 node_modules/
528 security/manager/tools/KnownRootHashes.json
529 security/manager/tools/PreloadedHPKPins.json
530 services/settings/dumps/
531 testing/talos/talos/tests/devtools/addon/content/pages/custom/debugger/static/js/minified.js
532 toolkit/components/pdfjs/content/PdfJsDefaultPreferences.sys.mjs
533 toolkit/components/uniffi-js/UniFFIGeneratedScaffolding.cpp
534 toolkit/components/uniffi-js/UniFFIFixtureScaffolding.cpp
535 toolkit/components/uniffi-bindgen-gecko-js/fixtures/generated
536 tools/browsertime/package.json
537 tools/browsertime/package-lock.json
538 try_task_config.json