Skip to content

Commit

Permalink
build: update commitlint
Browse files Browse the repository at this point in the history
  • Loading branch information
Mister-Hope committed Jan 26, 2024
1 parent 00aba51 commit 1db7729
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .commitlintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,16 @@ const getSubDirectories = (dir) =>

const pluginPackages = getSubDirectories(path.resolve(__dirname, 'plugins'))
const themePackages = getSubDirectories(path.resolve(__dirname, 'themes'))
const toolsPackages = getSubDirectories(path.resolve(__dirname, 'tools'))

module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
'scope-enum': [2, 'always', ['e2e', ...pluginPackages, ...themePackages]],
'scope-enum': [
2,
'always',
['e2e', ...pluginPackages, ...themePackages, ...toolsPackages],
],
'footer-max-line-length': [0],
},
}

0 comments on commit 1db7729

Please sign in to comment.