From 8e88600c04177d047215c209076ef62990519b59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Farkas?= Date: Fri, 27 Aug 2021 08:27:56 +0200 Subject: [PATCH] style-guide: frontend: describe directory naming style (#38607) * style-guide: frontend: describe directory naming style * apply recommended changes Co-authored-by: Ursula Kallio <73951760+osg-grafana@users.noreply.github.com> Co-authored-by: Ursula Kallio <73951760+osg-grafana@users.noreply.github.com> --- contribute/style-guides/frontend.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contribute/style-guides/frontend.md b/contribute/style-guides/frontend.md index 0548b46f8b8..70dc8d15ace 100644 --- a/contribute/style-guides/frontend.md +++ b/contribute/style-guides/frontend.md @@ -244,6 +244,8 @@ For files exporting multiple utility functions, use the name that describes the - Use `reducers.ts` Redux reducers. - Use `*.test.ts(x)` for test files. +- Use kebab case for directory names: lowercase, words delimited by hyphen ( `-` ). For example, `features/new-important-feature/utils.ts`. + ### Code organization Organize your code in a directory that encloses feature code: