ãJavaScriptã®æ§æãã§ãã«ã¼JSLintãEmacsãã使ããã§ç´¹ä»ããJSLintã¯ãevalãããã¨ãevalã¯evilï¼éªæªï¼ã ãã¨å¿ ãæå¥ãè¨ãã¾ããããè¨ããã¦ãevalã使ãããã¨ãã¯ããã¾ããä¾ãã°ãå®ç´ãªJSONãã³ã¼ããä½ãããå ´åï¼ /* evil.js */ function decodeJson(jsonText) { return eval('(' + jsonText + ')'); } JSLintã¯ããè¨ãã¾ãã evil.js:3: character 10: eval is evil. return eval('(' + jsonText + ')'); ãã¼ãããããããããªã¨ãã次ã®åªæãæ¸ãã¨JSLintãé»ãããã§ãã /* evil.js */ /*jslint evil: true */ function decodeJson(js
{{#tags}}- {{label}}
{{/tags}}