From 58984048c6d59d2c91bd489b3544e9092f618865 Mon Sep 17 00:00:00 2001 From: Mark Banner Date: Mon, 20 May 2024 13:47:38 +0000 Subject: [PATCH] Bug 1897221 - Exclude more Rust/mobile build artifacts from ESLint & Prettier. r=frontend-codestyle-reviewers,Gijs Generated.txt doesn't seem the right place because that's for pre-built files that are added to the tree. Hence adding to the ignore files. Differential Revision: https://phabricator.services.mozilla.com/D210692 --- .eslintignore | 11 +++++++++++ .prettierignore | 11 +++++++++++ 2 files changed, 22 insertions(+) diff --git a/.eslintignore b/.eslintignore index 3f5d11707735..59ee6bef1697 100644 --- a/.eslintignore +++ b/.eslintignore @@ -190,6 +190,10 @@ mobile/android/app/geckoview-prefs.js mobile/android/installer/ mobile/android/locales/ +# Android - Web extensions: manifest.json files may be generated by the build system. +mobile/android/android-components/components/feature/readerview/src/main/assets/extensions/readerview/manifest.json +mobile/android/android-components/samples/browser/src/main/assets/extensions/test/manifest.json + # TODO - Bug 1881094: temporarily ignored for firefox-android migration mobile/android/android-components/components/browser/errorpages/src/main/assets/errorPageScripts.js mobile/android/android-components/components/browser/icons/src/main/assets/extensions/browser-icons/icons.js @@ -232,6 +236,13 @@ services/fxaccounts/FxAccountsPairingChannel.sys.mjs # Servo is imported. servo/ +# Rust/Cargo output from running `cargo` directly +target/ +servo/ports/geckolib/target/ +dom/base/rust/target/ +servo/components/style/target/ +dom/webgpu/tests/cts/vendor/target/ + # Test files that we don't want to lint (preprocessed, minified etc) testing/condprofile/condprof/tests/profile testing/mozbase/mozprofile/tests/files/prefs_with_comments.js diff --git a/.prettierignore b/.prettierignore index 11e3c43df8e1..d9e4555b8585 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1158,6 +1158,10 @@ mobile/android/app/geckoview-prefs.js mobile/android/installer/ mobile/android/locales/ +# Android - Web extensions: manifest.json files may be generated by the build system. +mobile/android/android-components/components/feature/readerview/src/main/assets/extensions/readerview/manifest.json +mobile/android/android-components/samples/browser/src/main/assets/extensions/test/manifest.json + # Pre-processed/pref files modules/libpref/greprefs.js modules/libpref/init/all.js @@ -1184,6 +1188,13 @@ services/fxaccounts/FxAccountsPairingChannel.sys.mjs # Servo is imported. servo/ +# Rust/Cargo output from running `cargo` directly +target/ +servo/ports/geckolib/target/ +dom/base/rust/target/ +servo/components/style/target/ +dom/webgpu/tests/cts/vendor/target/ + # Test files that we don't want to lint (preprocessed, minified etc) testing/condprofile/condprof/tests/profile testing/mozbase/mozprofile/tests/files/prefs_with_comments.js