Skip to content

feature request: check if script references are valid #14

@moritzjacobs

Description

@moritzjacobs

For example:

"scripts": {
    "test": "run-s test:unit lint",
    "test:unit": "jest",
    "test:lint": "eslint ./src"
}

should throw a scriptlint error because the script was renamed from lint to test:lint but the user forgot to change the reference in the test script as well.

This should be smart enough to go for npm run <foo>, yarn <foo>, and all variants of npm-run-all/run-p etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions