Skip to content

Instantly share code, notes, and snippets.

@hzoo
Last active January 13, 2016 05:06
Show Gist options
  • Save hzoo/cc8af2132d1775d8511d to your computer and use it in GitHub Desktop.
Save hzoo/cc8af2132d1775d8511d to your computer and use it in GitHub Desktop.
jscs autofix
# install jscs (globally or not)
npm install jscs
# you will need to install from my branch unless we make a new release
# so in your package.json:
# "jscs": "hzoo/node-jscs#require-semi-cp"
# create a .jscsrc config file with relevant rule
echo '{ "requireSemicolons": true }' > .jscsrc
# run jscs on your src folder/file with --fix
./node_modules/.bin/jscs src --fix
# check git diff to see changes
@CompuIves
Copy link

Hey! I believe
"jscs": "hzoo/jscs#require-semi-cp"
should be
"jscs": "hzoo/node-jscs#require-semi-cp"

@hzoo
Copy link
Author

hzoo commented Jan 7, 2016

Ah thanks - fixed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment