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

fix(linters): address all existing violations in the codebase #1198

Merged
merged 5 commits into from
Dec 2, 2022

Conversation

giamir
Copy link
Contributor

@giamir giamir commented Dec 1, 2022

This PR fixes existing issues with our linters and formatters.
Running npm run lint now executes stylelint, eslint and prettier --check concurrently.
All checks are now passing in preparation for the testing PR where we will start running linters (as well as tests) in a github workflow.

Prettier and Style Formatting

I have experienced a strange behavior running prettier against our less files: the formatter will break the style syntax.
For the time being I have decided to exclude less files from prettier since they already get some format check with stylelint. We might want to revisit this decision though.

@giamir giamir requested review from a team and dancormier December 1, 2022 10:39
@netlify
Copy link

netlify bot commented Dec 1, 2022

Deploy Preview for stacks ready!

Name Link
🔨 Latest commit 2e24070
🔍 Latest deploy log https://app.netlify.com/sites/stacks/deploys/6389b43182863c000991d940
😎 Deploy Preview https://deploy-preview-1198--stacks.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Copy link
Contributor

@dancormier dancormier left a comment

Choose a reason for hiding this comment

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

I like it! Feels good to see our codebase tend towards consistency. Thanks for picking this up!

I had a question or two, so I'm not explicitly approving it, but if my questions don't require any changes, feel free to merge. I know this will create a handful of conflicts with existing branches, so I understand the urgency here.

Once this is merged, I'll take a minute to update my outstanding branches.

lib/ts/controllers/s-popover.ts Show resolved Hide resolved
lib/ts/controllers/s-table.ts Outdated Show resolved Hide resolved
@giamir
Copy link
Contributor Author

giamir commented Dec 2, 2022

Thanks @dancormier for the review (and for a great catch!). Will merge the PR now into develop and rebase the testing branch accordingly.

@giamir giamir merged commit ac98bcd into develop Dec 2, 2022
@giamir giamir deleted the gbuoncristiani/fix-formatting-linting branch December 2, 2022 08:19
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.

2 participants