From 058ff3446ce86416456c327a9f299fc8de8fc84a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Fern=C3=A1ndez=20Haro?= Date: Tue, 17 Dec 2024 12:36:08 +0100 Subject: [PATCH] Update package folder lint paths (#204230) ## Summary I noticed that the precommit_hook was failing locally for me because these paths are outdated. cc @gsoldevila --------- Co-authored-by: Gerard Soldevila --- src/dev/precommit_hook/casing_check_config.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/dev/precommit_hook/casing_check_config.js b/src/dev/precommit_hook/casing_check_config.js index 249a271d5a38f..b437c15688b94 100644 --- a/src/dev/precommit_hook/casing_check_config.js +++ b/src/dev/precommit_hook/casing_check_config.js @@ -98,7 +98,19 @@ export const IGNORE_FILE_GLOBS = [ * * @type {Array} */ -export const KEBAB_CASE_DIRECTORY_GLOBS = ['packages/*', 'x-pack', 'x-pack/packages/*']; +export const KEBAB_CASE_DIRECTORY_GLOBS = [ + 'packages/*', + 'x-pack', + 'x-pack/packages/*', + 'src/core/packages/*/*', + 'src/platform/packages/private/*', + 'src/platform/packages/shared/*', + 'x-pack/platform/packages/private/*', + 'x-pack/platform/packages/shared/*', + 'x-pack/solutions/observability/packages/*', + 'x-pack/solutions/search/packages/*', + 'x-pack/solutions/security/packages/*', +]; /** * These patterns are matched against directories and indicate