yuriipalam opened a new pull request, #359: URL: https://github.com/apache/ozone-site/pull/359
## What changes were proposed in this pull request? Integrate ESLint into the project. [ESLint](https://eslint.org/) is a static code analyzer, so now we have analyzer during the development. Both tools were integrated, as well as relevant extensions to them, e.g., [Docusaurus ESLint plugin](https://docusaurus.io/docs/api/misc/@docusaurus/eslint-plugin) Fixed all the issues that the code analyzers found. Some files had `.js` extension, while they are supposed to have `.jsx` extension, since they have React code inside. - `pnpm run lint` now runs `eslint` as well. - `pnpm run lint:fix` now applies auto-fixes from ESLint as well. Strongly recommend you to check `eslint.config.mjs`, since it sets up the code rules for the project. I also added a custom rule that enforces the license header. I also updated `CONTRIBUTE.MD` accordingly, the "Quick Start" section and added a new "Linting and Formatting" section. ## What is the link to the Apache Jira? [HDDS-14770](https://issues.apache.org/jira/browse/HDDS-14770) ## How was this patch tested? Check off which of the following tests were done on this change. If additional testing was done, please elaborate here as well. - [ ] The CI checks on my fork are passing - [X] I verified the rendered content using a local preview - [X] I manually verified the steps provided in this change work as described -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
