{"_id":"eslint-plugin-extra-rules","_rev":"3337080","name":"eslint-plugin-extra-rules","description":"My custom eslint rules in addition to the ones provided at http://eslint.org/","dist-tags":{"latest":"0.0.0-development"},"maintainers":[{"name":"bahmutov","email":"gleb.bahmutov@gmail.com"}],"time":{"modified":"2024-07-10T08:02:46.000Z","created":"2015-12-08T18:55:42.047Z","0.0.0-development":"2018-03-18T19:55:48.959Z","0.8.1":"2017-07-02T19:32:26.381Z","0.8.0":"2017-05-30T14:47:09.571Z","0.7.0":"2017-05-30T14:37:34.852Z","0.6.1":"2015-12-08T19:27:45.800Z","0.6.0":"2015-12-08T19:13:17.533Z","0.5.0":"2015-12-08T19:03:12.912Z","0.4.3":"2015-12-08T18:55:42.047Z"},"users":{},"author":{"name":"Gleb Bahmutov","email":"gleb.bahmutov@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/bahmutov/eslint-rules.git"},"versions":{"0.0.0-development":{"name":"eslint-plugin-extra-rules","description":"My custom eslint rules in addition to the ones provided at http://eslint.org/","version":"0.0.0-development","author":{"name":"Gleb Bahmutov","email":"gleb.bahmutov@gmail.com"},"bugs":{"url":"https://github.com/bahmutov/eslint-rules/issues"},"config":{"pre-git":{"commit-msg":"simple","pre-commit":["npm run build","npm test","npm run no-long-files"],"pre-push":["npm run size"],"post-commit":[],"post-merge":[]},"next-update":{"skip":[]}},"contributors":[{"name":"Eric Wooley","email":"ericwooley@gmail.com"}],"dependencies":{"console-assert":"1.0.0","espree":"3.0.0-alpha-1","quote":"0.4.0"},"devDependencies":{"eslint":"1.10.3","git-issues":"1.3.1","grunt":"0.4.5","grunt-cli":"0.1.13","grunt-contrib-jshint":"0.12.0","grunt-deps-ok":"0.9.0","grunt-eslint":"17.3.2","grunt-filenames":"0.4.0","grunt-jscs":"3.0.1","grunt-nice-package":"0.10.4","gt":"0.10.0","jshint-summary":"0.4.0","matchdep":"1.0.1","next-update-travis":"1.7.1","pre-git":"3.17.1","semantic-release":"6.3.6"},"engines":{"node":"> 0.10.*"},"files":["*.js","!Gruntfile.js","src"],"homepage":"https://github.com/bahmutov/eslint-rules","keywords":["custom","eslint","javascript","lint","rule","rules"],"license":"MIT","main":"index.js","release":{"analyzeCommits":"simple-commit-message"},"repository":{"type":"git","url":"git+https://github.com/bahmutov/eslint-rules.git"},"scripts":{"build":"grunt","commit":"git-issues && commit-wizard","issues":"git-issues","no-long-files":"eslint --rulesdir . -c test/long-file.json test/long-file.js","semantic-release":"semantic-release pre && npm publish && semantic-release post","size":"t=\"$(npm pack .)\"; wc -c \"${t}\"; tar tvf \"${t}\"; rm \"${t}\";","test":"gt test/test.js test/is-constant.js"},"gitHead":"4652c2e295449726f81e327b24021c2bfa636c68","_id":"eslint-plugin-extra-rules@0.0.0-development","_shasum":"c3c1aed3086c39fd83c1b7a4fa3df9884b4abb48","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.13.1","_npmUser":{"name":"bahmutov","email":"gleb.bahmutov@gmail.com"},"dist":{"shasum":"c3c1aed3086c39fd83c1b7a4fa3df9884b4abb48","size":5762,"noattachment":false,"key":"/eslint-plugin-extra-rules/-/eslint-plugin-extra-rules-0.0.0-development.tgz","tarball":"http://registry.cnpm.dingdandao.com/eslint-plugin-extra-rules/download/eslint-plugin-extra-rules-0.0.0-development.tgz"},"maintainers":[{"name":"bahmutov","email":"gleb.bahmutov@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-plugin-extra-rules_0.0.0-development_1521402948920_0.6972178969470573"},"_hasShrinkwrap":false,"publish_time":1521402948959,"_cnpm_publish_time":1521402948959,"_cnpmcore_publish_time":"2021-12-16T22:19:36.608Z"},"0.8.1":{"name":"eslint-plugin-extra-rules","description":"My custom eslint rules in addition to the ones provided at http://eslint.org/","version":"0.8.1","author":{"name":"Gleb Bahmutov","email":"gleb.bahmutov@gmail.com"},"bugs":{"url":"https://github.com/bahmutov/eslint-rules/issues"},"config":{"pre-git":{"commit-msg":"simple","pre-commit":["npm run build","npm test","npm run no-long-files"],"pre-push":["npm run size"],"post-commit":[],"post-merge":[]}},"contributors":[{"name":"Eric Wooley","email":"ericwooley@gmail.com"}],"dependencies":{"console-assert":"1.0.0","espree":"3.0.0-alpha-1","quote":"0.4.0"},"devDependencies":{"eslint":"1.10.3","git-issues":"1.3.1","grunt":"0.4.5","grunt-cli":"0.1.13","grunt-contrib-jshint":"0.11.3","grunt-deps-ok":"0.9.0","grunt-eslint":"17.3.2","grunt-filenames":"0.4.0","grunt-jscs":"3.0.1","grunt-nice-package":"0.10.4","gt":"0.10.0","jshint-summary":"0.4.0","matchdep":"1.0.1","pre-git":"3.14.0","semantic-release":"6.3.6"},"engines":{"node":"> 0.10.*"},"files":["*.js","!Gruntfile.js","src"],"homepage":"https://github.com/bahmutov/eslint-rules","keywords":["custom","eslint","javascript","lint","rule","rules"],"license":"MIT","main":"index.js","repository":{"type":"git","url":"git+https://github.com/bahmutov/eslint-rules.git"},"scripts":{"build":"grunt","commit":"git-issues && commit-wizard","issues":"git-issues","no-long-files":"eslint --rulesdir . -c test/long-file.json test/long-file.js","semantic-release":"semantic-release pre && npm publish && semantic-release post","size":"t=\"$(npm pack .)\"; wc -c \"${t}\"; tar tvf \"${t}\"; rm \"${t}\";","test":"gt test/test.js test/is-constant.js"},"gitHead":"c6a3363c5754a911abcd7715caa599672c24c7d9","_id":"eslint-plugin-extra-rules@0.8.1","_shasum":"0683e2e7fad9261e7444f951e1803defe4ee9b77","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.0","_npmUser":{"name":"bahmutov","email":"gleb.bahmutov@gmail.com"},"dist":{"shasum":"0683e2e7fad9261e7444f951e1803defe4ee9b77","size":5709,"noattachment":false,"key":"/eslint-plugin-extra-rules/-/eslint-plugin-extra-rules-0.8.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/eslint-plugin-extra-rules/download/eslint-plugin-extra-rules-0.8.1.tgz"},"maintainers":[{"name":"bahmutov","email":"gleb.bahmutov@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-plugin-extra-rules-0.8.1.tgz_1499023945310_0.7202610527165234"},"directories":{},"publish_time":1499023946381,"_hasShrinkwrap":false,"_cnpm_publish_time":1499023946381,"_cnpmcore_publish_time":"2021-12-16T22:19:36.813Z"},"0.8.0":{"name":"eslint-plugin-extra-rules","description":"My custom eslint rules in addition to the ones provided at http://eslint.org/","version":"0.8.0","author":{"name":"Gleb Bahmutov","email":"gleb.bahmutov@gmail.com"},"bugs":{"url":"https://github.com/bahmutov/eslint-rules/issues"},"config":{"pre-git":{"commit-msg":"simple","pre-commit":["npm run build","npm test","npm run no-long-files"],"pre-push":["npm run size"],"post-commit":[],"post-merge":[]}},"contributors":[{"name":"Eric Wooley","email":"ericwooley@gmail.com"}],"dependencies":{"espree":"3.0.0-alpha-1","quote":"0.4.0"},"devDependencies":{"eslint":"1.10.3","git-issues":"1.3.1","grunt":"0.4.5","grunt-cli":"0.1.13","grunt-contrib-jshint":"0.11.3","grunt-deps-ok":"0.9.0","grunt-eslint":"17.3.2","grunt-filenames":"0.4.0","grunt-jscs":"3.0.1","grunt-nice-package":"0.10.4","gt":"0.10.0","jshint-summary":"0.4.0","matchdep":"1.0.1","pre-git":"3.14.0","semantic-release":"6.3.6"},"engines":{"node":"> 0.10.*"},"files":["*.js","!Gruntfile.js","src"],"homepage":"https://github.com/bahmutov/eslint-rules","keywords":["custom","eslint","javascript","lint","rule","rules"],"license":"MIT","main":"index.js","repository":{"type":"git","url":"git+https://github.com/bahmutov/eslint-rules.git"},"scripts":{"build":"grunt","commit":"git-issues && commit-wizard","issues":"git-issues","no-long-files":"eslint --rulesdir . -c test/long-file.json test/long-file.js","semantic-release":"semantic-release pre && npm publish && semantic-release post","size":"t=\"$(npm pack .)\"; wc -c \"${t}\"; tar tvf \"${t}\"; rm \"${t}\";","test":"gt test/test.js test/is-constant.js"},"gitHead":"8669865ac3fc651cf3c0285c7b3f5d6446952d89","_id":"eslint-plugin-extra-rules@0.8.0","_shasum":"0439e956a2620a75f718449ddae9dc39041b2b02","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.3","_npmUser":{"name":"bahmutov","email":"gleb.bahmutov@gmail.com"},"dist":{"shasum":"0439e956a2620a75f718449ddae9dc39041b2b02","size":5683,"noattachment":false,"key":"/eslint-plugin-extra-rules/-/eslint-plugin-extra-rules-0.8.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/eslint-plugin-extra-rules/download/eslint-plugin-extra-rules-0.8.0.tgz"},"maintainers":[{"name":"bahmutov","email":"gleb.bahmutov@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-plugin-extra-rules-0.8.0.tgz_1496155628471_0.11541538406163454"},"directories":{},"publish_time":1496155629571,"_hasShrinkwrap":false,"_cnpm_publish_time":1496155629571,"_cnpmcore_publish_time":"2021-12-16T22:19:37.022Z"},"0.7.0":{"name":"eslint-plugin-extra-rules","description":"My custom eslint rules in addition to the ones provided at http://eslint.org/","version":"0.7.0","author":{"name":"Gleb Bahmutov","email":"gleb.bahmutov@gmail.com"},"bugs":{"url":"https://github.com/bahmutov/eslint-rules/issues"},"config":{"pre-git":{"commit-msg":"simple","pre-commit":["npm run build","npm test","npm run no-long-files"],"pre-push":["npm run size"],"post-commit":[],"post-merge":[]}},"contributors":[{"name":"Eric Wooley","email":"ericwooley@gmail.com"}],"dependencies":{"espree":"3.0.0-alpha-1","quote":"0.4.0"},"devDependencies":{"eslint":"1.10.3","git-issues":"1.3.1","grunt":"0.4.5","grunt-cli":"0.1.13","grunt-contrib-jshint":"0.11.3","grunt-deps-ok":"0.9.0","grunt-eslint":"17.3.2","grunt-filenames":"0.4.0","grunt-jscs":"3.0.1","grunt-nice-package":"0.10.4","gt":"0.10.0","jshint-summary":"0.4.0","matchdep":"1.0.1","pre-git":"3.14.0","semantic-release":"6.3.6"},"engines":{"node":"> 0.10.*"},"files":["*.js","!Gruntfile.js","src"],"homepage":"https://github.com/bahmutov/eslint-rules","keywords":["custom","eslint","javascript","lint","rule","rules"],"license":"MIT","main":"index.js","repository":{"type":"git","url":"git+https://github.com/bahmutov/eslint-rules.git"},"scripts":{"build":"grunt","commit":"git-issues && commit-wizard","issues":"git-issues","no-long-files":"eslint --rulesdir . -c test/long-file.json test/long-file.js","semantic-release":"semantic-release pre && npm publish && semantic-release post","size":"t=\"$(npm pack .)\"; wc -c \"${t}\"; tar tvf \"${t}\"; rm \"${t}\";","test":"gt test/test.js test/is-constant.js"},"gitHead":"edba13f57a9eef18f6b6efeae76fad0c156dfbcd","_id":"eslint-plugin-extra-rules@0.7.0","_shasum":"d2013ace51feb30073e209fd921d1305e91261e6","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.3","_npmUser":{"name":"bahmutov","email":"gleb.bahmutov@gmail.com"},"dist":{"shasum":"d2013ace51feb30073e209fd921d1305e91261e6","size":5682,"noattachment":false,"key":"/eslint-plugin-extra-rules/-/eslint-plugin-extra-rules-0.7.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/eslint-plugin-extra-rules/download/eslint-plugin-extra-rules-0.7.0.tgz"},"maintainers":[{"name":"bahmutov","email":"gleb.bahmutov@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-plugin-extra-rules-0.7.0.tgz_1496155053638_0.6629908743780106"},"directories":{},"publish_time":1496155054852,"_hasShrinkwrap":false,"_cnpm_publish_time":1496155054852,"_cnpmcore_publish_time":"2021-12-16T22:19:37.222Z"},"0.6.1":{"name":"eslint-plugin-extra-rules","description":"My custom eslint rules in addition to the ones provided at http://eslint.org/","version":"0.6.1","author":{"name":"Gleb Bahmutov","email":"gleb.bahmutov@gmail.com"},"bugs":{"url":"https://github.com/bahmutov/eslint-rules/issues"},"config":{"pre-git":{"commit-msg":"validate-commit-msg","pre-commit":["npm run build","npm test","npm run no-long-files"],"pre-push":["npm run size"],"post-commit":[],"post-merge":[]}},"contributors":[{"name":"Eric Wooley","email":"ericwooley@gmail.com"}],"files":["*.js","!Gruntfile.js","src"],"dependencies":{"espree":"3.0.0-alpha-1","quote":"0.4.0"},"devDependencies":{"eslint":"1.10.3","git-issues":"1.2.0","grunt":"0.4.5","grunt-cli":"0.1.13","grunt-contrib-jshint":"0.11.3","grunt-deps-ok":"0.9.0","grunt-eslint":"17.3.1","grunt-filenames":"0.4.0","grunt-jscs":"2.4.0","grunt-nice-package":"0.10.1","gt":"0.9.1","jshint-summary":"0.4.0","matchdep":"1.0.0","pre-git":"2.0.2","semantic-release":"6.0.3"},"engines":{"node":"> 0.10.*"},"homepage":"https://github.com/bahmutov/eslint-rules","keywords":["eslint","lint","javascript","rule","rules","custom"],"license":"MIT","main":"index.js","repository":{"type":"git","url":"git+https://github.com/bahmutov/eslint-rules.git"},"scripts":{"build":"grunt","test":"gt test/test.js test/is-constant.js","no-long-files":"eslint --rulesdir . -c test/long-file.json test/long-file.js","commit":"git-issues && commit-wizard","issues":"git-issues","semantic-release":"semantic-release pre && npm publish && semantic-release post","size":"t=\"$(npm pack .)\"; wc -c \"${t}\"; tar tvf \"${t}\"; rm \"${t}\";"},"gitHead":"f0bf41813ca2ce293ecceabb28603dcf12a669c1","_id":"eslint-plugin-extra-rules@0.6.1","_shasum":"1e9b74deaf6211225b006f107351035d76bbe930","_from":".","_npmVersion":"2.14.14","_nodeVersion":"4.2.3","_npmUser":{"name":"bahmutov","email":"gleb.bahmutov@gmail.com"},"dist":{"shasum":"1e9b74deaf6211225b006f107351035d76bbe930","size":5750,"noattachment":false,"key":"/eslint-plugin-extra-rules/-/eslint-plugin-extra-rules-0.6.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/eslint-plugin-extra-rules/download/eslint-plugin-extra-rules-0.6.1.tgz"},"maintainers":[{"name":"bahmutov","email":"gleb.bahmutov@gmail.com"}],"directories":{},"publish_time":1449602865800,"_hasShrinkwrap":false,"_cnpm_publish_time":1449602865800,"_cnpmcore_publish_time":"2021-12-16T22:19:37.487Z"},"0.6.0":{"name":"eslint-plugin-extra-rules","description":"My custom eslint rules in addition to the ones provided at http://eslint.org/","version":"0.6.0","author":{"name":"Gleb Bahmutov","email":"gleb.bahmutov@gmail.com"},"bugs":{"url":"https://github.com/bahmutov/eslint-rules/issues"},"config":{"pre-git":{"commit-msg":"validate-commit-msg","pre-commit":["npm run build","npm test","npm run no-long-files"],"pre-push":["npm run size"],"post-commit":[],"post-merge":[]}},"contributors":[{"name":"Eric Wooley","email":"ericwooley@gmail.com"}],"files":["*.js","!Gruntfile.js"],"dependencies":{"espree":"3.0.0-alpha-1","quote":"0.4.0"},"devDependencies":{"eslint":"1.10.3","git-issues":"1.2.0","grunt":"0.4.5","grunt-cli":"0.1.13","grunt-contrib-jshint":"0.11.3","grunt-deps-ok":"0.9.0","grunt-eslint":"17.3.1","grunt-filenames":"0.4.0","grunt-jscs":"2.4.0","grunt-nice-package":"0.10.1","gt":"0.9.1","jshint-summary":"0.4.0","matchdep":"1.0.0","pre-git":"2.0.2","semantic-release":"6.0.3"},"engines":{"node":"> 0.10.*"},"homepage":"https://github.com/bahmutov/eslint-rules","keywords":["eslint","lint","javascript","rule","rules","custom"],"license":"MIT","main":"index.js","repository":{"type":"git","url":"git+https://github.com/bahmutov/eslint-rules.git"},"scripts":{"build":"grunt","test":"gt test/test.js","no-long-files":"eslint --rulesdir . -c test/long-file.json test/long-file.js","commit":"git-issues && commit-wizard","issues":"git-issues","semantic-release":"semantic-release pre && npm publish && semantic-release post","size":"t=\"$(npm pack .)\"; wc -c \"${t}\"; tar tvf \"${t}\"; rm \"${t}\";"},"gitHead":"c5119b5b3c2f250fb33da41e98e8ddc0d9aa2a76","_id":"eslint-plugin-extra-rules@0.6.0","_shasum":"3be78fa13440e5483e4f7875c2aabe73c8890b73","_from":".","_npmVersion":"2.14.14","_nodeVersion":"4.2.3","_npmUser":{"name":"bahmutov","email":"gleb.bahmutov@gmail.com"},"dist":{"shasum":"3be78fa13440e5483e4f7875c2aabe73c8890b73","size":5679,"noattachment":false,"key":"/eslint-plugin-extra-rules/-/eslint-plugin-extra-rules-0.6.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/eslint-plugin-extra-rules/download/eslint-plugin-extra-rules-0.6.0.tgz"},"maintainers":[{"name":"bahmutov","email":"gleb.bahmutov@gmail.com"}],"directories":{},"publish_time":1449601997533,"_hasShrinkwrap":false,"_cnpm_publish_time":1449601997533,"_cnpmcore_publish_time":"2021-12-16T22:19:37.689Z"},"0.5.0":{"name":"eslint-plugin-extra-rules","description":"My custom eslint rules in addition to the ones provided at http://eslint.org/","version":"0.5.0","author":{"name":"Gleb Bahmutov","email":"gleb.bahmutov@gmail.com"},"bugs":{"url":"https://github.com/bahmutov/eslint-rules/issues"},"config":{"pre-git":{"commit-msg":"validate-commit-msg","pre-commit":["npm run build","npm test","npm run no-long-files"],"pre-push":[],"post-commit":[],"post-merge":[]}},"contributors":[],"dependencies":{"espree":"1.8.1","quote":"0.4.0"},"devDependencies":{"eslint":"0.14.1","git-issues":"1.2.0","grunt":"0.4.5","grunt-cli":"0.1.13","grunt-contrib-jshint":"0.11.0","grunt-deps-ok":"0.5.2","grunt-eslint":"6.0.0","grunt-filenames":"0.4.0","grunt-jscs":"1.5.0","grunt-nice-package":"0.9.2","gt":"0.9.1","jshint-summary":"0.4.0","matchdep":"0.3.0","pre-git":"2.0.2","semantic-release":"4.3.5"},"engines":{"node":"> 0.10.*"},"homepage":"https://github.com/bahmutov/eslint-rules","keywords":["eslint","lint","javascript","rule","rules","custom"],"license":"MIT","main":"index.js","repository":{"type":"git","url":"git+https://github.com/bahmutov/eslint-rules.git"},"scripts":{"build":"grunt","test":"gt test/test.js","no-long-files":"eslint --rulesdir . -c test/long-file.json test/long-file.js","commit":"git-issues && commit-wizard","issues":"git-issues","semantic-release":"semantic-release pre && npm publish && semantic-release post"},"gitHead":"8e8d841e5e34e9340870f61548bcb97fab248116","_id":"eslint-plugin-extra-rules@0.5.0","_shasum":"d4aadfbfa80c8e726c731c72f54b66d38207be3e","_from":".","_npmVersion":"2.14.14","_nodeVersion":"4.2.3","_npmUser":{"name":"bahmutov","email":"gleb.bahmutov@gmail.com"},"dist":{"shasum":"d4aadfbfa80c8e726c731c72f54b66d38207be3e","size":7696,"noattachment":false,"key":"/eslint-plugin-extra-rules/-/eslint-plugin-extra-rules-0.5.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/eslint-plugin-extra-rules/download/eslint-plugin-extra-rules-0.5.0.tgz"},"maintainers":[{"name":"bahmutov","email":"gleb.bahmutov@gmail.com"}],"directories":{},"publish_time":1449601392912,"_hasShrinkwrap":false,"_cnpm_publish_time":1449601392912,"_cnpmcore_publish_time":"2021-12-16T22:19:37.884Z"},"0.4.3":{"name":"eslint-plugin-extra-rules","description":"My custom eslint rules in addition to the ones provided at http://eslint.org/","version":"0.4.3","author":{"name":"Gleb Bahmutov","email":"gleb.bahmutov@gmail.com"},"bugs":{"url":"https://github.com/bahmutov/eslint-rules/issues"},"config":{"pre-git":{"commit-msg":"validate-commit-msg","pre-commit":["npm run build","npm test"],"pre-push":[],"post-commit":[],"post-merge":[]}},"contributors":[],"dependencies":{"espree":"1.8.1","quote":"0.4.0"},"devDependencies":{"eslint":"0.14.1","grunt":"0.4.5","grunt-cli":"0.1.13","grunt-contrib-jshint":"0.11.0","grunt-deps-ok":"0.5.2","grunt-eslint":"6.0.0","grunt-filenames":"0.4.0","grunt-jscs":"1.5.0","grunt-nice-package":"0.9.2","gt":"0.9.1","jshint-summary":"0.4.0","matchdep":"0.3.0","pre-git":"2.0.2"},"engines":{"node":"> 0.10.*"},"homepage":"https://github.com/bahmutov/eslint-rules","keywords":["eslint","lint","javascript","rule","rules","custom"],"license":"MIT","main":"index.js","repository":{"type":"git","url":"git+ssh://git@github.com/bahmutov/eslint-rules.git"},"scripts":{"build":"grunt","test":"gt test/test.js","no-long-files":"node node_modules/eslint/bin/eslint.js --rulesdir . -c test/long-file.json test/long-file.js","commit":"commit-wizard"},"gitHead":"f2907a5f449119d2e4139b83f95402514b9ef61e","_id":"eslint-plugin-extra-rules@0.4.3","_shasum":"9607eeb4ae413a71f653882d72908277f7d906ca","_from":".","_npmVersion":"2.14.11","_nodeVersion":"0.12.7","_npmUser":{"name":"bahmutov","email":"gleb.bahmutov@gmail.com"},"dist":{"shasum":"9607eeb4ae413a71f653882d72908277f7d906ca","size":7429,"noattachment":false,"key":"/eslint-plugin-extra-rules/-/eslint-plugin-extra-rules-0.4.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/eslint-plugin-extra-rules/download/eslint-plugin-extra-rules-0.4.3.tgz"},"maintainers":[{"name":"bahmutov","email":"gleb.bahmutov@gmail.com"}],"directories":{},"publish_time":1449600942047,"_hasShrinkwrap":false,"_cnpm_publish_time":1449600942047,"_cnpmcore_publish_time":"2021-12-16T22:19:38.114Z"}},"readme":"# eslint-plugin-extra-rules\n\n> Additional rules for eslint\n\n[![NPM][eslint-rules-icon] ][eslint-rules-url]\n\n[![Build status][eslint-rules-ci-image] ][eslint-rules-ci-url]\n[![dependencies][eslint-rules-dependencies-image] ][eslint-rules-dependencies-url]\n[![devdependencies][eslint-rules-devdependencies-image] ][eslint-rules-devdependencies-url]\n[![semantic-release][semantic-image] ][semantic-url]\n[![manpm](https://img.shields.io/badge/manpm-%E2%9C%93-3399ff.svg)](https://github.com/bahmutov/manpm)\n\n## Install\n\n    npm install --save-dev eslint-plugin-extra-rules\n\n## Example Configuration\n\nAdd to your `.eslintrc`:\n\n``` js\n{\n    \"plugins\": [\"extra-rules\"],\n    \"rules\": {\n        \"extra-rules/no-commented-out-code\": \"warn\",\n        // Your other rules...\n    }\n}\n```\n\n## Rules\n\n### no-commented-out-code\n\n> Detects code in the single or multiline comments\n\n```js\n/* eslint extra-rules/no-commented-out-code: \"warn\" */\n/*\nfunction foo() {\n  return 'foo';\n}*/\n// this is normal comment\nfunction baz() {\n  'use strict';\n  // and this is another normal comment\n  // var bar = 'bar';\n  return 'baz';\n}\n```\n\nProduces the following output:\n\n     2:0  warning  commented out code \"function foo() {\" (4 lines)  no-commented-out-code\n    10:2  warning  commented out code \"var bar = 'bar';\" (1 line)   no-commented-out-code\n\n### no-long-files\n\n> Detect source files with too many lines\n\n    first argument: rule severity (0 - no check, 1 - warning, 2 - error)\n    second argument: max number of allowed lines\n    \"no-long-files\": [2, 70]\n\nPrints something like\n\n    potential-point-free.js\n      0:0  error  file line count 51 exceeded line limit 50  no-long-files\n\n### camel_case\n\n> ESLint rule for enforcing camelCame names but allowing _ in property names\n\nWe want to use camelCase in variable names, but want to still allow\nunderscores in JSON objects:\n\n    var goodObject = {\n      property_name: 1,\n      another_property: 2\n    };\n\n[jshint](http://jshint.com/docs/) has *camelcase* rule that forces EVERY name\nto be camelCased\n\n    $ jshint index.js\n    index.js: line 2, col 0, Identifier 'property_name' is not in camel case.\n    index.js: line 3, col 0, Identifier 'another_property' is not in camel case.\n    2 errors\n\nThere are manual workarounds:\n\n* disable this specific rule using `// jshint ignore:lint` or `// jshint -W106`\n* write property names using quotes, for example `'property_name': 1`\n\nBoth workarounds are hacky.\n\nI wrote a more flexible rule called [camel_case](camel_case.js)\nfor [eslint](https://github.com/eslint/eslint). The rule looks one character *after*\nthe identifier to see if it is followed by colon `:` character.\nIf yes, this is a property name inside an object, and underscore character `_` is allowed.\n\n### no-for-loops\n\nWarns or errors if you use for loops in your code. I consider for loops harmful for their side effects,\nand even consider `.forEach` dangerous, see [Avoid forEach][avoid forEach].\n\n### no-single-line-objects\n\nDoes not allow you to nest objects into single line. Single property object can be single line\n\n```js\n// allowed\nvar foo = { foo: 'foo' };\n// not allowed\nvar foo = { foo: 'foo', bar: 'bar' };\nvar foo = { foo: { bar: 'bar' } };\n```\n\n### potential-point-free\n\nWarns if a function just calls another function passing arguments and can potentially\nbecome point-free. Point-free programming [eliminates complexity and superfluous variables][point-free].\nOnly functions with single call expression are considered. The arguments must match exactly.\n\n```js\n/* eslint extra-rules/potential-point-free: \"warn\" */\nfunction print(x) {\n  console.log(x);\n}\n[1, 2, 3].forEach(function printX(x) {\n  print(x);\n});\n// output 7:18  warning  printX   potential-point-free\n```\n\nNote: due to signatures and optional arguments, sometimes functions should not be point free directly.\nFor example the array iterators pass item, index and the array itself, which causes problems for `parseInt`\n\n```js\n['1', '2', '3'].forEach(parseInt);\n// [1, 'NaN', 'NaN']\n```\n\nIn this case, you can use [unary adaptor](http://glebbahmutov.com/blog/iterator-callbacks/) or\n3rd party iterator with simpler signature, [R.forEach](http://ramdajs.com/docs/R.html#forEach).\n\n## Small print\n\nAuthor: Gleb Bahmutov &copy; 2014\n\n* [@bahmutov](https://twitter.com/bahmutov)\n* [glebbahmutov.com](http://glebbahmutov.com)\n* [blog](http://glebbahmutov.com/blog/)\n\nLicense: MIT - do anything with the code, but don't blame me if it does not work.\n\nSpread the word: tweet, star on github, etc.\n\nSupport: if you find any problems with this module, email / tweet /\n[open issue](https://github.com/bahmutov/eslint-rules/issues) on Github\n\n\n## MIT License\n\nCopyright (c) 2014 Gleb Bahmutov\n\nPermission is hereby granted, free of charge, to any person\nobtaining a copy of this software and associated documentation\nfiles (the \"Software\"), to deal in the Software without\nrestriction, including without limitation the rights to use,\ncopy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the\nSoftware is furnished to do so, subject to the following\nconditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES\nOF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT\nHOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\nWHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\nOTHER DEALINGS IN THE SOFTWARE.\n\n[eslint-rules-icon]: https://nodei.co/npm/eslint-plugin-extra-rules.png?downloads=true\n[eslint-rules-url]: https://npmjs.org/package/eslint-plugin-extra-rules\n[eslint-rules-ci-image]: https://travis-ci.org/bahmutov/eslint-rules.png?branch=master\n[eslint-rules-ci-url]: https://travis-ci.org/bahmutov/eslint-rules\n[eslint-rules-dependencies-image]: https://david-dm.org/bahmutov/eslint-rules.png\n[eslint-rules-dependencies-url]: https://david-dm.org/bahmutov/eslint-rules\n[eslint-rules-devdependencies-image]: https://david-dm.org/bahmutov/eslint-rules/dev-status.png\n[eslint-rules-devdependencies-url]: https://david-dm.org/bahmutov/eslint-rules#info=devDependencies\n[semantic-image]: https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg\n[semantic-url]: https://github.com/semantic-release/semantic-release\n\n[avoid forEach]: http://aeflash.com/2014-11/avoid-foreach.html\n[point-free]: http://glebbahmutov.com/blog/point-free-programming-is-not-pointless/\n","_attachments":{},"homepage":"https://github.com/bahmutov/eslint-rules","bugs":{"url":"https://github.com/bahmutov/eslint-rules/issues"},"license":"MIT"}