fosstars-rating-core
fosstars-rating-core copied to clipboard
PoC: Presence of ESLint in JS projects
ESLint is a tool for identifying and reporting on patterns found in ECMAScript/JavaScript code, with the goal of making code more consistent and avoiding bugs.
- Configuration requires presence of
.eslintrc.*
files in the project directory. https://eslint.org/docs/user-guide/configuring/configuration-files
DoD:
- Identify if a new feature can be extracted from here.
- Also addition to the score.
to prepare a proper example project I applied https://eslint.org/docs/user-guide/getting-started to configure eslint for https://github.com/michael-spengler/fosstars-rating-core-client-javascript-in-nodejs-example
the .eslintrc file might be available as .js, .yml or .json file...
level one would be checking if such an .eslintrc file is present.
level two would be checking if it is actually used - e.g. via husky --> pre-commit hooks / or via a github action calling - e.g. npx eslint src/example-server.js