Repository navigation
fix(eslint): use recommendedTypeChecked - #1202
Conversation
|
Install the latest version of pnx https://pkg.svelte.dev/sv/c/248940d39bfa70771bfe4cfbe9d2b5993c32ddc5 createOpen in Note This PR is from a fork. A maintainer must approve approve each commit before it can be built and installed. |
|
I don't understand how this project is structured. It has 2 |
|
While looking into the lint failure for #1202 (comment), I started to go through the new lint rules (this list only contains what's added by I'm left wondering if the preset rules for For example, I can already foresee something like this: const foo = form(() => {
// ...stuff happens
query1().refresh() // lint error!
query2().refresh() // lint error!
})could erroneously lead people down the very wrong path of const foo = form(() => {
// ...stuff happens
// oops! these no longer run concurrently!
await query1().refresh()
await query2().refresh()
})however, while adding
I also vaguely remember |
|
Good stuff, definitely things to consider, hopefully this PR can create the discussion needed to merge this or to close the original issue. Will have to do more exploration with the new APIs.
It is part of the lint error, maybe we can overwrite it with our own custom error msg?
Don't think this is an issue, we don't throw |
Sadly i don't remember any of this. But I see your points. Do I see that correctly, that this PR tries to change the setup for new projects ( |
|
Changed target branch and resolved produced merge conflicts |
|
@manuel3108 This pr is ready to go. But @AdrianGonz97 mentions some issues for the upcoming async svelte with regards to conflicting eslint rules. We may need to fix them by providing our own modified versions, similar to svelte/prefer-const. @benmccann pinging previously mentioned parties |
manuel3108
left a comment
There was a problem hiding this comment.
Let's give this a try and see what users think. We can always revert if we receive complaints
|
Seems like we let this PR sit for too long, it has quite a lot of failing ci jobs |
|
Will rebase now that a decision has been made. |
accf17e to
08776d4
Compare
| // the project service (file is in a tsconfig) or `allowDefaultProject` — | ||
| // never both. the addon adds the config file to the tsconfig include for | ||
| // Kit 3 projects with a tsconfig, which decides which side it is on | ||
| const configInTsconfigProject = isKit3(kitVersion) && fileExists(cwd, 'tsconfig.json'); |
There was a problem hiding this comment.
This check isn't very good. vite-ts's tsconfig is the main reason for the issue.
There was a problem hiding this comment.
I'm thinking we patch do some patching upstream
# Conflicts: # packages/sv/src/addons/eslint.ts
|
This shipped in |
|
Seems like we forgot. |
|
Thanks for the heads up, see #1497 |
Closes #938
Description
Checklist