How to use the @commitlint/config-lerna-scopes.getPackages function in @commitlint/config-lerna-scopes

To help you get started, we’ve selected a few @commitlint/config-lerna-scopes examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github brandingbrand / flagship / commitlint.config.js View on Github external
    'scope-enum': ctx => getPackages(ctx).then(packages => [2, 'always', [
      ...packages,
      'package',
      'release'
    ]])
  }

@commitlint/config-lerna-scopes

Shareable commitlint config enforcing lerna package and workspace names as scopes

MIT
Latest version published 2 months ago

Package Health Score

95 / 100
Full package analysis