VRMS
VRMS copied to clipboard
Create script to output list of files containing linting errors
Overview
To streamline linting remediation across the VRMS codebase, we need a script that outputs a list of files with linting errors. This will help prioritize fixes and track progress, and align work across team members.
Action Items
- [x] Investigate using
npx eslint .with formatting or flags to output only filenames with lint errors. - [x] Experiment with filtering techniques (e.g., using
--format jsonor--quiet) to extract just the file paths. - [x] Create a reusable script (e.g.,
scripts/list-lint-files.jsor shell script) that outputs a clean list of affected files. - [ ] Test output across multiple folders to ensure compatibility and accuracy.
- [x] Include count of files with lint errors.
- [x] Add the script to
package.jsonunderscriptsfor ease of use (e.g.,"lint:files": "node scripts/list-lint-files.js").- [ ] Paste instructions on how to run script within the resources section of the epic: https://github.com/hackforla/VRMS/issues/1966
Resources/Instructions
- ESLint CLI Options: https://eslint.org/docs/latest/use/command-line-interface
- For broader compatibility, explore writing a simple Node.js script to parse and display filenames from JSON output.
- This issue is part of the epic: https://github.com/hackforla/VRMS/issues/1966