Skip to content
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

Feature: Providing Disabling Rules that Conflict #141

Open
2 tasks done
ofk opened this issue Apr 30, 2024 · 0 comments
Open
2 tasks done

Feature: Providing Disabling Rules that Conflict #141

ofk opened this issue Apr 30, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@ofk
Copy link

ofk commented Apr 30, 2024

Describe the rule

The eslint-plugin-perfectionist may conflict with existing rules. For instance, eslint-plugin-perfectionist/sort-imports requires disabling the built-in sort-imports and import/order rules. I believe it would be more convenient if plugins offer such rules to disable.

Code example

import perfectionistNatural from 'eslint-plugin-perfectionist/configs/recommended-natural'
import perfectionistTurnoff from 'eslint-plugin-perfectionist/configs/recommended-turnoff'

export default [
  perfectionistNatural,
  perfectionistTurnoff, // { rules: { 'sort-imports': 0, 'import/order': 0, … } }
]

Additional comments

Providing disabling of conflicting rules like this is already done by eslint-config-prettier.

Validations

  • Read the docs.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
@ofk ofk added the enhancement New feature or request label Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant