codeforpdx / PASS

PASS project - with HMIS module integration
MIT License
28 stars 25 forks source link

Scripting issue with ESLint and Prettier for Windows 11 #368

Closed leekahung closed 1 year ago

leekahung commented 1 year ago

Bug Description:

ESLint and Prettier appears to have issues with running on Windows 11. It couldn't seems to find the matching pattern when compared to Mac OS and Linux when running npm run lint or any related scripts with single quote '


Reproduction Steps:

1. Use a Windows computer 2. Attempt to run npm run lint 3. See issue


Expected Behavior:

To run ESLint and Prettier similar to how it is on Mac OS and Linux.


Actual Behavior:

It errors out by not finding the correct matches.


Desktop (please complete the following information):


Possible Solution (optional):

Have discussed and tested solution with Hauvert on his computer which is using Windows. The solution to this is to run ESLint and Prettier with double quotes ". This solution also works for Mac OS and Linux.

https://github.com/codeforpdx/PASS/assets/14917816/0c2921b1-6a97-4990-bfab-6b5ea34c370a

Raspber commented 1 year ago

Screenshot 2023-08-02 220159 Here an image the error on Windows 11 with single quotes '

Raspber commented 1 year ago

Here is the solution. Screenshot 2023-08-02 220801

leekahung commented 1 year ago

Issue resolved in PR #368. Closing.