Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Eslint #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

eddie-atkinson
Copy link
Contributor

This PR adds eslint and some default VSCode config. There are quite a few failing rules, in almost all cases I ignored them instead of fixing them. In one or two cases I added some curly braces around if and else statements that were complaining.

In general I'm not keen to fix these issues until we get tests in and Typescript, which should both help to reduce the risk of breaking everything.

for (const parcel of event.applicableParcels) {
const currentParcel = currentHoldings[parcel.id];
if (!currentParcel) decorations.errors.push(`Parcel ${parcel.id} did not exist at the sale date`);
else if (currentParcel.asxCode !== event.asxCode) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here is where I added the curlies, happy to revert

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant