Bug 1643896 - Convert sync onMessage listener exceptions into async rejections r...
[gecko.git] / .eslintignore
bloba68b47cc92e916ce6d3efdfd04b17bde6a99ad95
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
12 # Always ignore node_modules.
13 **/node_modules/
15 # Always ignore crashtests - specially crafted files that originally caused a
16 # crash.
17 **/crashtests/
18 # Also ignore reftest - specially crafted to produce expected output.
19 **/reftest/
20 **/reftests/
22 # Exclude expected objdirs.
23 obj*/
25 # build/ third-party code
26 build/pgo/js-input/
28 # browser/ exclusions
29 browser/app/
30 browser/branding/**/firefox-branding.js
31 # Gzipped test file.
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 browser/extensions/pdfjs/content/build
47 browser/extensions/pdfjs/content/web
48 # generated or library files in pocket
49 browser/components/pocket/content/panels/js/tmpl.js
51 # Ignore newtab files
52 browser/components/newtab/aboutwelcome/content/aboutwelcome.bundle.js
53 browser/components/newtab/data/
54 browser/components/newtab/logs/
56 # The only file in browser/locales/ is pre-processed.
57 browser/locales/
58 # Generated data files
59 browser/extensions/formautofill/phonenumberutils/PhoneNumberMetaData.jsm
61 # Ignore devtools debugger files which aren't intended for linting, and also
62 # aren't included in any .eslintignore or .prettierignore file.
63 # See https://github.com/firefox-devtools/debugger/blob/master/package.json#L24
64 devtools/client/debugger/configs/
65 devtools/client/debugger/dist/
66 devtools/client/debugger/flow-typed/
67 devtools/client/debugger/images/
68 devtools/client/debugger/test/
69 devtools/client/debugger/index.html
71 # Ignore devtools imported repositories
72 devtools/client/shared/components/reps/
74 # Ignore devtools preferences files
75 devtools/client/preferences/
77 # Ignore devtools generated code
78 devtools/shared/css/generated/properties-db.js
79 devtools/client/webconsole/test/node/fixtures/stubs/*.js
80 !devtools/client/webconsole/test/node/fixtures/stubs/index.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/server/tests/xpcshell/setBreakpoint*
89 devtools/server/tests/xpcshell/sourcemapped.js
91 # Testing syntax error
92 devtools/client/webconsole/test/browser/test-syntaxerror-worklet.js
94 # devtools specific format test file
95 devtools/server/tests/xpcshell/xpcshell_debugging_script.js
97 # Generated
98 dom/canvas/test/webgl-conf/generated/
100 # Intentionally invalid/not parsable
101 dom/html/test/test_bug677658.html
102 dom/svg/test/test_nonAnimStrings.xhtml
103 dom/svg/test/test_SVG_namespace_ids.html
105 # Strange encodings
106 dom/base/test/file_bug687859-16.js
107 dom/encoding/test/test_utf16_files.html
108 dom/encoding/test/file_utf16_be_bom.js
109 dom/encoding/test/file_utf16_le_bom.js
111 # Service workers fixtures which require specific resource caching.
112 dom/base/test/file_js_cache.js
113 dom/serviceworkers/test/file_js_cache.js
115 # Intentional broken files
116 dom/base/test/file_js_cache_syntax_error.js
117 dom/base/test/jsmodules/test_syntaxError.html
118 dom/base/test/jsmodules/test_syntaxErrorAsync.html
119 dom/base/test/jsmodules/module_badSyntax.js
120 dom/base/test/jsmodules/test_syntaxErrorInline.html
121 dom/base/test/jsmodules/test_syntaxErrorInlineAsync.html
122 dom/base/test/test_bug687859.html
123 dom/media/tests/mochitest/identity/idp-bad.js
124 dom/serviceworkers/test/file_js_cache_syntax_error.js
125 dom/serviceworkers/test/parse_error_worker.js
126 dom/tests/mochitest/bugs/test_bug531176.html
127 dom/webauthn/tests/cbor.js
128 dom/workers/test/importScripts_worker_imported3.js
129 dom/workers/test/invalid.js
130 dom/workers/test/threadErrors_worker1.js
132 # Bug 1527075: This directory is linted in github repository
133 intl/l10n/
135 # Exclude everything but self-hosted JS
136 js/ductwork/
137 js/examples/
138 js/public/
139 js/xpconnect/
140 js/src/devtools/
141 js/src/jit-test/
142 js/src/jsapi-tests/binast/
143 js/src/tests/
144 js/src/Y.js
146 # Fuzzing code for testing only, targeting the JS shell
147 js/src/fuzz-tests/
149 # Uses `#filter substitution`
150 mobile/android/app/mobile.js
151 mobile/android/app/geckoview-prefs.js
153 # Not much JS to lint and non-standard at that
154 mobile/android/installer/
155 mobile/android/locales/
157 # Pre-processed/pref files
158 modules/libpref/greprefs.js
159 modules/libpref/init/all.js
160 modules/libpref/test/unit/*data/
162 # Only contains non-standard test files.
163 python/
165 # These are (mainly) imported code that we don't want to lint to make imports easier.
166 remote/Protocol.jsm
167 remote/test/browser/chrome-remote-interface.js
169 # services/ exclusions
171 # Third party services
172 services/common/kinto-http-client.js
173 services/common/kinto-offline-client.js
175 # Webpack-bundled library
176 services/fxaccounts/FxAccountsPairingChannel.js
178 # Servo is imported.
179 servo/
181 # Test files that we don't want to lint (preprocessed, minified etc)
182 testing/condprofile/condprof/tests/profile
183 testing/marionette/atom.js
184 testing/mozbase/mozprofile/tests/files/prefs_with_comments.js
185 testing/talos/talos/scripts/jszip.min.js
186 testing/talos/talos/startup_test/sessionrestore/profile/sessionstore.js
187 testing/talos/talos/startup_test/sessionrestore/profile-manywindows/sessionstore.js
188 testing/talos/talos/tests/devtools/addon/content/pages/
189 # Runing Talos may extract data here, see bug 1435677.
190 testing/talos/talos/tests/tp5n/
191 testing/talos/talos/fis/tp5n/
193 # Mainly third-party related code, that shouldn't be linted.
194 testing/web-platform/
196 # toolkit/ exclusions
198 # Ignore generated code from wasm-bindgen
199 toolkit/components/extensions/profiler_get_symbols.js
201 # Intentionally invalid JS
202 toolkit/components/workerloader/tests/moduleF-syntax-error.js
204 # External code:
205 toolkit/components/reader/Readability.js
206 toolkit/components/reader/Readability-readerable.js
207 toolkit/components/reader/JSDOMParser.js
209 # Uses preprocessing
210 toolkit/components/reader/Readerable.jsm
212 # Uses preprocessing
213 toolkit/mozapps/update/tests/data/xpcshellConstantsPP.js
214 toolkit/modules/AppConstants.jsm
216 # Tests old non-star function generators
217 toolkit/modules/tests/xpcshell/test_task.js
219 # Uses special template formatting.
220 tools/tryselect/selectors/chooser/templates/chooser.html
222 # Ignore preprocessed *(P)refs.js files in update-packaging.
223 tools/update-packaging/**/*refs.js