Skip to content
This repository has been archived by the owner on Aug 14, 2024. It is now read-only.

feat: turn off some rules #283

Merged
merged 1 commit into from
Mar 19, 2022
Merged

feat: turn off some rules #283

merged 1 commit into from
Mar 19, 2022

Conversation

lucasvazq
Copy link
Contributor

With this PR, I turn off some rules that are not required.

Here is the explanation:

@iamturns
Copy link
Owner

Thanks for the PR @lucasvazq

Sorry, but I don't think these rules belong in eslint-config-airbnb-typescript

An excerpt from the readme:

I wish this config would support [...]

This config simply enhances the Airbnb with TypeScript support. It's not a single config to cater for all TypeScript linting requirements. For additional functionality, alter your ESLint config file. For example:

module.exports = {
  extends: [
    'airbnb',
    'airbnb-typescript',
    'airbnb/hooks',
    'plugin:@typescript-eslint/recommended',
    'plugin:@typescript-eslint/recommended-requiring-type-checking',
  ],
};

@lucasvazq
Copy link
Contributor Author

Hello @iamturns !

I understand your point. I just thought eslint-config-airbnb-typescript was copying some rules from plugin:@typescript-eslint/recommended. Why did I think this? Because I took a quick look and saw that these rules (eslint-config-airbnb-typescript:master) are very similar to the ones defined in this file (plugin:@typescript-eslint/recommended:main). Therefore, I had intuited that eslint-config-airbnb-typescript was outdated and I decided to create this PR to make an update.

If you still think you're right, feel free to close this PR.

@iamturns
Copy link
Owner

iamturns commented Mar 19, 2022

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!

@iamturns iamturns merged commit 11185a9 into iamturns:master Mar 19, 2022
@iamturns
Copy link
Owner

🎉 This PR is included in version 16.1.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

crapStone pushed a commit to Calciumdibromid/CaBr2 that referenced this pull request Mar 23, 2022
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 ([#&#8203;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 ([#&#8203;282](iamturns/eslint-config-airbnb-typescript#282)) ([221be43](iamturns/eslint-config-airbnb-typescript@221be43)), closes [#&#8203;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 <cabr2.help@gmail.com>
Co-authored-by: 6543 <6543@noreply.codeberg.org>
Reviewed-on: https://codeberg.org/Calciumdibromid/CaBr2/pulls/1230
Reviewed-by: 6543 <6543@noreply.codeberg.org>
Co-authored-by: Calciumdibromid Bot <cabr2_bot@noreply.codeberg.org>
Co-committed-by: Calciumdibromid Bot <cabr2_bot@noreply.codeberg.org>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants