Bug 1603309 - Make sure the Screenshots WebExtension is enabled during performance...
[gecko.git] / .eslintignore
blob5cdda9ad9deeecb7f1945a13f1e183997f7bc7f6
1 # Always ignore node_modules.
2 **/node_modules/
4 # Always ignore crashtests - specially crafted files that originally caused a
5 # crash.
6 **/crashtests/
7 # Also ignore reftest - specially crafted to produce expected output.
8 **/reftest/
9 **/reftests/
11 # Exclude expected objdirs.
12 obj*/
14 # build/ third-party code
15 build/pgo/js-input/
17 # browser/ exclusions
18 browser/app/
19 browser/branding/**/firefox-branding.js
20 # Gzipped test file.
21 browser/base/content/test/general/gZipOfflineChild.html
22 browser/base/content/test/urlbar/file_blank_but_not_blank.html
23 # Third-party code.
24 browser/components/payments/res/vendor/
25 # Test files that are really json not js, and don't need to be linted.
26 browser/components/sessionstore/test/unit/data/sessionstore_valid.js
27 browser/components/sessionstore/test/unit/data/sessionstore_invalid.js
28 # This file is split into two in order to keep it as a valid json file
29 # for documentation purposes (policies.json) but to be accessed by the
30 # code as a .jsm (schema.jsm)
31 browser/components/enterprisepolicies/schemas/schema.jsm
32 # generated & special files in cld2
33 browser/components/translation/cld2/
34 # Screenshots is imported as a system add-on and has
35 # their own lint rules currently.
36 browser/extensions/screenshots/
37 browser/extensions/pdfjs/content/build
38 browser/extensions/pdfjs/content/web
39 # generated or library files in pocket
40 browser/components/pocket/content/panels/js/tmpl.js
41 browser/components/pocket/content/panels/js/vendor/
43 # Ignore newtab files
44 # Kept in sync with browser/components/newtab/.eslintignore
45 browser/components/newtab/data/
46 browser/components/newtab/logs/
47 browser/components/newtab/vendor/
49 # The only file in browser/locales/ is pre-processed.
50 browser/locales/
51 # imported from chromium
52 browser/extensions/mortar/
53 # Generated data files
54 browser/extensions/formautofill/phonenumberutils/PhoneNumberMetaData.jsm
56 # devtools/ exclusions
57 devtools/client/inspector/markup/test/doc_markup_events_*.html
58 devtools/client/performance/components/test/test_jit_optimizations_01.html
59 devtools/server/tests/browser/storage-*.html
60 !devtools/server/tests/browser/storage-unsecured-iframe.html
61 devtools/server/tests/browser/stylesheets-nested-iframes.html
62 devtools/client/webreplay/mochitest/examples/*.html
64 # Ignore devtools debugger files
65 # Keep in sync with devtools/client/debugger/.eslintignore
66 devtools/client/debugger/assets/*
67 devtools/client/debugger/src/test/examples/
68 devtools/client/debugger/src/test/integration/
69 devtools/client/debugger/src/test/unit-sources/
70 devtools/client/debugger/src/**/fixtures/
71 devtools/client/debugger/src/test/mochitest/
72 devtools/client/debugger/bin/
73 devtools/client/debugger/packages/**/fixtures/
74 devtools/client/debugger/node_modules
75 devtools/client/debugger/out
76 devtools/client/webreplay/mochitest/examples/
78 # Ignore devtools debugger files which aren't intended for linting, and also
79 # aren't included in any .eslintignore or .prettierignore file.
80 # See https://github.com/firefox-devtools/debugger/blob/master/package.json#L24
81 devtools/client/debugger/configs/
82 devtools/client/debugger/dist/
83 devtools/client/debugger/flow-typed/
84 devtools/client/debugger/images/
85 devtools/client/debugger/test/
86 devtools/client/debugger/index.html
88 # Ignore devtools imported repositories
89 devtools/client/shared/components/reps/
91 # Ignore devtools preferences files
92 devtools/client/preferences/
94 # Ignore devtools generated code
95 devtools/shared/css/generated/properties-db.js
96 devtools/client/webconsole/test/node/fixtures/stubs/*.js
97 !devtools/client/webconsole/test/node/fixtures/stubs/index.js
99 # Ignore devtools third-party libs
100 devtools/shared/jsbeautify/
101 devtools/shared/acorn/
102 devtools/shared/node-properties/
103 devtools/shared/pretty-fast/
104 devtools/shared/sourcemap/
105 devtools/shared/sprintfjs/
106 devtools/shared/storage/vendor/*
107 devtools/shared/qrcode/decoder/
108 devtools/shared/qrcode/encoder/
109 devtools/client/inspector/markup/test/lib_*
110 devtools/client/jsonview/lib/require.js
111 devtools/client/shared/demangle.js
112 devtools/client/shared/source-map/
113 devtools/client/shared/vendor/
114 devtools/client/shared/sourceeditor/codemirror/*.js
115 devtools/client/shared/sourceeditor/codemirror/**/*.js
116 devtools/client/shared/sourceeditor/test/cm_mode_ruby.js
117 devtools/client/shared/sourceeditor/test/codemirror/
118 devtools/server/actors/utils/automation-timeline.js
120 # Ignore devtools files testing sourcemaps / code style
121 devtools/client/debugger/test/mochitest/code_*.js
122 devtools/client/framework/test/code_*
123 devtools/client/inspector/markup/test/events_bundle.js
124 devtools/client/netmonitor/test/xhr_bundle.js
125 devtools/client/webconsole/test/browser/code_bundle_nosource.js
126 devtools/client/webconsole/test/browser/code_bundle_invalidmap.js
127 devtools/server/tests/unit/babel_and_browserify_script_with_source_map.js
128 devtools/server/tests/unit/setBreakpoint*
129 devtools/server/tests/unit/sourcemapped.js
131 # Testing syntax error
132 devtools/client/webconsole/test/browser/test-syntaxerror-worklet.js
134 # devtools specific format test file
135 devtools/server/tests/unit/xpcshell_debugging_script.js
137 # Third-party
138 dom/canvas/test/webgl-conf/
139 dom/imptests/
140 dom/media/webaudio/test/blink/
141 dom/media/webvtt/
142 dom/svg/test/test_nonAnimStrings.xhtml
143 dom/svg/test/test_SVG_namespace_ids.html
145 # Strange encodings
146 dom/base/test/file_bug687859-16.js
147 dom/encoding/test/test_utf16_files.html
148 dom/encoding/test/file_utf16_be_bom.js
149 dom/encoding/test/file_utf16_le_bom.js
151 # Not parsable
152 dom/tests/mochitest/general/test_focusrings.xul
153 dom/html/test/test_bug677658.html
155 # Service workers fixtures which require specific resource caching.
156 dom/base/test/file_js_cache.js
157 dom/serviceworkers/test/file_js_cache.js
159 # Intentional broken files
160 dom/base/test/file_js_cache_syntax_error.js
161 dom/base/test/jsmodules/test_syntaxError.html
162 dom/base/test/jsmodules/test_syntaxErrorAsync.html
163 dom/base/test/jsmodules/module_badSyntax.js
164 dom/base/test/jsmodules/test_syntaxErrorInline.html
165 dom/base/test/jsmodules/test_syntaxErrorInlineAsync.html
166 dom/base/test/test_bug687859.html
167 dom/media/tests/mochitest/identity/idp-bad.js
168 dom/serviceworkers/test/file_js_cache_syntax_error.js
169 dom/serviceworkers/test/parse_error_worker.js
170 dom/tests/mochitest/bugs/test_bug531176.html
171 dom/webauthn/tests/cbor.js
172 dom/workers/test/importScripts_worker_imported3.js
173 dom/workers/test/invalid.js
174 dom/workers/test/threadErrors_worker1.js
176 # Third-party
177 editor/libeditor/tests/browserscope/
179 # Third-party
180 gfx/ots/
181 gfx/skia/
182 gfx/wgpu
183 gfx/wr/
185 # intl/ exclusions
186 intl/icu/
187 intl/locale/
188 intl/strres/
189 intl/uconv/
190 # Bug 1527075: This directory is linted in github repository
191 intl/l10n/
193 # Third-party
194 layout/mathml/imptests/
196 # Exclude everything but self-hosted JS
197 js/ductwork/
198 js/examples/
199 js/ipc/
200 js/public/
201 js/xpconnect/
202 js/src/devtools/
203 js/src/octane/
204 js/src/jit-test/
205 js/src/jsapi-tests/binast/
206 js/src/tests/
207 js/src/Y.js
209 # Third-party
210 media/webrtc/trunk/
212 # mobile/android/ exclusions
213 mobile/android/tests/browser/chrome/tp5/
215 # Uses `#filter substitution`
216 mobile/android/app/mobile.js
217 mobile/android/app/geckoview-prefs.js
219 # Not much JS to lint and non-standard at that
220 mobile/android/installer/
221 mobile/android/locales/
223 # Pre-processed/pref files
224 modules/libpref/greprefs.js
225 modules/libpref/init/all.js
226 modules/libpref/test/unit/*data/
228 # Only contains non-standard test files.
229 python/
231 # Remote agent
232 remote/Protocol.jsm
233 remote/server/HTTPD.jsm
234 remote/server/Packet.jsm
235 remote/server/Socket.jsm
236 remote/server/Stream.jsm
237 remote/test/browser/chrome-remote-interface.js
238 remote/test/demo.js
239 remote/test/puppeteer/
241 # NSS / taskcluster only.
242 security/nss/
244 # services/ exclusions
246 # Third party services
247 services/common/kinto-http-client.js
248 services/common/kinto-offline-client.js
250 # Webpack-bundled library
251 services/fxaccounts/FxAccountsPairingChannel.js
253 # Uses `#filter substitution`
254 services/sync/modules/constants.js
256 # Servo is imported.
257 servo/
259 # Remote protocol exclusions
260 testing/marionette/atom.js
261 testing/marionette/legacyaction.js
262 testing/marionette/client
263 testing/marionette/doc
264 testing/marionette/harness
266 # other testing/ exclusions
267 # third party modules
268 testing/mochitest/tests/Harness_sanity/
269 testing/mochitest/MochiKit/
270 testing/mochitest/tests/MochiKit-1.4.2/
271 testing/mochitest/tests/SimpleTest/
272 testing/modules/ajv-4.1.1.js
273 testing/modules/sinon-7.2.7.js
274 # octothorpe used for pref file comment causes parsing error
275 testing/mozbase/mozprofile/tests/files/prefs_with_comments.js
277 # Mozproxy third party
278 testing/mozbase/mozproxy/mozproxy/backends/mitm/scripts/catapult/
280 testing/talos/talos/scripts/jszip.min.js
281 testing/talos/talos/startup_test/sessionrestore/profile/sessionstore.js
282 testing/talos/talos/startup_test/sessionrestore/profile-manywindows/sessionstore.js
283 testing/talos/talos/tests/devtools/addon/content/pages/
284 testing/talos/talos/tests/dromaeo/
285 testing/talos/talos/tests/v8_7/
286 testing/talos/talos/tests/kraken/
287 # Runing Talos may extract data here, see bug 1435677.
288 testing/talos/talos/tests/tp5n/
289 testing/talos/talos/fis/tp5n/
291 testing/web-platform/
292 testing/xpcshell/moz-http2/
293 testing/xpcshell/node-http2/
294 testing/xpcshell/dns-packet/
295 testing/xpcshell/node-ip/
298 # Third party.
299 third_party/
301 # toolkit/ exclusions
303 # Ignore generated code from wasm-bindgen
304 toolkit/components/extensions/profiler_get_symbols.js
306 # Intentionally invalid JS
307 toolkit/components/workerloader/tests/moduleF-syntax-error.js
309 # External code:
310 toolkit/components/reader/Readability.js
311 toolkit/components/reader/JSDOMParser.js
313 # Uses preprocessing
314 toolkit/components/reader/Readerable.jsm
316 # Uses preprocessing
317 toolkit/mozapps/update/tests/data/xpcshellConstantsPP.js
318 toolkit/modules/AppConstants.jsm
320 # Tests old non-star function generators
321 toolkit/modules/tests/xpcshell/test_task.js
323 # Third party
324 toolkit/modules/third_party/
326 tools/tryselect/selectors/chooser/templates/chooser.html
328 # Ignore preprocessed *(P)refs.js files in update-packaging.
329 tools/update-packaging/**/*refs.js