{"id":21107002,"url":"https://github.com/buildo/eslint-plugin-method-names","last_synced_at":"2026-06-23T03:32:10.248Z","repository":{"id":66184737,"uuid":"67439689","full_name":"buildo/eslint-plugin-method-names","owner":"buildo","description":"ESLint plugin defining a single rule for checking ES6 method name conventions","archived":false,"fork":false,"pushed_at":"2016-09-05T17:55:01.000Z","size":7,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-06-17T15:04:48.885Z","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/buildo.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-09-05T17:35:40.000Z","updated_at":"2019-09-16T12:55:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"15e99b3e-aa9a-41ac-82a4-cbc653861a8c","html_url":"https://github.com/buildo/eslint-plugin-method-names","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/buildo/eslint-plugin-method-names","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buildo%2Feslint-plugin-method-names","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buildo%2Feslint-plugin-method-names/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buildo%2Feslint-plugin-method-names/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buildo%2Feslint-plugin-method-names/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/buildo","download_url":"https://codeload.github.com/buildo/eslint-plugin-method-names/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buildo%2Feslint-plugin-method-names/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34674702,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-23T02:00:07.161Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-11-20T00:35:12.540Z","updated_at":"2026-06-23T03:32:10.234Z","avatar_url":"https://github.com/buildo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eslint-plugin-method-names\n\n[![Build Status](https://drone.our.buildo.io/api/badges/buildo/eslint-plugin-method-names/status.svg)](https://drone.our.buildo.io/buildo/eslint-plugin-method-names)\n[![npm](https://img.shields.io/npm/v/eslint-plugin-method-names.svg)](https://www.npmjs.com/package/eslint-plugin-method-names)\n\n## Installation\n```sh\nnpm install --save-dev eslint-plugin-method-names\n```\n\n## Usage\nIn your `.eslintrc`:\n\n```javascript\n{\n  \"plugins\": [\n    \"method-names\"\n  ],\n  \"rules\": {\n    \"method-names/method-names\": [2, { regex: '^[a-z].*' }]\n  }\n}\n```\n\n## Rule\nRestrict class method names to a regex. It applies to methods and static properties defining a function.\n\n## Usage\nWith the configuration above, the following patterns are considered valid\n\n```js\nclass Foo {\n  bar() {}\n}\n\nclass Foo {\n  bar = () =\u003e {}\n}\n\nclass Foo {\n  _bar = 40 + 2\n}\n```\n\nwhereas the following are considered errors\n\n```js\nclass Foo {\n  _bar() {}\n}\n\nclass Foo {\n  _bar = () =\u003e {}\n}\n```\n\n## Why\nThis is useful for enforcing conventions like \"methods should never start with an underscore\".\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuildo%2Feslint-plugin-method-names","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbuildo%2Feslint-plugin-method-names","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuildo%2Feslint-plugin-method-names/lists"}