Skip to content

Instantly share code, notes, and snippets.

@alimd
Last active December 15, 2015 06:39
Show Gist options
  • Save alimd/5217874 to your computer and use it in GitHub Desktop.
Save alimd/5217874 to your computer and use it in GitHub Desktop.
Javascript es5 and strict mode with jshint configs ;)
/*jshint strict:true, noarg:true, noempty:true, eqeqeq:true, bitwise:true, undef:true, unused:true, nonew:true, browser:true, devel:true, boss:true, curly:false, immed:false, latedef:true, newcap:true, plusplus:false, trailing:true, debug:false, asi:false, evil:false, expr:true, eqnull:false, esnext:false, funcscope:false, globalstrict:false, loopfunc:false */
(function($,undefined){
"use strict";
// your codes ...
})(window.jQuery);

Salam be hame
Hamegi azin be bad az in olgoo baraye code haye .js estefade konin
va hamishe code hatoon ro ba site jshint.com check konin ke validate bashe ;)

@omidgharib
Copy link

@alimd salam ostad mer30
vali man nagerftam yani chi alan bekhaym function tarif konim bayad az olgo bala estefade konim ?

@alimd
Copy link
Author

alimd commented Mar 28, 2013

na kolan har scripti ke mikhay benevisi
boro site jshint.com va script hato validate kon
bad migiri yani chi

@alimd
Copy link
Author

alimd commented May 15, 2013

maxparams:3 too jsbin khata mide !

@arastoo
Copy link

arastoo commented Jun 4, 2013

thanks :-*

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