-
-
Notifications
You must be signed in to change notification settings - Fork 730
feature: add no-trigger-core-import #1175
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
Conversation
🦋 Changeset detectedLatest commit: 2fa57dc The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
380794e
to
7270f48
Compare
@jacobparis I don't think it's a good idea to remove the |
It's not strictly needed but the eslint autofixing with types sometimes doubles them like A clean solution would be to run the autofix to remove all type imports and then change the lint rule to run again and add them all from a clean state, which should avoid it getting tangled But I have no strong opinions here |
This is temporary so no one fixes these until we merge the remix branch
This is great, I've turned off the vscode setting for now so that people don't fix these issues before we merge the Vite branch. What's going to happen:
|
@trigger.dev/core
and@trigger.dev/core/v3
directly (favouring more specific exports) and autofixes all of them in the codebaseThis PR should be mergeable on its own, designed to minimize conflicts.
Running this command with the following lint config takes about 30 seconds on my machine and fixes all of the imports in the project (approximately 140 files). After this PR lands, you can autofix and push the corrected imports at your leisure. Anyone with work in progress should be able to pull this commit+plugin and then autofix their pending files before to avoid merge conflicts.
I did not commit this config into this PR as that would cause the linter to fail, which we don't want to happen until a followup PR that comes with all the fixes so the linting is green again.
In order to make VS Code's eslint plugin work with the webapp properly, I also had to add the following to my
.vscode/settings.json
. I don't know if there's a better solution for folks working on more than one package.✅ Checklist
Testing
[Describe the steps you took to test this change]
Changelog
[Short description of what has changed]
Screenshots
[Screenshots]
💯