Bug 1811808 - add bouncer-check support for mac pkg products. r=releng-reviewers...
[gecko.git] / .eslintignore
blob04322373a5234d97d5a7f65e5319d7dfc9b1658b
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 or library files in pocket
42 browser/components/pocket/content/panels/js/tmpl.js
43 browser/components/pocket/content/panels/js/vendor.bundle.js
44 browser/components/pocket/content/panels/js/main.bundle.js
45 # Include the Storybook config files.
46 !browser/components/storybook/.storybook/
47 !browser/components/storybook/.storybook/*.js
49 # Ignore newtab files
50 browser/components/newtab/aboutwelcome/content/aboutwelcome.bundle.js
51 browser/components/newtab/data/
52 browser/components/newtab/logs/
54 # The only file in browser/locales/ is pre-processed.
55 browser/locales/
56 # Generated data files
57 browser/extensions/formautofill/phonenumberutils/PhoneNumberMetaData.jsm
59 # Ignore devtools debugger files which aren't intended for linting, and also
60 # aren't included in any .eslintignore or .prettierignore file.
61 # See https://github.com/firefox-devtools/debugger/blob/master/package.json#L24
62 devtools/client/debugger/bin/
63 devtools/client/debugger/configs/
64 devtools/client/debugger/dist/
65 devtools/client/debugger/images/
66 devtools/client/debugger/packages/
67 devtools/client/debugger/test/mochitest/examples/
68 devtools/client/debugger/index.html
69 devtools/client/debugger/webpack.config.js
71 # Ignore devtools preferences files
72 devtools/client/preferences/
74 # Ignore devtools generated code
75 devtools/shared/css/generated/properties-db.js
76 devtools/client/webconsole/test/node/fixtures/stubs/*.js
77 !devtools/client/webconsole/test/node/fixtures/stubs/index.js
78 devtools/client/shared/components/test/node/stubs/reps/*.js
79 devtools/client/shared/source-map-loader/test/browser/fixtures/*.js
81 # Ignore devtools files testing sourcemaps / code style
82 devtools/client/framework/test/code_*
83 devtools/client/inspector/markup/test/events_bundle.js
84 devtools/client/netmonitor/test/xhr_bundle.js
85 devtools/client/webconsole/test/browser/code_bundle_nosource.js
86 devtools/client/webconsole/test/browser/code_bundle_invalidmap.js
87 devtools/client/webconsole/test/browser/test-autocomplete-mapped.js
88 devtools/client/webconsole/test/browser/test-autocomplete-mapped.src.js
89 devtools/server/tests/xpcshell/setBreakpoint*
90 devtools/server/tests/xpcshell/sourcemapped.js
92 # Ignore generated code from wasm-bindgen
93 devtools/client/performance-new/profiler_get_symbols.js
95 # Testing syntax error
96 devtools/client/webconsole/test/browser/test-syntaxerror-worklet.js
98 # devtools specific format test file
99 devtools/server/tests/xpcshell/xpcshell_debugging_script.js
101 # Generated
102 dom/canvas/test/webgl-conf/generated/
104 # Intentionally invalid/not parsable
105 dom/html/test/test_bug677658.html
106 dom/svg/test/test_nonAnimStrings.xhtml
107 dom/svg/test/test_SVG_namespace_ids.html
109 # Strange encodings
110 dom/base/test/file_bug687859-16.js
111 dom/encoding/test/test_utf16_files.html
112 dom/encoding/test/file_utf16_be_bom.js
113 dom/encoding/test/file_utf16_le_bom.js
115 # Service workers fixtures which require specific resource caching.
116 dom/base/test/file_js_cache.js
117 dom/serviceworkers/test/file_js_cache.js
119 # Intentional broken files
120 dom/base/test/file_js_cache_syntax_error.js
121 dom/base/test/jsmodules/test_syntaxError.html
122 dom/base/test/jsmodules/test_syntaxErrorAsync.html
123 dom/base/test/jsmodules/module_badSyntax.js
124 dom/base/test/jsmodules/test_syntaxErrorInline.html
125 dom/base/test/jsmodules/test_syntaxErrorInlineAsync.html
126 dom/base/test/test_bug687859.html
127 dom/media/webrtc/tests/mochitests/identity/idp-bad.js
128 dom/serviceworkers/test/file_js_cache_syntax_error.js
129 dom/serviceworkers/test/parse_error_worker.js
130 dom/tests/mochitest/bugs/test_bug531176.html
131 dom/webauthn/tests/cbor.js
132 dom/workers/test/importScripts_worker_imported3.js
133 dom/workers/test/invalid.js
134 dom/workers/test/threadErrors_worker1.js
136 # Bug 1527075: This directory is linted in github repository
137 intl/l10n/
139 # Exclude everything but self-hosted JS
140 js/examples/
141 js/public/
142 js/src/devtools/
143 js/src/jit-test/
144 js/src/tests/
145 js/src/Y.js
147 # Changes to XPConnect tests must be carefully audited.
148 js/xpconnect/tests/mochitest/
149 js/xpconnect/tests/unit/
151 # Fuzzing code for testing only, targeting the JS shell
152 js/src/fuzz-tests/
154 # Uses `#filter substitution`
155 mobile/android/app/mobile.js
156 mobile/android/app/geckoview-prefs.js
158 # Not much JS to lint and non-standard at that
159 mobile/android/installer/
160 mobile/android/locales/
162 # Pre-processed/pref files
163 modules/libpref/greprefs.js
164 modules/libpref/init/all.js
165 modules/libpref/test/unit/*data/
167 # Only contains non-standard test files.
168 python/
170 # These are (mainly) imported code that we don't want to lint to make imports easier.
171 remote/cdp/Protocol.sys.mjs
172 remote/cdp/test/browser/chrome-remote-interface.js
173 remote/marionette/atom.sys.mjs
175 # This file explicitly has a syntax error and cannot be parsed by eslint.
176 remote/shared/messagehandler/test/browser/resources/modules/root/invalid.sys.mjs
178 # services/ exclusions
180 # Third party services
181 services/common/kinto-http-client.js
182 services/common/kinto-offline-client.js
184 # Webpack-bundled library
185 services/fxaccounts/FxAccountsPairingChannel.js
187 # Servo is imported.
188 servo/
190 # Test files that we don't want to lint (preprocessed, minified etc)
191 testing/condprofile/condprof/tests/profile
192 testing/mozbase/mozprofile/tests/files/prefs_with_comments.js
193 testing/talos/talos/startup_test/sessionrestore/profile/sessionstore.js
194 testing/talos/talos/startup_test/sessionrestore/profile-manywindows/sessionstore.js
195 testing/talos/talos/tests/devtools/addon/content/pages/
196 # Runing Talos may extract data here, see bug 1435677.
197 testing/talos/talos/tests/tp5n/
198 testing/talos/talos/fis/tp5n/
200 # Mainly third-party related code, that shouldn't be linted.
201 testing/web-platform/
203 # toolkit/ exclusions
205 # Intentionally invalid JS
206 toolkit/components/workerloader/tests/moduleF-syntax-error.js
208 # Built files
209 toolkit/components/pdfjs/content/build
210 toolkit/components/pdfjs/content/web
212 # External code:
213 toolkit/components/reader/Readability.js
214 toolkit/components/reader/Readability-readerable.js
215 toolkit/components/reader/JSDOMParser.js
217 # Uses preprocessing
218 toolkit/components/reader/Readerable.jsm
220 # Generated & special files in cld2
221 toolkit/components/translation/cld2/
223 # Uses preprocessing
224 toolkit/mozapps/update/tests/data/xpcshellConstantsPP.js
225 toolkit/modules/AppConstants.sys.mjs
227 # Tests of ESLint command.
228 tools/lint/test/files
230 # Uses special template formatting.
231 tools/tryselect/selectors/chooser/templates/chooser.html
233 # Ignore preprocessed *(P)refs.js files in update-packaging.
234 tools/update-packaging/**/*refs.js
236 # Ignore backgroundtasks preferences files.
237 toolkit/components/backgroundtasks/defaults
239 # Ignore pre-generated webpack and typescript transpiled files for translations
240 browser/extensions/translations/extension/
242 # "scaffolding" used by uniffi which isn't valid JS in its original form.
243 toolkit/components/uniffi-bindgen-gecko-js/src/templates/js/
244 toolkit/components/uniffi-bindgen-gecko-js/components/generated/*