fix(packages): Remove unnecessary code and add types for untyped code and prettify everything#2022
Conversation
✅ Deploy Preview for creative-fairy-df92c4 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
f1070ec to
ff88495
Compare
|
PRs need to be small and targetted, I can't review a PR this large. Can you break it up into multiple smaller ones? For example, one for removing That way changes I don't have feedback on can be merged quickly without being blocked by comments on the other changes.
Linting and prettier are already setup exactly how I want them - with the defaults. I fall in the camp of just rolling with the defaults when available, less to worry about. So no, I don't want to make additional changes to their config. If PR checks pass, that's fine by me. We don't need super strict rules for everything. |
Ok, i'll do it someday |
|
@aklinker1 What's the reason, you don't want to make configs more strict? |
This isn't an enterprise project, we don't need to enforce every single nit and opinion. As an open source project, I'd rather not worry about all that and just go with the flow - oxlint's defaults already do a good job of preventing bugs and keeping code style consistent enough, everything past that is just opinions I don't care about enforcing and that do not provide a meaningful improvement to the project. Just because one person likes having curly braces after every if/else statement doesn't mean it's worth my time to review a PR going through the entire codebase and making a big PR to change them or modifying the git blame. The 15 minutes I've spent writing this up is already more time than I'd like to spend on these sorts of things. The only linting rules I would be willing to add are custom ones that enforce custom requirements specific to this repo - but none of those exist right now and I'd prefer to keep the repo simple enough that those are never needed. |
|
TLDR; I believe the defaults already provide the consistency this project needs. |
…unction of generate.ts
…o newer equivalent
…ocs for getMetas() and setMetas()
…send(), for avoid unnecessary code run
…CASE like real const and remove unnecessary `exists` func and use `pathExists` instead
… `await` and add question
…ssary `await`, make closeBrowser function of ExtensionRunner optional
…remove unnecessary `await`
ff88495 to
5c7c647
Compare
|
This PR will be split. |
Overview
anyand@ts-expect-errorand@ts-ignoreawait, beforereturnI'm also added some questions to maintainers under
TODO:keys (let's response, please 😄)PS: I can make it a little better, by configure more restrictions for
eslintandprettier(e.g brackets near to ifs, func and etc.) in other PR and reduce amount of tests, because IMO some of those isn't necessary(e.g this which TS preventing by itself) and we can remove it.Tell me if you overall, interested for more my influence on this project 👀
Manual Testing
Run tests and
pnpm testandpnpm devand check if everything's alright :)