Skip to content

🚀 Feature: rule prefer-scoped-name #1875

Description

@wesleytodd

Feature Request Checklist

Overview

I will be implementing a "safe list" rule for scopes which we support folks publishing with and wanted to propose I do so here instead of on top of this plugin in our internal code base. Something like this:

rules: {
  // Require a single scope, any unrecognized will be fixed to this value
  'package-json/prefer-scoped-name": ['error', { default: '@foo' }],

  // Prefer the @foo scope, any unrecognized will be fixed to this value
  // also allow the @bar scope which will neither error or be fixed
  'package-json/prefer-scoped-name": ['error', {
    default: '@foo',
    allowed: ['@bar']
  }]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: accepting prsPlease, send a pull request to resolve this! 🙏type: featureNew enhancement or request 🚀

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions