-
-
Save hzoo/cc8af2132d1775d8511d to your computer and use it in GitHub Desktop.
jscs autofix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
Hey! I believe
"jscs": "hzoo/jscs#require-semi-cp"
should be
"jscs": "hzoo/node-jscs#require-semi-cp"
Ah thanks - fixed!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'l make a new release of JSCS later so you don't have to install a specific branch and just do
npm install jscs