Bug 1826325 [wpt PR 39358] - Make the CPython bug 102126 workaround cover 3.10.10...
[gecko.git] / .eslintignore
blob883e6dae865461a0248aeab19a05a674ae4a6a3e
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:
5 # - preprocessed files
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
10 !.eslintrc*.js
11 !.prettierrc.js
13 # Always ignore node_modules.
14 **/node_modules/
16 # Always ignore crashtests - specially crafted files that originally caused a
17 # crash.
18 **/crashtests/
19 # Also ignore reftest - specially crafted to produce expected output.
20 **/reftest/
21 **/reftests/
23 # Exclude expected objdirs.
24 obj*/
26 # build/ third-party code
27 build/pgo/js-input/
29 # browser/ exclusions
30 browser/app/
31 browser/branding/**/firefox-branding.js
32 # Gzipped test file.
33 browser/base/content/test/general/gZipOfflineChild.html
34 browser/base/content/test/urlbar/file_blank_but_not_blank.html
35 # Test files that are really json not js, and don't need to be linted.
36 browser/components/sessionstore/test/unit/data/sessionstore_valid.js
37 browser/components/sessionstore/test/unit/data/sessionstore_invalid.js
38 # This file is split into two in order to keep it as a valid json file
39 # for documentation purposes (policies.json) but to be accessed by the
40 # code as a .jsm (schema.jsm)
41 browser/components/enterprisepolicies/schemas/schema.jsm
42 # generated or library files in pocket
43 browser/components/pocket/content/panels/js/tmpl.js
44 browser/components/pocket/content/panels/js/vendor.bundle.js
45 browser/components/pocket/content/panels/js/main.bundle.js
46 # Include the Storybook config files.
47 !browser/components/storybook/.storybook/
48 !browser/components/storybook/.storybook/*.js
50 # Ignore newtab files
51 browser/components/newtab/aboutwelcome/content/aboutwelcome.bundle.js
52 browser/components/newtab/data/
53 browser/components/newtab/logs/
55 # The only file in browser/locales/ is pre-processed.
56 browser/locales/
57 # Generated data files
58 browser/extensions/formautofill/phonenumberutils/PhoneNumberMetaData.jsm
60 # Ignore devtools debugger files which aren't intended for linting, and also
61 # aren't included in any .eslintignore or .prettierignore file.
62 # See https://github.com/firefox-devtools/debugger/blob/master/package.json#L24
63 devtools/client/debugger/bin/
64 devtools/client/debugger/configs/
65 devtools/client/debugger/dist/
66 devtools/client/debugger/images/
67 devtools/client/debugger/packages/
68 devtools/client/debugger/test/mochitest/examples/
69 devtools/client/debugger/index.html
70 devtools/client/debugger/webpack.config.js
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
79 devtools/client/shared/components/test/node/stubs/reps/*.js
80 devtools/client/shared/source-map-loader/test/browser/fixtures/*.js
82 # Ignore devtools files testing sourcemaps / code style
83 devtools/client/framework/test/code_*
84 devtools/client/inspector/markup/test/events_bundle.js
85 devtools/client/netmonitor/test/xhr_bundle.js
86 devtools/client/webconsole/test/browser/code_bundle_nosource.js
87 devtools/client/webconsole/test/browser/code_bundle_invalidmap.js
88 devtools/client/webconsole/test/browser/test-autocomplete-mapped.js
89 devtools/client/webconsole/test/browser/test-autocomplete-mapped.src.js
90 devtools/client/inspector/markup/test/shadowdom_open_debugger.min.js
91 devtools/client/webconsole/test/browser/test-click-function-to-source*.js
92 devtools/client/webconsole/test/browser/test-external-script-errors.js
93 devtools/client/webconsole/test/browser/test-message-categories-canvas-css.js
94 devtools/client/webconsole/test/browser/test-message-categories-empty-getelementbyid.js
95 devtools/client/webconsole/test/browser/test-sourcemap*.js
96 devtools/server/tests/xpcshell/setBreakpoint*
97 devtools/server/tests/xpcshell/sourcemapped.js
99 # Ignore generated code from wasm-bindgen
100 devtools/client/performance-new/shared/profiler_get_symbols.js
102 # Testing syntax error
103 devtools/client/webconsole/test/browser/test-syntaxerror-worklet.js
105 # devtools specific format test file
106 devtools/server/tests/xpcshell/xpcshell_debugging_script.js
108 # Generated
109 dom/canvas/test/webgl-conf/generated/
111 # Intentionally invalid/not parsable
112 dom/html/test/test_bug677658.html
113 dom/svg/test/test_nonAnimStrings.xhtml
114 dom/svg/test/test_SVG_namespace_ids.html
116 # Strange encodings
117 dom/base/test/file_bug687859-16.js
118 dom/encoding/test/test_utf16_files.html
119 dom/encoding/test/file_utf16_be_bom.js
120 dom/encoding/test/file_utf16_le_bom.js
122 # Service workers fixtures which require specific resource caching.
123 dom/base/test/file_js_cache.js
124 dom/serviceworkers/test/file_js_cache.js
126 # Intentional broken files
127 dom/base/test/file_js_cache_syntax_error.js
128 dom/base/test/jsmodules/test_syntaxError.html
129 dom/base/test/jsmodules/test_syntaxErrorAsync.html
130 dom/base/test/jsmodules/module_badSyntax.js
131 dom/base/test/jsmodules/test_syntaxErrorInline.html
132 dom/base/test/jsmodules/test_syntaxErrorInlineAsync.html
133 dom/base/test/test_bug687859.html
134 dom/media/webrtc/tests/mochitests/identity/idp-bad.js
135 dom/serviceworkers/test/file_js_cache_syntax_error.js
136 dom/serviceworkers/test/parse_error_worker.js
137 dom/tests/mochitest/bugs/test_bug531176.html
138 dom/webauthn/tests/cbor.js
139 dom/workers/test/importScripts_worker_imported3.js
140 dom/workers/test/invalid.js
141 dom/workers/test/threadErrors_worker1.js
143 # Bug 1527075: This directory is linted in github repository
144 intl/l10n/
146 # Exclude everything but self-hosted JS
147 js/examples/
148 js/public/
149 js/src/devtools/
150 js/src/jit-test/
151 js/src/tests/
152 js/src/Y.js
154 # Changes to XPConnect tests must be carefully audited.
155 js/xpconnect/tests/mochitest/
156 js/xpconnect/tests/unit/
158 # Fuzzing code for testing only, targeting the JS shell
159 js/src/fuzz-tests/
161 # Uses `#filter substitution`
162 mobile/android/app/mobile.js
163 mobile/android/app/geckoview-prefs.js
165 # Not much JS to lint and non-standard at that
166 mobile/android/installer/
167 mobile/android/locales/
169 # Pre-processed/pref files
170 modules/libpref/greprefs.js
171 modules/libpref/init/all.js
172 modules/libpref/test/unit/*data/
174 # Only contains non-standard test files.
175 python/
177 # These are (mainly) imported code that we don't want to lint to make imports easier.
178 remote/cdp/Protocol.sys.mjs
179 remote/cdp/test/browser/chrome-remote-interface.js
180 remote/marionette/atom.sys.mjs
182 # This file explicitly has a syntax error and cannot be parsed by eslint.
183 remote/shared/messagehandler/test/browser/resources/modules/root/invalid.sys.mjs
185 # services/ exclusions
187 # Third party services
188 services/common/kinto-http-client.js
189 services/common/kinto-offline-client.js
191 # Webpack-bundled library
192 services/fxaccounts/FxAccountsPairingChannel.sys.mjs
194 # Servo is imported.
195 servo/
197 # Test files that we don't want to lint (preprocessed, minified etc)
198 testing/condprofile/condprof/tests/profile
199 testing/mozbase/mozprofile/tests/files/prefs_with_comments.js
200 testing/talos/talos/startup_test/sessionrestore/profile/sessionstore.js
201 testing/talos/talos/startup_test/sessionrestore/profile-manywindows/sessionstore.js
202 testing/talos/talos/tests/devtools/addon/content/pages/
203 # Runing Talos may extract data here, see bug 1435677.
204 testing/talos/talos/tests/tp5n/
205 testing/talos/talos/fis/tp5n/
207 # Mainly third-party related code, that shouldn't be linted.
208 testing/web-platform/
210 # toolkit/ exclusions
212 # Intentionally invalid JS
213 toolkit/components/workerloader/tests/moduleF-syntax-error.js
215 # Built files
216 toolkit/components/pdfjs/content/build
217 toolkit/components/pdfjs/content/web
219 # External code:
220 toolkit/components/reader/Readability.js
221 toolkit/components/reader/Readability-readerable.js
222 toolkit/components/reader/JSDOMParser.js
224 # Uses preprocessing
225 toolkit/components/reader/Readerable.sys.mjs
227 # Generated & special files in cld2
228 toolkit/components/translation/cld2/
230 # Uses preprocessing
231 toolkit/mozapps/update/tests/data/xpcshellConstantsPP.js
232 toolkit/modules/AppConstants.sys.mjs
234 # Tests of ESLint command.
235 tools/lint/test/files
237 # Uses special template formatting.
238 tools/tryselect/selectors/chooser/templates/chooser.html
240 # Ignore preprocessed *(P)refs.js files in update-packaging.
241 tools/update-packaging/**/*refs.js
243 # Ignore backgroundtasks preferences files.
244 toolkit/components/backgroundtasks/defaults
246 # Ignore pre-generated webpack and typescript transpiled files for translations
247 browser/extensions/translations/extension/
249 # "scaffolding" used by uniffi which isn't valid JS in its original form.
250 toolkit/components/uniffi-bindgen-gecko-js/src/templates/js/
251 toolkit/components/uniffi-bindgen-gecko-js/components/generated/*