npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@greenpoint/eslint-plugin

v0.3.5

Published

Best practices for ecocoding

Readme

@greenpoint/eslint-plugin

Best practices for ecocoding

Installation

First run :

npm install @greenpoint/eslint-plugin --save-dev

Add the plugin to your .eslintrc.js:


    "extends": [
        "plugin:@greenpoint/front-recommended",
        "plugin:@greenpoint/back-recommended",


    ],
    "plugins": [
        "@greenpoint",

    ]

If you have tailwindcss in your code as well add the following plugin:


    "plugins": [
        "plugin:@greenpoint/tailwindcss"

    ],

If you use @emotion in your code as well add the following plugin:


    "plugins": [
        "plugin:@greenpoint/emotion"

    ],

Usage

Run the eslint-linter on your .js/.tsx files

eslint .

Rules

⚠️ Configurations set to warn in.
🎨 Set in the front-recommended configuration. 🛠️ Set in the back-recommended configuration. 🙂 Set in the emotion configuration. 🚀 Set in the tailwindcss configuration. | Name                                | Description | ⚠️ | | :--------------------------------------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------ | :-- | | image-extension | Avoid the usage of png/jpg/jpeg images | 🎨 | | image-src-attribute-not-empty | Disallow usage of image with empty source attribute | 🎨 | | limit-db-query-results | Warn about not limiting the number of returns for a query | 🛠️ | | limit-repaint-and-reflow | Avoid re-rendering your components as much as possible when a props and state element changes and this data has no impact on the component's view | 🎨 | | avoid-css-animations | Avoid usage of CSS animations | 🎨 🚀 🙂 | | no-function-call-in-for-declaration | Avoid calling a function in a for loop declaration | 🛠️ | | no-missing-print-css | Warn when no print CSS is provided | 🎨 | | no-resized-image | Disallow image size exceeding the maximum allowed dimension | 🎨 🚀 🙂 | | no-select-star | Warn about the use of SELECT * FROM queries | 🛠️ | | only-standard-font-use | Disallow the usage of non-standard fonts | 🎨 🚀 🙂 | | outsource-css | Ensure that CSS and JavaScript codes are not embedded in the HTML code of the page, with the exception of any configuration variables for JavaScript objects. | 🎨 | | group-similar-css-declarations | Group similar declarations of properties | 🙂 | | prefer-shorthand-css-notations-animation | Encourage the use of shorthand CSS notations, especially for the following attributes: animation, transition, offset | 🎨 🚀 🙂 | | prefer-shorthand-css-notations-content |This rule aims to encourage the use of shorthand CSS notations, especially for the following attributes: outline, border, background and listStyle | 🎨 🚀 🙂 | | prefer-shorthand-css-notations-layout | Encourage the use of shorthand CSS notations, especially for the following attributes: column, flex, grid, columnRule, placeContent, placeItems, placeSelf | 🎨 🚀 🙂 | | prefer-shorthand-css-notations-margin-padding | Encourage the use of shorthand CSS notations, especially for the following attributes: margin, padding | 🎨 🚀 🙂 | | prefer-shorthand-css-notations-text | Encourage the use of shorthand CSS notations, especially for the following attributes: font, textDecoration | 🎨 🚀 🙂 |

Further reading

We developed a stylelint plugin for best practices in CSS as well:

https://gitlab.groupeonepoint.com/techstud.io/num-responsable/greenpoint-stylelint.git