scriptlint icon indicating copy to clipboard operation
scriptlint copied to clipboard

feature request: check if script references are valid

Open moritzjacobs opened this issue 5 years ago • 0 comments

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.

moritzjacobs avatar Feb 14 '20 11:02 moritzjacobs