Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release
[gecko.git] / .eslintignore
blobe862d501e869526698633268242bc28ce099dec6
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:
8 # - preprocessed files
9 # - intentionally invalid files
10 # - build directories and other items that we need to ignore
12 # Include all js dot files.
13 !.*.js
15 # Ignore VSCode files
16 .vscode/
18 # Always ignore node_modules.
19 **/node_modules/
21 # Always ignore crashtests - specially crafted files that originally caused a
22 # crash.
23 **/crashtests/
24 # Also ignore reftest - specially crafted to produce expected output.
25 **/reftest/
26 **/reftests/
27 # Don't ignore the reftest harness files.
28 !/layout/tools/reftest/
30 # Exclude expected objdirs.
31 obj*/
33 # build/ third-party code
34 build/pgo/js-input/
36 # browser/ exclusions
37 browser/app/
38 browser/branding/**/firefox-branding.js
39 # Gzipped test file.
40 browser/base/content/test/general/gZipOfflineChild.html
41 browser/base/content/test/urlbar/file_blank_but_not_blank.html
42 # Test files that are really json not js, and don't need to be linted.
43 browser/components/sessionstore/test/unit/data/sessionstore_valid.js
44 browser/components/sessionstore/test/unit/data/sessionstore_invalid.js
45 # This file is split into two in order to keep it as a valid json file
46 # for documentation purposes (policies.json) but to be accessed by the
47 # code as a .sys.mjs (schema.sys.mjs)
48 browser/components/enterprisepolicies/schemas/schema.sys.mjs
49 # generated or library files in pocket
50 browser/components/pocket/content/panels/js/tmpl.js
51 browser/components/pocket/content/panels/js/vendor.bundle.js
52 browser/components/pocket/content/panels/js/main.bundle.js
53 # Include the Storybook config files.
54 !browser/components/storybook/.storybook/
55 !browser/components/storybook/.storybook/*.js
57 # Ignore newtab files
58 browser/components/newtab/data/
59 browser/components/newtab/logs/
61 # Ignore webpack about:welcome files
62 browser/components/aboutwelcome/webpack.aboutwelcome.config.js
64 # The only file in browser/locales/ is pre-processed.
65 browser/locales/
66 # Generated data files
67 browser/extensions/formautofill/phonenumberutils/PhoneNumberMetaData.jsm
69 # Ignore devtools debugger files which aren't intended for linting, and also
70 # aren't included in any .eslintignore or .prettierignore file.
71 # See https://github.com/firefox-devtools/debugger/blob/master/package.json#L24
72 devtools/client/debugger/bin/
73 devtools/client/debugger/configs/
74 devtools/client/debugger/dist/
75 devtools/client/debugger/images/
76 devtools/client/debugger/packages/
77 devtools/client/debugger/test/mochitest/examples/
78 devtools/client/debugger/index.html
79 devtools/client/debugger/webpack.config.js
81 # Ignore devtools preferences files
82 devtools/client/preferences/
84 # Ignore devtools generated code
85 devtools/client/webconsole/test/node/fixtures/stubs/*.js
86 !devtools/client/webconsole/test/node/fixtures/stubs/index.js
87 devtools/client/shared/components/test/node/stubs/reps/*.js
88 devtools/client/shared/source-map-loader/test/browser/fixtures/*.js
90 # Ignore devtools files testing sourcemaps / code style
91 devtools/client/framework/test/code_*
92 devtools/client/inspector/markup/test/events_bundle.js
93 devtools/client/netmonitor/test/xhr_bundle.js
94 devtools/client/webconsole/test/browser/code_bundle_nosource.js
95 devtools/client/webconsole/test/browser/code_bundle_invalidmap.js
96 devtools/client/webconsole/test/browser/test-autocomplete-mapped.js
97 devtools/client/webconsole/test/browser/test-autocomplete-mapped.src.js
98 devtools/client/inspector/markup/test/shadowdom_open_debugger.min.js
99 devtools/client/webconsole/test/browser/test-click-function-to-source*.js
100 devtools/client/webconsole/test/browser/test-external-script-errors.js
101 devtools/client/webconsole/test/browser/test-mangled-function.*
102 devtools/client/webconsole/test/browser/test-message-categories-canvas-css.js
103 devtools/client/webconsole/test/browser/test-message-categories-empty-getelementbyid.js
104 devtools/client/webconsole/test/browser/test-sourcemap*.js
105 devtools/server/tests/xpcshell/setBreakpoint*
106 devtools/server/tests/xpcshell/sourcemapped.js
108 # Ignore generated code from wasm-bindgen
109 devtools/client/performance-new/shared/profiler_get_symbols.js
111 # Testing syntax error
112 devtools/client/aboutdebugging/test/browser/resources/bad-extensions/invalid-json/manifest.json
113 devtools/client/jsonview/test/invalid_json.json
114 devtools/client/webconsole/test/browser/test-syntaxerror-worklet.js
116 # devtools specific format test file
117 devtools/server/tests/xpcshell/xpcshell_debugging_script.js
118 devtools/shared/webconsole/test/browser/data.json
120 # Generated
121 dom/canvas/test/webgl-conf/generated/
123 # Intentionally invalid/not parsable
124 dom/html/test/test_bug677658.html
125 dom/svg/test/test_nonAnimStrings.xhtml
126 dom/svg/test/test_SVG_namespace_ids.html
128 # Strange encodings
129 dom/base/test/file_bug687859-16.js
130 dom/base/test/file_bug707142_bom.json
131 dom/base/test/file_bug707142_utf-16.json
132 dom/encoding/test/test_utf16_files.html
133 dom/encoding/test/file_utf16_be_bom.js
134 dom/encoding/test/file_utf16_le_bom.js
136 # Service workers fixtures which require specific resource caching.
137 dom/base/test/file_js_cache.js
138 dom/serviceworkers/test/file_js_cache.js
140 # Intentional broken files
141 dom/base/test/file_js_cache_syntax_error.js
142 dom/base/test/jsmodules/test_scriptNotParsedAsModule.html
143 dom/base/test/jsmodules/test_syntaxError.html
144 dom/base/test/jsmodules/test_syntaxErrorAsync.html
145 dom/base/test/jsmodules/module_badSyntax.mjs
146 dom/base/test/jsmodules/test_syntaxErrorInline.html
147 dom/base/test/jsmodules/test_syntaxErrorInlineAsync.html
148 dom/base/test/test_bug687859.html
149 dom/media/webrtc/tests/mochitests/identity/idp-bad.js
150 dom/security/test/general/file_nonscript.json
151 dom/serviceworkers/test/file_js_cache_syntax_error.js
152 dom/serviceworkers/test/parse_error_worker.js
153 dom/tests/mochitest/bugs/test_bug531176.html
154 dom/webauthn/tests/cbor.js
155 dom/workers/test/importScripts_worker_imported3.js
156 dom/workers/test/invalid.js
157 dom/workers/test/threadErrors_worker1.js
159 # Tests the module loader's path handling.
160 # Dynamic imports contains non-optimal paths.
161 dom/workers/test/xpcshell/data/base_uri_worker.js
162 dom/workers/test/xpcshell/data/base_uri_module.mjs
164 # Bug 1527075: This directory is linted in github repository
165 intl/l10n/
167 # Exclude everything but self-hosted JS
168 js/examples/
169 js/public/
170 js/src/devtools/
171 js/src/jit-test/
172 js/src/tests/
173 js/src/Y.js
175 # Changes to XPConnect tests must be carefully audited.
176 js/xpconnect/tests/mochitest/
177 js/xpconnect/tests/unit/
179 # Fuzzing code for testing only, targeting the JS shell
180 js/src/fuzz-tests/
182 # Template file
183 mobile/android/docs/geckoview/assets/js/search-data.json
185 # Uses `#filter substitution`
186 mobile/android/app/geckoview-prefs.js
188 # Not much JS to lint and non-standard at that
189 mobile/android/installer/
190 mobile/android/locales/
192 # TODO - Bug 1881094: temporarily ignored for firefox-android migration
193 mobile/android/android-components/components/browser/engine-system/src/main/res/raw/domain_blocklist.json
194 mobile/android/android-components/components/browser/engine-system/src/main/res/raw/domain_safelist.json
195 mobile/android/android-components/components/browser/errorpages/src/main/assets/errorPageScripts.js
196 mobile/android/android-components/components/browser/errorpages/src/main/assets/error_page_js.html
197 mobile/android/android-components/components/browser/icons/src/main/assets/extensions/browser-icons/icons.js
198 mobile/android/android-components/components/browser/session-storage/src/androidTest/assets/index.html
199 mobile/android/android-components/components/concept/engine/src/test/resources/manifests/example_mdn.json
200 mobile/android/android-components/components/concept/engine/src/test/resources/manifests/invalid_json.json
201 mobile/android/android-components/components/concept/engine/src/test/resources/manifests/spec_typical.json
202 mobile/android/android-components/components/concept/engine/src/test/resources/manifests/twitter_mobile.json
203 mobile/android/android-components/components/feature/accounts/src/main/assets/extensions/fxawebchannel/background.js
204 mobile/android/android-components/components/feature/accounts/src/main/assets/extensions/fxawebchannel/fxawebchannel.js
205 mobile/android/android-components/components/feature/addons/src/test/resources/collection.json
206 mobile/android/android-components/components/feature/addons/src/test/resources/collection_with_empty_values.json
207 mobile/android/android-components/components/feature/addons/src/test/resources/localized_collection.json
208 mobile/android/android-components/components/feature/readerview/src/main/assets/extensions/readerview/
209 mobile/android/android-components/components/feature/search/src/main/assets/extensions/ads/adsTelemetry.js
210 mobile/android/android-components/components/feature/search/src/main/assets/extensions/search/searchTelemetry.js
211 mobile/android/android-components/components/feature/webcompat-reporter/src/main/assets/
212 mobile/android/android-components/components/feature/webcompat/src/main/assets/extensions/webcompat/
213 mobile/android/android-components/samples/browser/src/main/assets/extensions/test/background.js
214 mobile/android/fenix/app/src/androidTest/assets/
215 mobile/android/fenix/app/src/androidTest/java/org/mozilla/fenix/syncintegration/
216 mobile/android/fenix/app/src/main/assets/
217 mobile/android/focus-android/app/src/androidTest/assets/
218 mobile/android/android-components/docs/assets/js/icon-js.js
220 # Pre-processed/pref files
221 modules/libpref/greprefs.js
222 modules/libpref/init/all.js
223 modules/libpref/test/unit/*data/
224 toolkit/components/backgroundtasks/defaults/backgroundtasks.js
225 toolkit/components/backgroundtasks/defaults/backgroundtasks_browser.js
227 # Only contains non-standard test files.
228 python/
230 # These are (mainly) imported code that we don't want to lint to make imports easier.
231 remote/cdp/Protocol.sys.mjs
232 remote/cdp/test/browser/chrome-remote-interface.js
233 remote/marionette/atom.sys.mjs
235 # This file explicitly has a syntax error and cannot be parsed by eslint.
236 remote/shared/messagehandler/test/browser/resources/modules/root/invalid.sys.mjs
238 # services/ exclusions
240 # Webpack-bundled library
241 services/fxaccounts/FxAccountsPairingChannel.sys.mjs
243 # Servo is imported.
244 servo/
246 # Test files that we don't want to lint (preprocessed, minified etc)
247 testing/condprofile/condprof/tests/profile
248 testing/mozbase/mozprofile/tests/files/prefs_with_comments.js
249 testing/mozharness/configs/test/test_malformed.json
250 testing/talos/talos/startup_test/sessionrestore/profile/sessionstore.js
251 testing/talos/talos/startup_test/sessionrestore/profile-manywindows/sessionstore.js
252 # Python json.
253 testing/talos/talos/unittests/test_talosconfig_browser_config.json
254 testing/talos/talos/unittests/test_talosconfig_test_config.json
255 # Runing Talos may extract data here, see bug 1435677.
256 testing/talos/talos/tests/tp5n/
257 testing/talos/talos/fis/tp5n/
259 # Mainly third-party related code, that shouldn't be linted.
260 testing/web-platform/
262 # toolkit/ exclusions
264 # Intentionally invalid files
265 toolkit/components/workerloader/tests/moduleF-syntax-error.js
266 toolkit/components/enterprisepolicies/tests/browser/config_broken_json.json
267 toolkit/mozapps/extensions/test/xpcshell/data/test_AddonRepository_fail.json
269 # Built files
270 toolkit/components/pdfjs/content/build
271 toolkit/components/pdfjs/content/web
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 # Test files for circular import in modules.
300 dom/base/test/jsmodules/import_circular.mjs
301 dom/base/test/jsmodules/import_circular_1.mjs