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