FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
patternfly-elements/commitlint.config.js at main · chubara62372/patternfly-elements · GitHub
chubara62372
/
patternfly-elements
Public
forked from
patternfly/patternfly-elements
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
patternfly-elements
/
commitlint.config.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
33 lines (30 loc) · 814 Bytes
Breadcrumbs
patternfly-elements
/
commitlint.config.js
Copy path
File metadata and controls
33 lines (30 loc) · 814 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
import
{
readdir
}
from
'node:fs/promises'
;
import
{
fileURLToPath
}
from
'node:url'
;
const
normalizeWorkspace
=
async
x
=>
{
const
ents
=
await
readdir
(
fileURLToPath
(
new
URL
(
x
,
import
.
meta
.
url
)
)
,
{
withFileTypes
:
true
}
)
;
return
ents
.
filter
(
ent
=>
ent
.
isDirectory
(
)
)
.
map
(
ent
=>
ent
.
name
.
replace
(
'pf-'
,
''
)
)
;
}
;
export
default
(
{
extends
:
[
'@commitlint/config-conventional'
]
,
rules
:
{
'body-max-length'
:
[
0
]
,
'body-max-line-length'
:
[
0
]
,
'scope-enum'
:
[
2
,
'always'
,
[
'ci'
,
'config'
,
'create'
,
'dependencies'
,
'deps'
,
'docs'
,
'scripts'
,
'elements'
,
'core'
,
'tools'
,
...
await
normalizeWorkspace
(
'elements'
)
,
...
await
normalizeWorkspace
(
'core'
)
,
...
await
normalizeWorkspace
(
'tools'
)
,
]
]
,
}
,
}
)
;
Back
|
FazBrowse Home
|
New Git URL