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
Can't update @typescript-eslint #4
Comments
This also blocks the updating of all typescript/eslint related dependencies. (See #82 #91 #108 )
The issue is also 1 specific line in the config so would be nice if we could somehow just exclude that one. |
The good news is the config has been updated to remove the rule that was breaking the update so now we can update typescript/eslint/typescript-eslint/etc. The "bad" news several new rules have been introduced which we're currently breaking. Since linting rules often lead to discussions I'll list the new ones we're breaking here together with my opinions on them so you can quickly say which ones you want to keep (so no 3 PRs are needed before everyone is happy 😉 ) @typescript-eslint/consistent-type-importsForces you to use @typescript-eslint/naming-conventionThis changed to @typescript-eslint/lines-between-class-membersNo reason to have this. @typescript-eslint/no-unsafe-assignmentThis one errors when assigning an unicorn/catch-error-nameThey changed the variable name they want you to use in catch blocks 🙄 . Used to be @typescript-eslint/no-implicit-any-catchI'm not sure I fully get this one (click the name for related issue discussing this), but apparently you can type errors you catch in the new typescript, and it also allows @typescript-eslint/unbound-methodThis disallows the unicorn/no-object-as-default-parameterPrevents you from using an inline object as a default value for a function parameter as we do here. Would just disable. unicorn/prefer-optional-catch-bindingApparently you can have |
Agree with all your assessments, except that I'd be fine with |
Agree with all. See some notes below:
I'd be fine with this rule. I've noticed some linter rules can even break if you don't follow this convention.
I would also prefer
Probably has an auto-fixer, so wouldn't hurt to have.
+1 to only disable for test file. See Comunica repo on how to do that. |
And it has |
My main issue with that one is how much screenspace that takes up when you have a few variables (also that default means that there should be no exceptions). |
Ah no agreed, I had misread it. I wouldn't want space between just variables. |
Missed another part of the |
Looks nice a nice convention to me :-)
That's a good reason against. However, that would probably also apply to some other rules. |
The latest version of
@typescript-eslint/eslint-plugin
throws an error when using theeslint-config-es
settings. Reason being that the input that is allowed for a rule was changed. Apparentlyeslint-config-es
does not update regularly so until that is fixed we should stay on the version we currently have. This issue is mostly to remind us about this should we get errors when updating all dependencies (and to check later on if it is fixed).The text was updated successfully, but these errors were encountered: