We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67e50a4 commit f49e755Copy full SHA for f49e755
.commitlintrc.js
@@ -1,7 +1,13 @@
1
const fs = require('fs')
2
const path = require('path')
3
4
-const VuepressPackages = fs.readdirSync(path.resolve(__dirname, 'packages/@vuepress'))
+const vuepressPackages = fs.readdirSync(path.resolve(__dirname, 'packages/@vuepress'))
5
+const availableScopes = [
6
+ 'all',
7
+ 'cli',
8
+ 'zh',
9
+ ...vuepressPackages
10
+]
11
12
module.exports = {
13
extends: [
@@ -12,10 +18,9 @@ module.exports = {
18
2,
19
'always',
14
20
[
15
- 'cli',
16
- 'zh',
17
- ...VuepressPackages
- ].map(name => `$${name}`)
21
+ ...availableScopes,
22
+ ...availableScopes.map(name => `$${name}`)
23
+ ]
24
]
25
}
26
0 commit comments