Skip to content

green-code-initiative/creedengo-javascript

Repository files navigation

Creedengo-JS

creedengo is a collective project aiming to reduce environmental footprint of software at the code level. The goal of the project is to provide a list of static code analyzers to highlight code structures that may have a negative ecological impact: energy and resources over-consumption, "fatware", shortening terminals' lifespan, etc.

Websites are becoming increasingly heavy and complex over the years. They represent an important part of the digital environmental footprint. The JavaScript/TypeScript part of the project focuses on providing rules and guidelines to optimize web applications and server-side code written in JavaScript and TypeScript.

License: GPL v3 Build Sonar Quality gate

🌿 SonarQube plugin

Creedengo JavaScript is an "eco-responsibility" static code analyzer for projects based on the JavaScript ecosystem. It can handle JavaScript, TypeScript and all frameworks that use them. Its main purpose is to work with website source code, but it can also analyze back-end code.

This project proposes rules for the following technologies:

  • JavaScript
  • TypeScript
  • NestJS
  • React (JSX)
  • React Native / Expo

🔧 ESLint plugin

This project uses an internal ESLint plugin to analyze your source code.

If you are not using SonarQube, we have a solution for you: the linter is working nicely on its own!
Follow instructions in the dedicated README file to use it as a standalone plugin.

🛒 Distribution

sonar-plugin version eslint-plugin version

The plugin is available from the official SonarQube marketplace! Check the version matrix here.

Ready to use binaries for SonarQube are also available from GitHub.
Make sure to place the binary inside extensions/plugins/ folder of your SonarQube instance.

The standalone version of the ESLint plugin is available from npmjs.

🧩 Compatibility

Plugins Version SonarQube version ESLint version
1.4.+, 1.5.+ 9.9.+ LTA to 10.7 7+

🤝 Contribution

You have an idea or you want to help us improving this project?
We are open to your suggestions and contributions! Open an issue or PR 🚀

Check out the CONTRIBUTING.md file and follow the various guides to start contributing.

Thank you to all the people who already contributed to creedengo-javascript!

  • Elise Dubillot
  • Laetitia Bézie