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