{"id":14978231,"url":"https://github.com/andersclark/eslint-plugin-sustainable","last_synced_at":"2025-10-28T08:31:55.841Z","repository":{"id":209615056,"uuid":"724529888","full_name":"Andersclark/eslint-plugin-sustainable","owner":"Andersclark","description":"Keep the climate impact of code low.","archived":false,"fork":false,"pushed_at":"2023-12-18T11:54:54.000Z","size":11942,"stargazers_count":4,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-29T14:41:45.672Z","etag":null,"topics":["carbon-emissions","eslint","eslint-plugin","green","javascript-tools","sustainability"],"latest_commit_sha":null,"homepage":"","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/Andersclark.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":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-11-28T09:13:04.000Z","updated_at":"2023-12-18T11:24:22.000Z","dependencies_parsed_at":"2023-12-21T22:38:47.177Z","dependency_job_id":null,"html_url":"https://github.com/Andersclark/eslint-plugin-sustainable","commit_stats":{"total_commits":20,"total_committers":1,"mean_commits":20.0,"dds":0.0,"last_synced_commit":"659d3b5bbcedb86ea7b7074b67e1c3034c7a6cdc"},"previous_names":["andersclark/eslint-plugin-sustainable"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Andersclark%2Feslint-plugin-sustainable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Andersclark%2Feslint-plugin-sustainable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Andersclark%2Feslint-plugin-sustainable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Andersclark%2Feslint-plugin-sustainable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Andersclark","download_url":"https://codeload.github.com/Andersclark/eslint-plugin-sustainable/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219859904,"owners_count":16556031,"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":["carbon-emissions","eslint","eslint-plugin","green","javascript-tools","sustainability"],"created_at":"2024-09-24T13:57:06.569Z","updated_at":"2025-10-28T08:31:55.489Z","avatar_url":"https://github.com/Andersclark.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eslint-plugin-sustainable\n\n## About this project\n\nKeep the climate impact of code low!\n\nThe code, infrastructure and devices supporting the internet emits around the [same amount of Carbon Dioxide (CO2) as the global airline industry](https://theshiftproject.org/wp-content/uploads/2019/03/Executive-Summary_Lean-ICT-Report_EN_lowdef.pdf).\n\nAs authors of code, we can affect how applications affect climate change by making sure we avoid anti-patterns that unecessarily consume resources.\n\nThe goal of this project is to follow the development of the [W3C's Sustainability Guidelines](https://w3c.github.io/sustyweb).\n\nYou can read more about this topic on [The Green Web Foundation's website](https://www.thegreenwebfoundation.org).\n\n## Installation\n\nIf your project is not currently using ESlint, you will first need to install it [ESLint](https://eslint.org/):\n\n```sh\nnpm i eslint --save-dev\n```\n\nNext, install `eslint-plugin-sustainable`:\n\n```sh\nnpm install eslint-plugin-sustainable --save-dev\n```\n\n## Usage\n\nAdd `sustainable` to the plugins section of your `.eslintrc` configuration file. You can omit the `eslint-plugin-` prefix:\n\n```json\n{\n  \"plugins\": [\"sustainable\"]\n}\n```\n\n## Rules\n\n\u003c!-- begin auto-generated rules list --\u003e\n\n| Name                                                                               | Description                                                             |\n| :--------------------------------------------------------------------------------- | :---------------------------------------------------------------------- |\n| [avoid-inefficient-image](docs/rules/avoid-inefficient-image.md)                   | Avoid inefficient image formats                                         |\n| [avoid-media-autoplay](docs/rules/avoid-media-autoplay.md)                         | Autplaying media loads data that may not be consumed by the user        |\n| [avoid-using-accurate-geolocation](docs/rules/avoid-using-accurate-geolocation.md) | High accuracy geolocation consumes more power and returns result slower |\n\n\u003c!-- end auto-generated rules list --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandersclark%2Feslint-plugin-sustainable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandersclark%2Feslint-plugin-sustainable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandersclark%2Feslint-plugin-sustainable/lists"}