{"id":23495241,"url":"https://github.com/willklein/eslint-plugin-disallow-methods","last_synced_at":"2025-04-18T06:07:53.756Z","repository":{"id":145188750,"uuid":"40115654","full_name":"willklein/eslint-plugin-disallow-methods","owner":"willklein","description":"ESLint plugin for disallowing specified methods","archived":false,"fork":false,"pushed_at":"2015-08-07T05:30:18.000Z","size":116,"stargazers_count":1,"open_issues_count":2,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-18T00:01:01.736Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/willklein.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-08-03T09:11:49.000Z","updated_at":"2017-10-27T21:10:44.000Z","dependencies_parsed_at":"2023-04-02T12:30:55.645Z","dependency_job_id":null,"html_url":"https://github.com/willklein/eslint-plugin-disallow-methods","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willklein%2Feslint-plugin-disallow-methods","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willklein%2Feslint-plugin-disallow-methods/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willklein%2Feslint-plugin-disallow-methods/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willklein%2Feslint-plugin-disallow-methods/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/willklein","download_url":"https://codeload.github.com/willklein/eslint-plugin-disallow-methods/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249433332,"owners_count":21271248,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-25T03:14:45.466Z","updated_at":"2025-04-18T06:07:53.738Z","avatar_url":"https://github.com/willklein.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eslint-plugin-disallow-methods\n\n\u003e ESLint plugin for disallowing specified methods\n\n## Usage\n\nThis plugin requires ESLint to also be installed. With both ESLint and this plugin installed, you will need to enable the plugin and configure what methods are disallowed.\n\n### Installation\n\nInstall ESLint if you have not already:\n\n    npm install eslint\n\nInstall the plugin:\n\n    npm install eslint-plugin-disallow-methods\n\n### Configuration\n\nConfigure the plugin and its rules in your `.eslintrc` file or your shareable config.\n\nSample `.eslintrc`:\n\n    {\n      \"plugins\": [\n        // other plugins would go here\n    \n        \"disallow-methods\"\n      ],\n    \n      rules: {\n        // other rules here\n    \n        // disallow-methods rules\n        \"disallow-methods/disallow-methods\": [2, [\n          {\n            \"object\": \"protectedObject\",\n            \"method\": \"disallowedMethod\"\n          },\n          {\n            \"object\": \"anotherProtectedObject\",\n            \"method\": \"anotherDisallowedMethod\"\n          }\n        ]]\n      }\n    }\n\nConfiguring rule to `1` will set it to warn and configuring it to `2` will set it to error.\n\n## Under Development\n\nThis plugin is under active development and its API may change at any time.\n\n## License\n\n[MIT](http://mit-license.org/) © [Will Klein](http://willkle.in)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillklein%2Feslint-plugin-disallow-methods","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwillklein%2Feslint-plugin-disallow-methods","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillklein%2Feslint-plugin-disallow-methods/lists"}