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.
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 reformattednpm run format
- re-formats liquid, html, css, and js filesnpm run lint
- eslint checks js filesAll files in frontend have been checked by ESLint and reformatted by Prettier and now abide by rules.