1.1.4 • Published 2 years ago

eslint-plugin-sustainable v1.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

eslint-plugin-sustainable

About this project

Keep the climate impact of code low!

The code, infrastructure and devices supporting the internet emits around the same amount of Carbon Dioxide (CO2) as the global airline industry.

As authors of code, we can affect how applications affect climate change by making sure we avoid anti-patterns that unecessarily consume resources.

The goal of this project is to follow the development of the W3C's Sustainability Guidelines.

You can read more about this topic on The Green Web Foundation's website.

Installation

If your project is not currently using ESlint, you will first need to install it ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-sustainable:

npm install eslint-plugin-sustainable --save-dev

Usage

Add sustainable to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
  "plugins": ["sustainable"]
}

Rules

Name                            Description
avoid-inefficient-imageAvoid inefficient image formats
avoid-media-autoplayAutplaying media loads data that may not be consumed by the user
avoid-using-accurate-geolocationHigh accuracy geolocation consumes more power and returns result slower
1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

0.0.0

2 years ago