{"_id":"eslint-plugin-no-inferred-method-name","_rev":"7-0ea4fd3075768cb989d6fe90414fe92f","name":"eslint-plugin-no-inferred-method-name","description":"ES6 object literal method linting for ESLint","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.0":{"name":"eslint-plugin-no-inferred-method-name","version":"1.0.0","description":"ES6 object literal method linting for ESLint.","main":"index.js","scripts":{"test":"npm run lint && npm run unit-test","lint":"eslint ./"},"files":["LICENSE.md","README.md","lib","index.js"],"repository":{"type":"git","url":"git+https://github.com/johnstonbl01/eslint-no-inferred-method-name.git"},"homepage":"https://github.com/johnstonbl01/eslint-no-inferred-method-name","bugs":{"url":"https://github.com/johnstonbl01/eslint-no-inferred-method-name/issues"},"keywords":["eslint","eslint-plugin"],"author":{"name":"Blake Johnston","email":"johnstonbl01@gmail.com"},"license":"MIT","devDependencies":{"eslint":"^0.22.1"},"gitHead":"a9ded87bc5e642a165d4783befb189283d1be508","_id":"eslint-plugin-no-inferred-method-name@1.0.0","_shasum":"a8773bc90df40dc42948c2cadb4f74f9d91a5eee","_from":".","_npmVersion":"2.8.4","_nodeVersion":"0.10.37","_npmUser":{"name":"johnstonbl01","email":"johnstonbl01@gmail.com"},"dist":{"shasum":"a8773bc90df40dc42948c2cadb4f74f9d91a5eee","tarball":"https://registry.npmjs.org/eslint-plugin-no-inferred-method-name/-/eslint-plugin-no-inferred-method-name-1.0.0.tgz","integrity":"sha512-yUjpDMrOXxaCyK6ylF4orhm/mQmNR6OGzspyEwtd942rxUTaLIrJu7aBqJCeLZvD7Rb/lNSI20olm7vTURziGA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFAUNN0vRrt6LqSTdaodwbeJ6fb1RRqge/NwIXD77RS6AiEA5zhp1Am7wUDkTRw5PaO4HocQ1Xz8PB+XIqWefzpHddI="}]},"maintainers":[{"name":"johnstonbl01","email":"johnstonbl01@gmail.com"}],"directories":{}},"1.0.1":{"name":"eslint-plugin-no-inferred-method-name","version":"1.0.1","description":"ES6 object literal method linting for ESLint.","main":"index.js","scripts":{"lint":"eslint ./"},"files":["LICENSE.md","README.md","lib","index.js"],"repository":{"type":"git","url":"git+https://github.com/johnstonbl01/eslint-no-inferred-method-name.git"},"homepage":"https://github.com/johnstonbl01/eslint-no-inferred-method-name","bugs":{"url":"https://github.com/johnstonbl01/eslint-no-inferred-method-name/issues"},"keywords":["eslint","eslint-plugin"],"author":{"name":"Blake Johnston","email":"johnstonbl01@gmail.com"},"license":"MIT","devDependencies":{"eslint":"^0.22.1"},"gitHead":"bf79f87f50dbbb86f629c5dfb14d2582272c7be2","_id":"eslint-plugin-no-inferred-method-name@1.0.1","_shasum":"658c7dddcf33f4b3be148d9d5217323119ce05b0","_from":".","_npmVersion":"2.8.4","_nodeVersion":"0.10.37","_npmUser":{"name":"johnstonbl01","email":"johnstonbl01@gmail.com"},"dist":{"shasum":"658c7dddcf33f4b3be148d9d5217323119ce05b0","tarball":"https://registry.npmjs.org/eslint-plugin-no-inferred-method-name/-/eslint-plugin-no-inferred-method-name-1.0.1.tgz","integrity":"sha512-pSn2iAOWgbHtNr8/JYdtPEiZQEsKsG5JZ/AM6V/CZQl/6/J/HoVX2Rvi65vcMm+RBXbFKpvkX42IQnHcoU7QMQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE/825AlC+J6FaW9N5s7yIz66IoOYn/HPZM3JQji4TNcAiEAle0We5rwIW8ZhUXMWSokJIKj8353uAk9i1izrCg6ijk="}]},"maintainers":[{"name":"johnstonbl01","email":"johnstonbl01@gmail.com"}],"directories":{}},"1.0.2":{"name":"eslint-plugin-no-inferred-method-name","version":"1.0.2","description":"ES6 object literal method linting for ESLint.","main":"index.js","scripts":{"lint":"eslint ./"},"files":["LICENSE.md","README.md","lib","index.js"],"repository":{"type":"git","url":"git+https://github.com/johnstonbl01/eslint-no-inferred-method-name.git"},"homepage":"https://github.com/johnstonbl01/eslint-no-inferred-method-name","bugs":{"url":"https://github.com/johnstonbl01/eslint-no-inferred-method-name/issues"},"keywords":["eslint","eslint-plugin"],"author":{"name":"Blake Johnston","email":"johnstonbl01@gmail.com"},"license":"MIT","devDependencies":{"eslint":"^0.22.1"},"gitHead":"f3ce2747eef4b443d5300640a47304989a2d1167","_id":"eslint-plugin-no-inferred-method-name@1.0.2","_shasum":"8221a88e294f48d2e56f5cdd9f96d4779011dc8e","_from":".","_npmVersion":"2.8.4","_nodeVersion":"0.10.37","_npmUser":{"name":"johnstonbl01","email":"johnstonbl01@gmail.com"},"dist":{"shasum":"8221a88e294f48d2e56f5cdd9f96d4779011dc8e","tarball":"https://registry.npmjs.org/eslint-plugin-no-inferred-method-name/-/eslint-plugin-no-inferred-method-name-1.0.2.tgz","integrity":"sha512-pIzTF7SHutDNfkGEXwS+s1NSYpBjTDNalYc9ZuY2y4A8A/loRZPwytevV9Wu0w60c+vyI2w09UT23p2h3pZEbw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB5U3qhKRNodhbx3frFLyC+D0EVbnS4t8QSA/SMKUKyDAiEAo7OV8K4e1lV+fK01e5RAcbaVGvnIvr0k+Y6urdFW3AM="}]},"maintainers":[{"name":"johnstonbl01","email":"johnstonbl01@gmail.com"}],"directories":{}},"2.0.0":{"name":"eslint-plugin-no-inferred-method-name","version":"2.0.0","description":"ES6 object literal method linting for ESLint","main":"index.js","scripts":{"lint":"eslint ./"},"repository":{"type":"git","url":"git+https://github.com/johnstonbl01/eslint-no-inferred-method-name.git"},"homepage":"https://github.com/johnstonbl01/eslint-no-inferred-method-name","bugs":{"url":"https://github.com/johnstonbl01/eslint-no-inferred-method-name/issues"},"keywords":["eslint","eslint-plugin"],"author":{"name":"Blake Johnston","email":"johnstonbl01@gmail.com"},"license":"MIT","devDependencies":{"eslint":"^6.5.1","husky":"^3.0.9","lint-staged":"^9.4.2","prettier":"^1.18.2"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"{lib, tests}/**/*.js":["prettier --write","npm run lint","git add"],"*.{json, md}":["prettier --write","git add"]},"gitHead":"fe5e8a860772a0586ac0791dfd2918f0763a93c2","_id":"eslint-plugin-no-inferred-method-name@2.0.0","_nodeVersion":"12.11.1","_npmVersion":"6.11.3","dist":{"integrity":"sha512-X7v13HSuSJ/ZqWv5pQr6VY1ARiroipE+qdeGKvd1wCDcmyTY/gt4ZIhGHxjNmOfiMvURUfndi/r917gRH6rlQw==","shasum":"99e2c9c921dfcb98c3874b427e26f8889f516c8e","tarball":"https://registry.npmjs.org/eslint-plugin-no-inferred-method-name/-/eslint-plugin-no-inferred-method-name-2.0.0.tgz","fileCount":5,"unpackedSize":5969,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJduaHqCRA9TVsSAnZWagAA2YYQAI7yFIH9xOReDEkTCpDu\ndKujEqYsvA9FJZ5GLoH+zwBgisl2AuFfQlwd70kjEJQpmvVMjF2DewjdQ/fd\nL76KChn/IPcM0h3NhD03SffDVboHDmt2QMiC2ZzpTjvdDAAkDF81NmTYLiT6\nCeGq4QH0IqRH9r8icA6/PNaChe0ki0nm26r7WkNSRNuRacBNfDvC6AhGxSQT\nf1dsSMs1YddibcrEyut9WcleeVGONwH0f4scwWA5uEvRW0YW7822n+c0WoMw\nO5XZ7TlPdTFFrhZ6Ro4hH0RiAMPVo4fLmpPHO3MCX5PUVg0Q8Nj+zAC1bYLJ\nJkaC2SeIYlmrRuQgf5gcUAG0ZS3UzKabsu3uo+d9avojcg2pnHH8kq+GX518\nDxD4yP4/UuMMaIscukYQtxl4J7D1FoZckDmMUoJP4R9dkei/bozHpmNd9rKF\nzyDexOHGdd65DIjYF/vBZRWfxn+syu3eg4gAhUbDJM95UHIpn/5JJuVCPYn+\n0McmdNDFq6Y7VrVqvZrqvKTGpZIVCd02k4fPaH3Ec8MiWZnZ1NXsUO2/e0uI\ndjPUTlytZ5+zfcunFTePPJGccHvN5T3cZ7F/U+Kgw+Z94R3jLMSH+xxMx2f2\nupVKox4vmSDYlFySRqdJmyjxdcGz8eR/MfyOvbKq4DczO/btUFGu7CIWwpBj\nezbd\r\n=SyxM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC1TGK5Ypx4tP+nTjD6XVLgpoy9OQB3zzhtZXbYrwbqlAIgCwfYBib6dJu6Q8nNhIGU5iy/tyEF3wrwQBH2/hKtbMQ="}]},"maintainers":[{"name":"johnstonbl01","email":"johnstonbl01@gmail.com"}],"_npmUser":{"name":"johnstonbl01","email":"johnstonbl01@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-plugin-no-inferred-method-name_2.0.0_1572446698387_0.7367303681109825"},"_hasShrinkwrap":false}},"readme":"# Disallow Inferred Method Names in Object Literals (no-inferred-method-name)\n\nIn ES6, compact methods and unnamed function expression assignments within object literals do not create a lexical identification (name) binding that corresponds to the function name identifier for recursion or event binding. The compact method syntax will not be an appropriate option for these types of solutions, and a named function expression should be used instead. This custom ESLint rule will identify instances where a function name is being called and a lexical identifier is unavailable within a compact object literal.\n\nMore information on this can be found:\n\n- [eslint/eslint#2454](https://github.com/eslint/eslint/issues/2454#issuecomment-100285220)\n- [babel/babel#1367](https://github.com/babel/babel/issues/1367)\n- [ES6 Concise Methods: Lexical or Not?](http://blog.getify.com/es6-concise-methods-lexical-or-not/)\n\n**Note** - Tests are provided in the repo, but not necessary for installation or use of the rule.\n\n## Setup\n\n### Prerequisites\n\nNode.js & NPM - For instructions on how to install Node.js, check [here](https://nodejs.org/).\n\nESLint - More information on ESLint setup & configuration can be found [here](http://eslint.org/).\n\n### Install Plugin via NPM\n\nInstall the plugin using NPM:\n\n```\n$ npm install eslint-plugin-no-inferred-method-name --save-dev\n```\n\n_Note_: If ESLint is installed globally, the plugin must also be installed globally.\n\n### Enable Plugin in ESLint Config File\n\nWithin the project directory, create or edit the ESLint configuration file to enable the new rule.\n\n```js\n{\n  plugins: ['eslint-plugin-no-inferred-method-name'],\n  rules: {\n    // ...\n    'no-inferred-method-name/no-inferred-method-name': 'error'\n  }\n  // ...\n}\n```\n\n### Run ESLint\n\nYou can lint files from the command line using: `eslint [filename]`\n\nAdditionally, the above setup should enable the rule within your Text Editor or IDE (assuming that you have a Linter enabled).\n\n## Rule Details\n\nDetailed information / examples of the rule can be found [here](/docs/rules/no-inferred-method-name.md).\n","maintainers":[{"name":"johnstonbl01","email":"johnstonbl01@gmail.com"}],"time":{"modified":"2022-06-17T20:36:51.025Z","created":"2015-06-04T20:58:26.799Z","1.0.0":"2015-06-04T20:58:26.799Z","1.0.1":"2015-06-04T21:06:44.984Z","1.0.2":"2015-06-04T21:20:07.563Z","2.0.0":"2019-10-30T14:44:58.476Z"},"homepage":"https://github.com/johnstonbl01/eslint-no-inferred-method-name","keywords":["eslint","eslint-plugin"],"repository":{"type":"git","url":"git+https://github.com/johnstonbl01/eslint-no-inferred-method-name.git"},"author":{"name":"Blake Johnston","email":"johnstonbl01@gmail.com"},"bugs":{"url":"https://github.com/johnstonbl01/eslint-no-inferred-method-name/issues"},"license":"MIT","readmeFilename":"README.md"}