I have a config with around 100 rules, and running eslint on my project with all these rules takes around 10 seconds. I'd like to identify the slowest rules and eliminate some of them. How do I do this? Is there any profiler tool for eslint?
{ "env": {}, "globals": {}, "ecmaFeatures": {}, "parser": null, "rules": {} }
eslint.org ç®ä¸ã®ã¨ãã JSHint 㨠JSLint æ¦äºã¯ ESLint ã¨ãã第ä¸å¢åã®ç»å ´ã«ãã£ã¦åã®ä¸ã§ãã§ããçµçµããã®ã§æè¿ã® JS éçºã®éã«ã¯ ESLint ã使ã£ã¦ãããã§ã以ä¸ã® .eslintrc ï¼ããã¸ã§ã¯ãåä½ã«ä½ãã ESLint ã®è¨å®ãã¡ã¤ã«ï¼ãåã®å ´åã®åºæ¬å½¢ã欲ãããªã£ãã«ã¼ã«ããªããç§ä¼ã®ã¿ã¬çã«ä¸ã«ä¸ã«ç¶ã足ãã¦ãã®ã§ãç¹ã«å®ç¾©ã®é åºã«ã¯æã£ã¦ãªãã { "rules": { // å®æ°å¼ã«ããæ¡ä»¶ãè¦å "no-constant-condition": 1, // æ å ±ãä¸åå㪠JSDoc ãè¦å "valid-jsdoc": [2, { "requireReturn": false }], // console ã¡ã½ããã注æ "no-console": 1, // alert ã¡ã½ãããè¨±å¯ "no-alert": 0, //
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}