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

Added typescript-eslint to the project #9

Closed
wants to merge 1 commit into from
Closed

Conversation

mike182uk
Copy link
Member

@mike182uk mike182uk commented Jul 29, 2024

refs AP-330

Added typescript-eslint to the project and configured it to use the recommended rules from eslint / typescript-eslint and the sytlistic rules from typescript-eslint.

All violations have been fixed except for some @typescript-eslint/no-explicit-any violations which may need a larger refactor to fix.

For now @typescript-eslint/no-explicit-any violations have been set to warn instead of error until we can fix them.

refs [AP-330](https://linear.app/tryghost/issue/AP-330/linting-needs-to-be-configured-for-tryghostactivitypub)

Added typescript-eslint to the project and configured it to use the recommended
rules from eslint / typescript-eslint and the sytlistic rules from typescript-eslint.
All violations have been fixed except for some `@typescript-eslint/no-explicit-any`
violations which may need a larger refactor to fix. For now `@typescript-eslint/no-explicit-any`
violations have been set to `warn` instead of `error` until we can fix them.
@mike182uk mike182uk changed the title Add linting to project Added typescript-eslint to the project Sep 16, 2024
@mike182uk
Copy link
Member Author

I have also added in the configuration for tseslint.configs.recommendedTypeChecked but have disabled this for now as it throws up a bunch of errors related to the use of any (see description). Once we have fixed the outstanding any issues, we can enable this ruleset for more advanced type checking as part of the linting process

@mike182uk mike182uk requested a review from allouis September 16, 2024 19:42
@mike182uk mike182uk marked this pull request as ready for review September 16, 2024 19:42
@mike182uk
Copy link
Member Author

Closing this as its out of date and we are looking at utilising different tooling

@mike182uk mike182uk closed this Oct 3, 2024
@mike182uk mike182uk deleted the add-eslint branch October 31, 2024 20:50
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