-
Notifications
You must be signed in to change notification settings - Fork 1
no unix single ampersand
tannerbaum edited this page Feb 26, 2020
·
2 revisions
This rule is not fixable ✖︎
Using &
as a way of parallelizing commands is a *nix bash idiom. It will not work the same way on for example Windows machines.
{
"dev:watch": "npm run dev:watch:scripts & npm run dev:watch:styles" 🚨
}
yields
Use of unix single ampersand (&) in script 'dev:watch' is not allowed, consider using npm-run-all/run-p (no-unix-single-ampersand)
Use npm-run-all:
{
"dev:watch": "run-p dev:watch:scripts dev:watch:styles" 🟢
}
- Motivation
- The scriptlint "standard" tl;dr
-
The scriptlint "standard"
- Rules enforceable via the scriptlint CLI
- Best practices
- The scriptlint CLI
- Contributing to scriptlint