2
0
mirror of https://github.com/chubin/cheat.sheets synced 2024-11-19 03:25:44 +00:00
cheat.sheets/sheets/jslint
terminalforlife d7473ac185 Fix trailing whitespace on all files
Tidy files; tidy soul!
2020-02-22 02:47:54 +00:00

18 lines
528 B
Plaintext

# jslint
#
# The JavaScript Code Quality Tool written by Dougls Crockford
# to install jslint
sudo npm install jslint -g
# lint all the JavaScript files in the current directory:
find . -name '*.js' -print0 | xargs -0 jslint
# lint all the JavaScript files in a targeted directory:
find ./public/javascripts/ -name '*.js' -print0 | xargs -0 jslint
# Parameter-less options passed to jslint are all set to true by default,
# if you want to set it false, just specify 'false' after the option
jslint --bitwise false hello.js