1# Please DO NOT add more third party files to this file.
2# They should be added to tools/rewriting/ThirdPartyPaths.txt instead.
3
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
9
10!.eslintrc.js
11
12# Always ignore node_modules.
13**/node_modules/
14
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/
21
22# Exclude expected objdirs.
23obj*/
24
25# build/ third-party code
26build/pgo/js-input/
27
28# browser/ exclusions
29browser/app/
30browser/branding/**/firefox-branding.js
31# Gzipped test file.
32browser/base/content/test/general/gZipOfflineChild.html
33browser/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.
35browser/components/sessionstore/test/unit/data/sessionstore_valid.js
36browser/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)
40browser/components/enterprisepolicies/schemas/schema.jsm
41# generated & special files in cld2
42browser/components/translation/cld2/
43# generated or library files in pocket
44browser/components/pocket/content/panels/js/tmpl.js
45
46# Ignore newtab files
47browser/components/newtab/aboutwelcome/content/aboutwelcome.bundle.js
48browser/components/newtab/data/
49browser/components/newtab/logs/
50
51# The only file in browser/locales/ is pre-processed.
52browser/locales/
53# Generated data files
54browser/extensions/formautofill/phonenumberutils/PhoneNumberMetaData.jsm
55
56# Ignore devtools debugger files which aren't intended for linting, and also
57# aren't included in any .eslintignore or .prettierignore file.
58# See https://github.com/firefox-devtools/debugger/blob/master/package.json#L24
59devtools/client/debugger/configs/
60devtools/client/debugger/dist/
61devtools/client/debugger/images/
62devtools/client/debugger/test/
63devtools/client/debugger/index.html
64
65# Ignore devtools preferences files
66devtools/client/preferences/
67
68# Ignore devtools generated code
69devtools/shared/css/generated/properties-db.js
70devtools/client/webconsole/test/node/fixtures/stubs/*.js
71!devtools/client/webconsole/test/node/fixtures/stubs/index.js
72
73# Ignore devtools files testing sourcemaps / code style
74devtools/client/framework/test/code_*
75devtools/client/inspector/markup/test/events_bundle.js
76devtools/client/netmonitor/test/xhr_bundle.js
77devtools/client/webconsole/test/browser/code_bundle_nosource.js
78devtools/client/webconsole/test/browser/code_bundle_invalidmap.js
79devtools/server/tests/xpcshell/setBreakpoint*
80devtools/server/tests/xpcshell/sourcemapped.js
81
82# Testing syntax error
83devtools/client/webconsole/test/browser/test-syntaxerror-worklet.js
84
85# devtools specific format test file
86devtools/server/tests/xpcshell/xpcshell_debugging_script.js
87
88# Generated
89dom/canvas/test/webgl-conf/generated/
90
91# Intentionally invalid/not parsable
92dom/html/test/test_bug677658.html
93dom/svg/test/test_nonAnimStrings.xhtml
94dom/svg/test/test_SVG_namespace_ids.html
95
96# Strange encodings
97dom/base/test/file_bug687859-16.js
98dom/encoding/test/test_utf16_files.html
99dom/encoding/test/file_utf16_be_bom.js
100dom/encoding/test/file_utf16_le_bom.js
101
102# Service workers fixtures which require specific resource caching.
103dom/base/test/file_js_cache.js
104dom/serviceworkers/test/file_js_cache.js
105
106# Intentional broken files
107dom/base/test/file_js_cache_syntax_error.js
108dom/base/test/jsmodules/test_syntaxError.html
109dom/base/test/jsmodules/test_syntaxErrorAsync.html
110dom/base/test/jsmodules/module_badSyntax.js
111dom/base/test/jsmodules/test_syntaxErrorInline.html
112dom/base/test/jsmodules/test_syntaxErrorInlineAsync.html
113dom/base/test/test_bug687859.html
114dom/media/webrtc/tests/mochitests/identity/idp-bad.js
115dom/serviceworkers/test/file_js_cache_syntax_error.js
116dom/serviceworkers/test/parse_error_worker.js
117dom/tests/mochitest/bugs/test_bug531176.html
118dom/webauthn/tests/cbor.js
119dom/workers/test/importScripts_worker_imported3.js
120dom/workers/test/invalid.js
121dom/workers/test/threadErrors_worker1.js
122
123# Bug 1527075: This directory is linted in github repository
124intl/l10n/
125
126# Exclude everything but self-hosted JS
127js/ductwork/
128js/examples/
129js/public/
130js/xpconnect/
131js/src/devtools/
132js/src/jit-test/
133js/src/tests/
134js/src/Y.js
135
136# Fuzzing code for testing only, targeting the JS shell
137js/src/fuzz-tests/
138
139# Uses `#filter substitution`
140mobile/android/app/mobile.js
141mobile/android/app/geckoview-prefs.js
142
143# Not much JS to lint and non-standard at that
144mobile/android/installer/
145mobile/android/locales/
146
147# Pre-processed/pref files
148modules/libpref/greprefs.js
149modules/libpref/init/all.js
150modules/libpref/test/unit/*data/
151
152# Only contains non-standard test files.
153python/
154
155# These are (mainly) imported code that we don't want to lint to make imports easier.
156remote/cdp/Protocol.jsm
157remote/cdp/test/browser/chrome-remote-interface.js
158remote/marionette/atom.js
159
160# services/ exclusions
161
162# Third party services
163services/common/kinto-http-client.js
164services/common/kinto-offline-client.js
165
166# Webpack-bundled library
167services/fxaccounts/FxAccountsPairingChannel.js
168
169# Servo is imported.
170servo/
171
172# Test files that we don't want to lint (preprocessed, minified etc)
173testing/condprofile/condprof/tests/profile
174testing/mozbase/mozprofile/tests/files/prefs_with_comments.js
175testing/talos/talos/scripts/jszip.min.js
176testing/talos/talos/startup_test/sessionrestore/profile/sessionstore.js
177testing/talos/talos/startup_test/sessionrestore/profile-manywindows/sessionstore.js
178testing/talos/talos/tests/devtools/addon/content/pages/
179# Runing Talos may extract data here, see bug 1435677.
180testing/talos/talos/tests/tp5n/
181testing/talos/talos/fis/tp5n/
182
183# Mainly third-party related code, that shouldn't be linted.
184testing/web-platform/
185
186# toolkit/ exclusions
187
188# Ignore generated code from wasm-bindgen
189toolkit/components/extensions/profiler_get_symbols.js
190
191# Intentionally invalid JS
192toolkit/components/workerloader/tests/moduleF-syntax-error.js
193
194# Built files
195toolkit/components/pdfjs/content/build
196toolkit/components/pdfjs/content/web
197
198# External code:
199toolkit/components/reader/Readability.js
200toolkit/components/reader/Readability-readerable.js
201toolkit/components/reader/JSDOMParser.js
202
203# Uses preprocessing
204toolkit/components/reader/Readerable.jsm
205
206# Uses preprocessing
207toolkit/mozapps/update/tests/data/xpcshellConstantsPP.js
208toolkit/modules/AppConstants.jsm
209
210# Uses special template formatting.
211tools/tryselect/selectors/chooser/templates/chooser.html
212
213# Ignore preprocessed *(P)refs.js files in update-packaging.
214tools/update-packaging/**/*refs.js
215
216# Ignore backgroundtasks preferences files.
217toolkit/components/backgroundtasks/defaults
218
219# Ignore pre-generated webpack and typescript transpiled files for translations
220browser/extensions/translations/extension/
221