spdx-online-tools icon indicating copy to clipboard operation
spdx-online-tools copied to clipboard

Added linters to the project

Open BassCoder2808 opened this issue 1 year ago • 0 comments

  • Intended to solve #472 • Install the necessary linters:
  1. Python linter: pylint (pip install pylint)
  2. JavaScript linter: eslint (npm install eslint)
  3. HTML linter: htmlhint
  4. CSS linter: stylelint (npm install stylelint) • Create configuration files for each linter:
  5. Python: create a .pylintrc file in the root directory of the project with desired configuration options
  6. JavaScript: create an .eslintrc file in the root directory of the project with desired configuration options.
  7. HTML: create a .tidyrc file in the root directory of the project with desired configuration options
  8. CSS: create a stylelint.config.js file in the root directory of the project with desired configuration options. • Integrate the linters into the project workflow:
  9. For Python, add a pylint command to the project's Makefile or scripts directory.
  10. For JavaScript, add an eslint command to the project's Makefile or scripts directory and include it in the pre-commit hook.
  11. For HTML, add a tidy command to the project's Makefile or scripts directory and include it in the pre-commit hook.
  12. For CSS, add a stylelint command to the project's Makefile or scripts directory and include it in the pre-commit hook.

BassCoder2808 avatar Jun 03 '23 06:06 BassCoder2808