-
Notifications
You must be signed in to change notification settings - Fork 1
/
.ls-lint.yml
55 lines (54 loc) · 1.43 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
49
50
51
52
53
54
55
ls:
.js: kebab-case | pointcase
.ts: kebab-case | pointcase
.d.ts: kebab-case
.config.js: kebab-case
src:
assets:
.png: kebab-case | regex:[^+]
.jpg: kebab-case | regex:[^+]
.jpeg: kebab-case | regex:[^+]
.webp: kebab-case | regex:[^+]
.svg: kebab-case | regex:[^+]
.mp4: kebab-case | regex:[^+]
.webm: kebab-case | regex:[^+]
components:
.js: PascalCase | regex:[index]+
.ts: PascalCase | regex:[index]+
.tsx: PascalCase | regex:[index]+
.scss: PascalCase
.view.tsx: PascalCase
.module.scss: PascalCase
.stories.js: PascalCase
.stories.tsx: PascalCase
.controller.tsx: PascalCase
data:
.js: kebab-case
.ts: kebab-case
.json: kebab-case
hooks:
.js: kebab-case
.ts: kebab-case
pages:
.js: kebab-case | regex:^_[a-z-.]* | regex:^\[\w*\] #regex for kebab-case with preceeding underscore or [] for dynamic routing
.tsx: kebab-case | regex:^_[a-z-.]* | regex:^\[\w*\] #regex for kebab-case with preceeding underscore or [] for dynamic routing
services:
.js: kebab-case
.ts: kebab-case
styles:
.scss: kebab-case
.module.scss: kebab-case
utils:
.js: kebab-case
.ts: kebab-case
.d.ts: kebab-case
svgs:
.svg: PascalCase
scripts:
templates:
.js: PascalCase
.stories.js: PascalCase
ignore:
- node_modules
- .next
- out