Closed shahzadnaeem closed 2 years ago
Formatting of exercises needs to be reviewed also. The package.json
file includes packages that automate the formatting of code and tests using the defined ESLint rule which include the use of Prettier. This is defined in the Environment Setup Guide, but I can't find details of the VSCode settings that are required to enable the automatic use of ESLint as a formatter.
formatt
in 'Search Settings' and update the followingText Editor/Formatting
- Enable Format On Paste and Format On SaveExtensions/ESLint
- Enable ESLint as a formatterExtensions/Typescript
- Disable BOTH Javascript and Typescript formattersAll exercises should be formatter using the above settings so as to avoid the 'sea of red squiggles` which is very distracting to students - especially the new ones.
Thanks for your work on this @shahzadnaeem - I think we can go ahead and remove the todo's about extensions and I'll do a once over to add LO's. If there are any with missing descriptions (In this exercise you will...), let's just get rid of those for now.
I'll create a separate issue for adding extensions to these repos, it's not a priority.
RE The template repo you created, there's already an existing JS template repo here: https://github.com/boolean-uk/js-template-repo
Let's stick with using that original one - could you move the work you did in your template repo to there and delete the new one? You likely made some improvements we should introduce to the original
Updates following review comments from Nathan
The following new repos need to be reviewed for correctness - see also #123
Check for the following:
In addition Husky operation needs to be checked. Maybe specific to Linux where I'm seeing it? Permission change in README, or change locally and commit. Looks like
git update-index --chmod=+x <file>
can do this... Getting the following warning when pushing: