Skip to content

Instantly share code, notes, and snippets.

View msgirlperl's full-sized avatar

Miriam Speert Crowley msgirlperl

View GitHub Profile
#!/bin/bash
isInFile=$(cat tsconfig.json | grep -c "\"noUnusedLocals\": true,")
if [ $isInFile -eq 1 ]; then
#toggle Off
echo 'changing to allow unusedLocals'
sed -i '' 's/"noUnusedLocals": true,/"noUnusedLocals": false,/' tsconfig.json
else
#toggle On