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

chore: linting fixes and improvements #426

Closed
wants to merge 3 commits into from

Conversation

luis-almeida
Copy link
Contributor

@luis-almeida luis-almeida commented Aug 31, 2023

Description

I have just realised that we were only running the checks workflow on PRs against master.
This means that our all the PRs on v4-alpha were unchecked. In this PR I editing the action so checks run on PRs against all branches.

Keeping consistency around file/folder naming, app structure or export/import patterns is hard.
In this PR I'm also adding ls-lint to check for file and folder name patterns. There may be better tools so feel free to add feedback.

Checklist

  • 📗 all commit messages follow the conventional commits standard
  • ⬅️ changes are compatible with RTL direction
  • ♿ Changes to the UI are tested for accessibility and compliant with WCAG 2.1.
  • 📝 changes are tested in Chrome, Firefox, Safari and Edge
  • 📱 changes are responsive and tested in mobile
  • 👍 PR is approved by @zendesk/vikings

@luis-almeida luis-almeida changed the title Luis.eslint fixes chore: linting fixes and improvements Aug 31, 2023
@luis-almeida luis-almeida marked this pull request as ready for review August 31, 2023 16:10
@luis-almeida luis-almeida requested a review from a team as a code owner August 31, 2023 16:10
Copy link
Contributor

@Fredx87 Fredx87 left a comment

Choose a reason for hiding this comment

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

In this PR I'm also adding ls-lint to check for file and folder name patterns. There may be better tools so feel free to add feedback.

It seems that there are also some eslint plugins that are able to perform the same checks, like https://github.com/DukeLuo/eslint-plugin-check-file. I don't know if they are as powerful as ls-lint, I am ok to use ls-lint as well

.ls-lint.yml Show resolved Hide resolved
@luis-almeida
Copy link
Contributor Author

I have opened a PR using https://github.com/DukeLuo/eslint-plugin-check-file with an alternative approach: #427

@luis-almeida luis-almeida deleted the luis.eslint_fixes branch September 7, 2023 14:13
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