Skip to content

Commit

Permalink
feat(dx): add composable scopes
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbbreuer committed Apr 28, 2022
1 parent 22b9767 commit 4847086
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
@@ -1,10 +1,15 @@
const fs = require('fs');
const path = require('path');

const composables = fs.readdirSync(path.resolve(__dirname, 'src/composables'));

module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
'scope-enum': [
2,
'always',
['', 'docs', 'example', 'release', 'wallet'],
['', 'docs', 'example', 'release', 'dx', ...composables],
],
},
};

0 comments on commit 4847086

Please sign in to comment.