processmaker
processmaker copied to clipboard
FOUR-6594: Add Prettier to Core
Issue
Ticket: FOUR-6594
Related to our implementation of ESLint, we need to add Prettier to Core.
Solution
Installed Prettier in Core. Set configs to allow Prettier to only indent inside of the resources folder.
How to Test
- Run
npx eslint resources/js/adminin Core. You should get a list of errors, including errors from Prettier. (Note: Runningnpx eslint resourceswill take a while because of the large number of files in theresourcesfolder.)
Related Tickets & Packages
- FOUR-6060 | Implement Eslint in Core
- FOUR-6057 | Story: As a Developer, I want to improve the developer experience so that we code better and faster
Code Review Checklist
- [ ] I have pulled this code locally and tested it on my instance, along with any associated packages.
- [ ] This code adheres to ProcessMaker Coding Guidelines.
- [ ] This code includes a unit test or an E2E test that tests its functionality, or is covered by an existing test.
- [ ] This solution fixes the bug reported in the original ticket.
- [ ] This solution does not alter the expected output of a component in a way that would break existing Processes.
- [ ] This solution does not implement any breaking changes that would invalidate documentation or cause existing Processes to fail.
- [ ] This solution has been tested with enterprise packages that rely on its functionality and does not introduce bugs in those packages.
- [ ] This code does not duplicate functionality that already exists in the framework or in ProcessMaker.
- [ ] This ticket conforms to the PRD associated with this part of ProcessMaker.
NOTE: Hopefully the Eslint work gets merged soon #4461 which will make this PR really tiny