{"id":15043778,"url":"https://github.com/googlemaps/eslint-plugin-googlemaps","last_synced_at":"2025-04-15T00:30:42.870Z","repository":{"id":36953451,"uuid":"438355141","full_name":"googlemaps/eslint-plugin-googlemaps","owner":"googlemaps","description":"ESLint rules for Google Maps Platform.","archived":false,"fork":false,"pushed_at":"2024-04-08T14:03:59.000Z","size":750,"stargazers_count":4,"open_issues_count":8,"forks_count":5,"subscribers_count":6,"default_branch":"main","last_synced_at":"2024-04-08T17:15:48.752Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/googlemaps.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2021-12-14T18:14:40.000Z","updated_at":"2024-04-15T15:41:07.572Z","dependencies_parsed_at":"2023-02-16T05:46:08.135Z","dependency_job_id":"c0064ac1-bc9f-42e3-b861-34db55cf20ee","html_url":"https://github.com/googlemaps/eslint-plugin-googlemaps","commit_stats":{"total_commits":286,"total_committers":4,"mean_commits":71.5,"dds":"0.28321678321678323","last_synced_commit":"79ac45df0f90c77d79e942b6c9b9c7f04af63caf"},"previous_names":[],"tags_count":40,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/googlemaps%2Feslint-plugin-googlemaps","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/googlemaps%2Feslint-plugin-googlemaps/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/googlemaps%2Feslint-plugin-googlemaps/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/googlemaps%2Feslint-plugin-googlemaps/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/googlemaps","download_url":"https://codeload.github.com/googlemaps/eslint-plugin-googlemaps/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248983897,"owners_count":21193659,"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-09-24T20:49:35.119Z","updated_at":"2025-04-15T00:30:42.818Z","avatar_url":"https://github.com/googlemaps.png","language":"TypeScript","readme":"# eslint-plugin-googlemaps\n\n[![npm](https://img.shields.io/npm/v/eslint-plugin-googlemaps)](https://www.npmjs.com/package/eslint-plugin-googlemaps)\n![Build](https://github.com/googlemaps/eslint-plugin-googlemaps/workflows/Test/badge.svg)\n![Release](https://github.com/googlemaps/eslint-plugin-googlemaps/workflows/Release/badge.svg)\n![GitHub contributors](https://img.shields.io/github/contributors/googlemaps/eslint-plugin-googlemaps?color=green)\n[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)\n[![Discord](https://img.shields.io/discord/676948200904589322?color=6A7EC2\u0026logo=discord\u0026logoColor=ffffff)](https://discord.gg/jRteCzP)\n\n## Description\n\n[ESLint](https://eslint.org) plugin with rules specific to Google Maps Platform JavaScript API.\n\n## Install\n\nAvailable via npm as the package [eslint-plugin-googlemaps](https://www.npmjs.com/package/eslint-plugin-googlemaps).\n\n```sh\nnpm i -D eslint-plugin-googlemaps\n```\n\n## Usage\n\nTo use rules provided by the plugin, use the following:\n\n`eslintrc.json`:\n\n```json\n{\n  \"extends\": [\"plugin:googlemaps:recommended\"]\n  \"plugins\": [\"googlemaps\"],\n}\n```\n\nSome rules are fixable with `eslint --fix`. For example the [place-fields](docs/rules/place-fields.md) rule.\n\n```js\nservice.getDetails({place_id: 'foo'})\n```\nbecomes\n\n```js\nservice.getDetails({fields: /** TODO: Add necessary fields to the request */ [], place_id: 'foo'})\n```\n\n## Rules\n\n| Rule                                                         | Description                        | Configurations   | Type         |\n| ------------------------------------------------------------ | ---------------------------------- | ---------------- | ------------ |\n| [no-api-keys](docs/rules/no-api-keys.md)                     | Keep API keys out of code.         | ![recommended][] | ![suggest][] |\n| [place-fields](docs/rules/place-fields.md)                   | Always use place fields.           | ![recommended][] | ![fixable][] |\n| [require-js-api-loader](docs/rules/require-js-api-loader.md) | Require @googlemaps/js-api-loader. | ![recommended][] | ![suggest][] |\n\n[recommended]: https://img.shields.io/badge/-recommended-lightgrey.svg\n[suggest]: https://img.shields.io/badge/-suggest-yellow.svg\n[fixable]: https://img.shields.io/badge/-fixable-green.svg\n[style]: https://img.shields.io/badge/-style-blue.svg\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgooglemaps%2Feslint-plugin-googlemaps","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgooglemaps%2Feslint-plugin-googlemaps","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgooglemaps%2Feslint-plugin-googlemaps/lists"}