Bug 1772053 - Enable dynamic code disable mitigations only on Windows 10 1703+ r...
[gecko.git] / .eslintignore
blob0cc0e1b0f0a7026c590554ccd5456ee31441f4c7
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 # generated or library files in pocket
44 browser/components/pocket/content/panels/js/tmpl.js
45 browser/components/pocket/content/panels/js/vendor.bundle.js
46 browser/components/pocket/content/panels/js/main.bundle.js
48 # Ignore newtab files
49 browser/components/newtab/aboutwelcome/content/aboutwelcome.bundle.js
50 browser/components/newtab/data/
51 browser/components/newtab/logs/
53 # The only file in browser/locales/ is pre-processed.
54 browser/locales/
55 # Generated data files
56 browser/extensions/formautofill/phonenumberutils/PhoneNumberMetaData.jsm
58 # Ignore devtools debugger files which aren't intended for linting, and also
59 # aren't included in any .eslintignore or .prettierignore file.
60 # See https://github.com/firefox-devtools/debugger/blob/master/package.json#L24
61 devtools/client/debugger/bin/
62 devtools/client/debugger/configs/
63 devtools/client/debugger/dist/
64 devtools/client/debugger/images/
65 devtools/client/debugger/packages/
66 devtools/client/debugger/test/mochitest/examples/
67 devtools/client/debugger/index.html
68 devtools/client/debugger/webpack.config.js
70 # Ignore devtools preferences files
71 devtools/client/preferences/
73 # Ignore devtools generated code
74 devtools/shared/css/generated/properties-db.js
75 devtools/client/webconsole/test/node/fixtures/stubs/*.js
76 !devtools/client/webconsole/test/node/fixtures/stubs/index.js
77 devtools/client/shared/components/test/node/stubs/reps/*.js
79 # Ignore devtools files testing sourcemaps / code style
80 devtools/client/framework/test/code_*
81 devtools/client/inspector/markup/test/events_bundle.js
82 devtools/client/netmonitor/test/xhr_bundle.js
83 devtools/client/webconsole/test/browser/code_bundle_nosource.js
84 devtools/client/webconsole/test/browser/code_bundle_invalidmap.js
85 devtools/client/webconsole/test/browser/test-autocomplete-mapped.js
86 devtools/client/webconsole/test/browser/test-autocomplete-mapped.src.js
87 devtools/server/tests/xpcshell/setBreakpoint*
88 devtools/server/tests/xpcshell/sourcemapped.js
90 # Ignore generated code from wasm-bindgen
91 devtools/client/performance-new/profiler_get_symbols.js
93 # Testing syntax error
94 devtools/client/webconsole/test/browser/test-syntaxerror-worklet.js
96 # devtools specific format test file
97 devtools/server/tests/xpcshell/xpcshell_debugging_script.js
99 # Generated
100 dom/canvas/test/webgl-conf/generated/
102 # Intentionally invalid/not parsable
103 dom/html/test/test_bug677658.html
104 dom/svg/test/test_nonAnimStrings.xhtml
105 dom/svg/test/test_SVG_namespace_ids.html
107 # Strange encodings
108 dom/base/test/file_bug687859-16.js
109 dom/encoding/test/test_utf16_files.html
110 dom/encoding/test/file_utf16_be_bom.js
111 dom/encoding/test/file_utf16_le_bom.js
113 # Service workers fixtures which require specific resource caching.
114 dom/base/test/file_js_cache.js
115 dom/serviceworkers/test/file_js_cache.js
117 # Intentional broken files
118 dom/base/test/file_js_cache_syntax_error.js
119 dom/base/test/jsmodules/test_syntaxError.html
120 dom/base/test/jsmodules/test_syntaxErrorAsync.html
121 dom/base/test/jsmodules/module_badSyntax.js
122 dom/base/test/jsmodules/test_syntaxErrorInline.html
123 dom/base/test/jsmodules/test_syntaxErrorInlineAsync.html
124 dom/base/test/test_bug687859.html
125 dom/media/webrtc/tests/mochitests/identity/idp-bad.js
126 dom/serviceworkers/test/file_js_cache_syntax_error.js
127 dom/serviceworkers/test/parse_error_worker.js
128 dom/tests/mochitest/bugs/test_bug531176.html
129 dom/webauthn/tests/cbor.js
130 dom/workers/test/importScripts_worker_imported3.js
131 dom/workers/test/invalid.js
132 dom/workers/test/threadErrors_worker1.js
134 # Bug 1527075: This directory is linted in github repository
135 intl/l10n/
137 # Exclude everything but self-hosted JS
138 js/ductwork/
139 js/examples/
140 js/public/
141 js/xpconnect/
142 js/src/devtools/
143 js/src/jit-test/
144 js/src/tests/
145 js/src/Y.js
147 # Fuzzing code for testing only, targeting the JS shell
148 js/src/fuzz-tests/
150 # Uses `#filter substitution`
151 mobile/android/app/mobile.js
152 mobile/android/app/geckoview-prefs.js
154 # Not much JS to lint and non-standard at that
155 mobile/android/installer/
156 mobile/android/locales/
158 # Pre-processed/pref files
159 modules/libpref/greprefs.js
160 modules/libpref/init/all.js
161 modules/libpref/test/unit/*data/
163 # Only contains non-standard test files.
164 python/
166 # These are (mainly) imported code that we don't want to lint to make imports easier.
167 remote/cdp/Protocol.jsm
168 remote/cdp/test/browser/chrome-remote-interface.js
169 remote/marionette/atom.js
171 # This file explicitly has a syntax error and cannot be parsed by eslint.
172 remote/shared/messagehandler/test/browser/resources/modules/root/invalid.jsm
174 # services/ exclusions
176 # Third party services
177 services/common/kinto-http-client.js
178 services/common/kinto-offline-client.js
180 # Webpack-bundled library
181 services/fxaccounts/FxAccountsPairingChannel.js
183 # Servo is imported.
184 servo/
186 # Test files that we don't want to lint (preprocessed, minified etc)
187 testing/condprofile/condprof/tests/profile
188 testing/mozbase/mozprofile/tests/files/prefs_with_comments.js
189 testing/talos/talos/startup_test/sessionrestore/profile/sessionstore.js
190 testing/talos/talos/startup_test/sessionrestore/profile-manywindows/sessionstore.js
191 testing/talos/talos/tests/devtools/addon/content/pages/
192 # Runing Talos may extract data here, see bug 1435677.
193 testing/talos/talos/tests/tp5n/
194 testing/talos/talos/fis/tp5n/
196 # Mainly third-party related code, that shouldn't be linted.
197 testing/web-platform/
199 # toolkit/ exclusions
201 # Intentionally invalid JS
202 toolkit/components/workerloader/tests/moduleF-syntax-error.js
204 # Built files
205 toolkit/components/pdfjs/content/build
206 toolkit/components/pdfjs/content/web
208 # External code:
209 toolkit/components/reader/Readability.js
210 toolkit/components/reader/Readability-readerable.js
211 toolkit/components/reader/JSDOMParser.js
213 # Uses preprocessing
214 toolkit/components/reader/Readerable.jsm
216 # Uses preprocessing
217 toolkit/mozapps/update/tests/data/xpcshellConstantsPP.js
218 toolkit/modules/AppConstants.jsm
220 # Uses special template formatting.
221 tools/tryselect/selectors/chooser/templates/chooser.html
223 # Ignore preprocessed *(P)refs.js files in update-packaging.
224 tools/update-packaging/**/*refs.js
226 # Ignore backgroundtasks preferences files.
227 toolkit/components/backgroundtasks/defaults
229 # Ignore pre-generated webpack and typescript transpiled files for translations
230 browser/extensions/translations/extension/