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

improve linting #1306

Merged
merged 17 commits into from
Nov 14, 2024
Merged

improve linting #1306

merged 17 commits into from
Nov 14, 2024

Conversation

irahopkinson
Copy link
Contributor

@irahopkinson irahopkinson commented Nov 14, 2024

  • use the TS version of class-methods-use-this so we can ignore override methods.

Note

  • import/no-anonymous-default-export was moved to it's alphabetical location.
  • ignoreClassesThatImplementAnInterface is explicitly false as it will ignore ALL methods if a class implements an interface, not just the ones in the interface. Eslint exception comments will keep these intentional.

This change is Reviewable

Copy link
Member

@tjcouch-sil tjcouch-sil left a comment

Choose a reason for hiding this comment

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

:lgtm: great! Thanks for finding and implementing this. I didn't know about this rule.

Reviewed 27 of 27 files at r1, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

fddfe3be5 improve linting (#31)

git-subtree-dir: extensions
git-subtree-split: fddfe3be5b8aa13896dc23062a89918a730efcd4
…864fa

8902864fa improve linting (#85)

git-subtree-dir: extensions/src/hello-someone
git-subtree-split: 8902864faf945d80c48def6ba5e728cbe677de58
8902864fa improve linting (#85)

git-subtree-dir: extensions/src/hello-world
git-subtree-split: 8902864faf945d80c48def6ba5e728cbe677de58
…6fc..8902864fa

8902864fa improve linting (#85)

git-subtree-dir: extensions/src/legacy-comment-manager
git-subtree-split: 8902864faf945d80c48def6ba5e728cbe677de58
…fc..8902864fa

8902864fa improve linting (#85)

git-subtree-dir: extensions/src/paratext-registration
git-subtree-split: 8902864faf945d80c48def6ba5e728cbe677de58
….8902864fa

8902864fa improve linting (#85)

git-subtree-dir: extensions/src/platform-scripture
git-subtree-split: 8902864faf945d80c48def6ba5e728cbe677de58
…51c6fc..8902864fa

8902864fa improve linting (#85)

git-subtree-dir: extensions/src/platform-scripture-editor
git-subtree-split: 8902864faf945d80c48def6ba5e728cbe677de58
8902864fa improve linting (#85)

git-subtree-dir: extensions/src/quick-verse
git-subtree-split: 8902864faf945d80c48def6ba5e728cbe677de58
- use the TS version of `class-methods-use-this` so we can ignore override methods.
@irahopkinson irahopkinson marked this pull request as ready for review November 14, 2024 18:22
@irahopkinson
Copy link
Contributor Author

Neither did I but I suspected a TS version might be able to do better so I had a look.

@irahopkinson irahopkinson merged commit 71bcb05 into main Nov 14, 2024
7 checks passed
@irahopkinson irahopkinson deleted the improve-lint branch November 14, 2024 18:35
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