-
Notifications
You must be signed in to change notification settings - Fork 2
/
.ls-lint.yml
48 lines (45 loc) · 1.23 KB
/
.ls-lint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Folder and file naming standard
#
# kebab-case - file and direectories (ie.: components/auto-layout/auto-layout.tsx)
# kebab-case - used for any other folder and file
# PascalCase - should be avoided
# camelCase - should be avoided
ls:
# global file rules
# .js and sub-extensions
.js: kebab-case
.config.js: lowercase
# .ts and sub-extensions
.ts: kebab-case
.test.ts: kebab-case
.mock.ts: kebab-case
.types.ts: kebab-case
.utils.ts: kebab-case
.mapping.ts: kebab-case
.definition.ts: kebab-case
.constants.ts: kebab-case
.d.ts: kebab-case
# .tsx and sub-extensions
.tsx: kebab-case
.stories.tsx: kebab-case
.styles.ts: kebab-case
.template.ts: kebab-case
# directory rules
./**/{__tests__,__mocks__}:
.dir: lowercase
ignore:
- .git
- node_modules
- dist
- .storybook
- storybook-static
- babel.config.js
- sst.config.ts
# package specific - directory patterns not yet implemented for ignore: https://ls-lint.org/1.x/configuration/the-basics.html#using-directory-patterns
- apps
- library/foundations/node_modules
- library/core-components/node_modules
- library/radius-examples/node_modules
- library/foundations/dist
- library/core-components/dist
- library/radius-examples/dist