Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
'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']),
]),
},
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'
)
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'
'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'])
])
}