Skip to content

Instantly share code, notes, and snippets.

@stevenleeg
Last active September 12, 2019 21:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stevenleeg/64bd47a3c6c469d6ad5b0b87794cf23e to your computer and use it in GitHub Desktop.
Save stevenleeg/64bd47a3c6c469d6ad5b0b87794cf23e to your computer and use it in GitHub Desktop.
Add /* eslint-disable */ to the top of all javascript files in your project
#!/usr/bin/env fish
for file in js/{,**/*}*.js
set IFS
set content (cat $file)
echo -e "/* eslint-disable */\n$content" > $file
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment