Creedengo-JS

May 18, 2026 ยท View on GitHub

An ESLint plugin which provides JavaScript and TypeScript rules of the Creedengo project.

๐Ÿ‘‰ See creedengo-javascript README to have more information.

๐Ÿš€ Getting started

Installation

You'll need to install ESLint v10 or v9 and this plugin:

# yarn
yarn add -D eslint @creedengo/eslint-plugin
# npm
npm install -D eslint @creedengo/eslint-plugin

You are using TypeScript? You will also need to install typescript-eslint to enable our rules.
Follow this official guide to install it in a few steps.

Are you working with a GitHub Packages registry?

The plugin is also available from GitHub npm registry under "green-code-initiative" scope:

# yarn
yarn add -D eslint @green-code-initiative/creedengo-eslint-plugin
# npm
npm install -D eslint @green-code-initiative/creedengo-eslint-plugin

Add @creedengo "recommended" configuration to your eslint.config.js:

import creedengo from "@creedengo/eslint-plugin";

export default [
  /* other eslint configurations */
  creedengo.configs.recommended,
];

Enable specific rules

Add the creedengo plugin configuration to your eslint.config.js and select the rules to activate:

import creedengo from "@creedengo/eslint-plugin";

export default [
  /* other eslint configurations */
  {
    plugins: { "@creedengo": creedengo },
    rules: {
      "@creedengo/no-multiple-access-dom-element": "error",
    },
  },
];

โš™ Configs

Name
โœ…recommended

๐Ÿ”จ Rules

โš ๏ธ Configurations set to warn in.
โœ… Set in the recommended configuration.

NameDescriptionโš ๏ธ
avoid-autoplayAvoid autoplay for videos and audio contentโœ…
avoid-brightness-overrideShould avoid to override brightnessโœ…
avoid-css-animationsAvoid usage of CSS animationsโœ…
avoid-high-accuracy-geolocationAvoid using high accuracy geolocation in web applicationsโœ…
avoid-keep-awakeAvoid screen keep awakeโœ…
limit-db-query-resultsShould limit the number of returns for a SQL queryโœ…
no-empty-image-src-attributeDisallow usage of image with empty source attributeโœ…
no-import-all-from-libraryShould not import all from libraryโœ…
no-imported-number-format-libraryYou should not format number with an external libraryโœ…
no-multiple-access-dom-elementDisallow multiple access of same DOM elementโœ…
no-multiple-style-changesDisallow multiple style changes at onceโœ…
no-torchShould not programmatically enable torch modeโœ…
prefer-collections-with-paginationPrefer API collections with paginationโœ…
prefer-lighter-formats-for-image-filesPrefer lighter formats for image filesโœ…
prefer-shorthand-css-notationsEncourage usage of shorthand CSS notationsโœ…
provide-print-cssEnforce providing a print stylesheetโœ…

๐Ÿ›’ Distribution

You can follow changelog on GitHub Releases page.