fosstars-rating-core icon indicating copy to clipboard operation
fosstars-rating-core copied to clipboard

PoC: Presence of ESLint in JS projects

Open sourabhsparkala opened this issue 3 years ago • 2 comments

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.

sourabhsparkala avatar Nov 16 '21 16:11 sourabhsparkala

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

michael-spengler avatar May 13 '22 08:05 michael-spengler

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

michael-spengler avatar May 13 '22 08:05 michael-spengler