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