THANK YOU - for considering to help make this project better!
This is the first open sourced project this poor coder ever created, so any help is welcome <3
In this guide you will get an overview of what kind of contributions you could give and how to suggest changes or improvements.
If you have some ideas for how to help developers avoid the pitfalls of writing code that consumes a lot of the earth's resources - please do!
You can create issues HERE.
Suggestions do not need to be limited by new rules, if you see potential improvements to existing rules, their tests or documentation - please submit them as issues or pull requests!
git clone https://github.com/Andersclark/eslint-plugin-sustainable.git
Yeoman is a code generator that can be used to scaffold projects and edits to existing projects. It can be used to set up new ESlint plugins, as well as adding rules to existing plugins.
npm i -g yo
npm i -g generator-eslint
After installing Yeoman and the ESlint generator, a new rule can be added through a terminal in the root folder of the project:
yo eslint:rule
The command will add files for the rule, documentation and tests in the corresponding folders.
The AST Explorer can be used to understand how the code is parsed and to debug rules.
Set the AST explorer to use babel-eslint
and to transform with ESlint v8
(as of 2023-12-01).
Simply throw up a Pull Request and take it from there! PR's require at least one approval before merging.