Skip to content
This repository has been archived by the owner on May 22, 2024. It is now read-only.

[package-json-lint] Create a mechanism to flag a project as an application, module, or devModule #696

Closed
ryanthemanuel opened this issue Aug 16, 2021 · 0 comments · Fixed by #700

Comments

@ryanthemanuel
Copy link
Contributor

Story

Description

As a developer of package-json-lint, I want to be able to flag a given project as an application, module, or devModule

Motivation

So that I can develop rules that flex their behavior based on project type

Definition of Done

We'll know we're done when:

  • We allow consumers to specify a "type" in their package-json-lint config like:
  "package-json-lint": {
    "extends": "@cerner/package-json-lint-config-terra",
    "type": "<application>|<module>|<devModule>",
    "rules": {
      "require-no-terra-base-peer-dependency-versions": "error",
      "require-theme-context-versions": "off"
    }
  }

With this, the type can be used by all rules when necessary.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
2 participants