ee-eslint-plugin
v1.0.1
Published
EE custom rules
Downloads
8
Readme
EE ESLINT PLUGIN
The EE ESLint plugin is a collection of ESLint rules that enforce the EE coding standards. The plugin is used to ensure that the codebase is consistent and follows the coding standards. The plugin is used in conjunction with ESLint to lint the codebase and enforce the coding standards.
NOTE
THIS PLUGIN IS STILL IN DEVELOPMENT AND NOT READY FOR USE
Features
The EE ESLint plugin provides the following features:
- A set of rules that enforce the EE coding standards
- Rules that cover best practices, stylistic issues, ECMAScript 6, variables, Node.js and CommonJS, possible errors, and strict mode
Installation
To install the EE ESLint plugin, follow these steps:
- Install ESLint if you haven't already installed it. You can install ESLint using npm or yarn:
npm install eslint --save-dev
- Install the EE ESLint plugin using npm or yarn:
npm install ee-eslint-plugin --save-dev
- Create an ESLint configuration file (
.eslintrc.js
) in the root of your project and add the following configuration:
module.exports = {
plugins: ['@eagleeye'],
extends: ['plugin:@eagleeye/recommended'],
};
- Run ESLint to lint your codebase:
npx eslint .
Usage
The EE ESLint plugin provides a set of rules that enforce the EE coding standards. The rules are categorized into the following categories:
- Best Practices
- Stylistic Issues
- ECMAScript 6
- Variables
- Node.js and CommonJS
- Possible Errors
- Strict Mode
TESTING THE PLUGIN LOCALLY To test the plugin locally, follow these steps:
- Clone the repository:
git clone
- Install the dependencies:
npm install
EE DEVELOPMENT
To develop the EE ESLint plugin, follow these steps:
Follow the steps above to install the plugin locally.
Once you have installed the plugin, you can make changes to the rules in the lib/rules
directory.
Run the tests to ensure that the changes are working as expected.
Once you are happy with the changes, you can publish the new version of the plugin to npm.
Run the tests before publishing:
npm link
then from the dashboard-ui directory run:
npm link ee-eslint-plugin
finally, Run the tests:
npm test
This will make the plugin available globally on your system. You can then use the plugin in your projects by running npx eslint .
in the root of your project.
Contributing
If you would like to contribute to the EE ESLint plugin, please follow these steps:
- Fork the repository
- Create a new branch
- Make your changes
- Run the tests
- Create a pull request
- Wait for feedback
- Merge the pull request
- Celebrate your contribution
- Update the README.md with the new features
- Update the CHANGELOG.md with the new features
- Update the package.json with the new version number
- Publish the new version to npm
- Update the documentation with the new features
- Update the tests with the new features
- Update the examples with the new features