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

Enable eslint:recommended and prefer-arrow as error level with opt-in allowStandaloneDeclarations #476

Merged
merged 5 commits into from
Jun 28, 2022

Conversation

kachick
Copy link
Member

@kachick kachick commented Jun 23, 2022

@pankona Do you think any merit of the plugin? That forces to use unfit syntax for type assertions. I guess we can opt-out it with allowStandaloneDeclarations option, however dropping low merit dependency makes more good, I think.

So this PR drops the dependency and enable built-in "eslint:recommended". It catched dangerous use of switch.

@kachick kachick requested review from a team and pankona and removed request for a team June 23, 2022 15:17
@kachick kachick changed the title [RFC] Enable eslint:recommended and drop eslint-plugin-prefer-arrow plugin [RFC] Enable eslint:recommended and ~drop eslint-plugin-prefer-arrow plugin~ opt-in allowStandaloneDeclarations Jun 28, 2022
@kachick kachick changed the title [RFC] Enable eslint:recommended and ~drop eslint-plugin-prefer-arrow plugin~ opt-in allowStandaloneDeclarations Enable eslint:recommended and opt-in allowStandaloneDeclarations Jun 28, 2022
@kachick kachick changed the title Enable eslint:recommended and opt-in allowStandaloneDeclarations Enable eslint:recommended and prefer-arrow as error level with opt-in allowStandaloneDeclarations Jun 28, 2022
@kachick kachick changed the title Enable eslint:recommended and prefer-arrow as error level with opt-in allowStandaloneDeclarations Enable eslint:recommended and prefer-arrow as error level with opt-in allowStandaloneDeclarations Jun 28, 2022
@kachick kachick requested a review from pankona June 28, 2022 03:15
@pankona
Copy link
Member

pankona commented Jun 28, 2022

Agree! Let's merge it! 😋

@kachick kachick merged commit f90c43a into main Jun 28, 2022
@kachick kachick deleted the drop-arrow-eslint-plugin branch June 28, 2022 03:54
@kachick
Copy link
Member Author

kachick commented Jun 28, 2022

Thank you for approving my opinion 😤

I might change my mind in near feature 😋

kachick added a commit that referenced this pull request Jul 1, 2022
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