GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com โ€” creedengo-javascript/eslint-plugin at main ยท green-code-initiative/creedengo-javascript

Expand file tree

/

eslint-plugin

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

eslint-plugin

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
.yarn/releases
.yarn/releases
 
 
dist
dist
 
 
docs
docs
 
 
lib
lib
 
 
tests
tests
 
 
.eslint-doc-generatorrc.js
.eslint-doc-generatorrc.js
 
 
.gitignore
.gitignore
 
 
.yarnrc.yml
.yarnrc.yml
 
 
README.md
README.md
 
 
eslint.config.mjs
eslint.config.mjs
 
 
package.json
package.json
 
 
yarn.lock
yarn.lock
 
 

README.md

Outline

Creedengo-JS

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

Enable plugin with recommended configuration

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.

Name Description โš ๏ธ
avoid-autoplay Avoid autoplay for videos and audio content โœ…
avoid-brightness-override Should avoid to override brightness โœ…
avoid-css-animations Avoid usage of CSS animations โœ…
avoid-high-accuracy-geolocation Avoid using high accuracy geolocation in web applications โœ…
avoid-keep-awake Avoid screen keep awake โœ…
limit-db-query-results Should limit the number of returns for a SQL query โœ…
no-empty-image-src-attribute Disallow usage of image with empty source attribute โœ…
no-import-all-from-library Should not import all from library โœ…
no-imported-number-format-library You should not format number with an external library โœ…
no-multiple-access-dom-element Disallow multiple access of same DOM element โœ…
no-multiple-style-changes Disallow multiple style changes at once โœ…
no-torch Should not programmatically enable torch mode โœ…
prefer-collections-with-pagination Prefer API collections with pagination โœ…
prefer-lighter-formats-for-image-files Prefer lighter formats for image files โœ…
prefer-shorthand-css-notations Encourage usage of shorthand CSS notations โœ…
provide-print-css Enforce providing a print stylesheet โœ…

๐Ÿ›’ Distribution

You can follow changelog on GitHub Releases page.

You are visitor 01402520 โ€” GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800ร—600. No cookies required.