-
Notifications
You must be signed in to change notification settings - Fork 100
Conversation
Thanks for the PR @lucasvazq Sorry, but I don't think these rules belong in eslint-config-airbnb-typescript An excerpt from the readme:
|
Hello @iamturns ! I understand your point. I just thought If you still think you're right, feel free to close this PR. |
Hey @lucasvazq - great info, I appreciate all the links you added! I had embarssingly forgot about that chunk of code you listed 😊 I've been thinking on what to do. Option 1: I like the idea of removing these rules from this config. Keeping this set of rules as slim as possible, and leaving other concerns to better suited plugins, allowing flexibility to consumers in stacking eslint configs as they prefer. Option 2: I like the idea of keeping these rules in the config. They are enabled within airbnb config, but nobody wants them enabled in a TypeScript world, which feels within the realms of this plugin. I think Option 2 makes the most sense, and your PR is a great enhancement. Thank you! |
🎉 This PR is included in version 16.1.4 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [eslint-config-airbnb-typescript](https://github.com/iamturns/eslint-config-airbnb-typescript) | devDependencies | patch | [`16.1.2` -> `16.1.4`](https://renovatebot.com/diffs/npm/eslint-config-airbnb-typescript/16.1.2/16.1.4) | --- ### Release Notes <details> <summary>iamturns/eslint-config-airbnb-typescript</summary> ### [`v16.1.4`](https://github.com/iamturns/eslint-config-airbnb-typescript/releases/v16.1.4) [Compare Source](iamturns/eslint-config-airbnb-typescript@v16.1.3...v16.1.4) ##### Bug Fixes - disable additional rules handled by TypeScript compiler ([#​283](iamturns/eslint-config-airbnb-typescript#283)) ([11185a9](iamturns/eslint-config-airbnb-typescript@11185a9)) ### [`v16.1.3`](https://github.com/iamturns/eslint-config-airbnb-typescript/releases/v16.1.3) [Compare Source](iamturns/eslint-config-airbnb-typescript@v16.1.2...v16.1.3) ##### Bug Fixes - allow `return await` in `try-catch` block ([#​282](iamturns/eslint-config-airbnb-typescript#282)) ([221be43](iamturns/eslint-config-airbnb-typescript@221be43)), closes [#​280](iamturns/eslint-config-airbnb-typescript#280) </details> --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). Co-authored-by: cabr2-bot <[email protected]> Co-authored-by: 6543 <[email protected]> Reviewed-on: https://codeberg.org/Calciumdibromid/CaBr2/pulls/1230 Reviewed-by: 6543 <[email protected]> Co-authored-by: Calciumdibromid Bot <[email protected]> Co-committed-by: Calciumdibromid Bot <[email protected]>
With this PR, I turn off some rules that are not required.
Here is the explanation:
no-import-assign
: It's configured with error in eslint-config-airbnb, but marked as off in plugin:@typescript-eslint/recommendedno-setter-return
: It's configured with error in eslint-config-airbnb, but marked as off in plugin:@typescript-eslint/recommendedimport/no-named-as-default-member
: It's configured with error in eslint-config-airbnb, but the followingtypescript-eslint
documentation recommends turning it off: TROUBLESHOOTING