Closed vladfrangu closed 3 years ago
@vladfrangu there's #24 most of it is done, you can use that
yeah, I'm planning to for the bigger classes since I saw you did a lot with generics, unless you meant something else! 😋
@B4nan could you please check this?
@vladfrangu sorry for the long delay, https://github.com/apify/apify-shared-js/issues/131 is closed now and the shared repo is fully in TS, you can continue with the work.
@B4nan Should I disable the import/extensions
rule globally? It's not needed at all in JS/TS, and from one of your commits you even removed the extension from some imports 👀
I can PR it to the eslint config repository if that's desired :D
afaik in TS we should not use extensions in imports, or something changed? :] i know they are required to use ESM, but we are not at that boat just yet and i expect TS to handle that for us anyway
but i dont get the context, do we have some extensions in imports in the repo?
but i dont get the context, do we have some extensions in imports in the repo?
On the JS side it's complaining that they are missing, hence why I'm asking what I should do
idk, i guess we want them in the JS files, but there should be no JS (source) files once we are done with the conversion, right? :]
i'd rather not adjust the linter rules for JS files without knowing more context
Alrighty! Then this PR is review-and-merge ready 👍
Looking at that commit I made and the linter passed just fine on that, weird. Maybe we should really disable that rule, personally I am not a big fan of airbnb style guide anyway :D
Or fix it now in the JS files, but the extensions should not be there once its TS.
Looking at that commit I made and the linter passed just fine on that, weird. Maybe we should really disable that rule, personally I am not a big fan of airbnb style guide anyway :D
Or fix it now in the JS files, but the extensions should not be there once its TS.
I'll fix the errors in this PR, you peeps can talk about the eslint rule part 😄
Scratch that, turns out the errors are caused by the fact the files are now .ts
instead of .js
, which the rule dislikes... 🙃
And we cannot import .ts files, since they don't exist at runtime... Should I just disable the rule for now in the module instead?
yeah just add ignore comments i guess, we can deal with that later.
Will depend on https://github.com/apify/apify-shared-js/issues/131
CC: @pocesar @B4nan @mnmkng