How to use the @commitlint/config-lerna-scopes.rules 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 Synerise / synerise-design / commitlint.config.js View on Github external
'scope-enum': ctx =>
      scopes.rules['scope-enum'](ctx).then(([level, applicable, packages]) => [
        level,
        applicable,
        packages.map(pkg => (pkg.includes(prefix) ? pkg.replace(prefix, '') : pkg)).concat(['scripts']),
      ]),
  },
github telus / tds-core / commitlint.config.js View on Github external
const applyCustomScope = () => {
  return Promise.resolve(
    packages.rules[`scope-enum`]().then(scopes => {
      const config = scopes
      config[2].push(
        'config',
        'deps',
        'docs',
        'e2e',
        'github',
        'guide',
        'openshift',
        'other',
        'scripts',
        'shared',
        'packages',
        'publish',
        'vscode'
      )
github telus / tds-community / commitlint.config.js View on Github external
const applyCustomScope = () => {
  return Promise.resolve(
    packages.rules[`scope-enum`]().then(scopes => {
      const config = scopes
      config[2].push(
        'config',
        'deps',
        'docs',
        'e2e',
        'github',
        'guide',
        'openshift',
        'other',
        'scripts',
        'shared',
        'packages',
        'publish',
        'samples',
        'vscode'
github pluralsight / design-system / commitlint.config.js View on Github external
'scope-enum': ctx =>
      scopes.rules['scope-enum'](ctx).then(([level, applicable, packages]) => [
        level,
        applicable,
        packages
          .map(pkg => (pkg.includes(prefix) ? pkg.replace(prefix, '') : pkg))
          .concat(['examples', 'scripts'])
      ])
  }

@commitlint/config-lerna-scopes

Shareable commitlint config enforcing lerna package and workspace names as scopes

MIT
Latest version published 3 months ago

Package Health Score

92 / 100
Full package analysis