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

config: migrate typescript partial eslint rules #119

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

MatheusBaldi
Copy link
Contributor

@MatheusBaldi MatheusBaldi commented Feb 13, 2025

Depends on:

#115

Description

Migrate possible typescript partial rules to stylistic.

@MatheusBaldi MatheusBaldi changed the title config: migrate typescript partial rules config: migrate typescript partial eslint rules Feb 13, 2025
// Replace eslint space-infix-ops with equivalent typescript-eslint rule to support
// linting type definitions
'space-infix-ops': 'off',
'@typescript-eslint/space-infix-ops': [ 'error' ],
'@stylistic/space-infix-ops': [ 'error' ],

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now that the stylistic rules support both TS and JS syntax, is space-infix-ops needed here since it will be enabled in base.js?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's something I wasn't able to decide for sure. If the project uses the entire eslint-config, or at least the base partial together with the typescript partial, then it would be redundant indeed. But, if only the typescript partial is used, then the project would lack this rule, in case it is not defined here. Historically, this rule wasn't present in this file, until recently, but because of this possibility of using only the typescript partial, I went for what seemed like the safest approach.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants