DSACMS / metrics

Experimentations in Open Source Repository Metrics
https://dsacms.github.io/metrics/
Other
6 stars 2 forks source link

Added Code Formatting and Linting Tools to Project Frontend #67

Closed natalialuzuriaga closed 8 months ago

natalialuzuriaga commented 9 months ago

Added Code Formatting and Linting Tools to Project Frontend

Problem

Before, there's no code formatter and linter for the project frontend.

Solution

The project now uses Prettier as the code formatter and ESLint as the linter. These tools are also used in /open and the DSAC website.

An upcoming PR will implement these checks on PR reviews and website deployment.

Result

The following commands will run the tools: npm run style - checks if files need to be reformatted npm run format - re-formats liquid, html, css, and js files npm run lint - eslint checks js files

All files in frontend have been checked by ESLint and reformatted by Prettier and now abide by rules.