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

Setup recommended eslint preset #1345

Merged
merged 1 commit into from Feb 19, 2021
Merged

Setup recommended eslint preset #1345

merged 1 commit into from Feb 19, 2021

Conversation

TrySound
Copy link
Member

@TrySound TrySound commented Feb 19, 2021

This is usually enough to prevent silly mistakes.
Formatting will be done by prettier after merging pull requests.

cc @XhmikosR

This is usually enough to prevent silly mistakes.
Formatting will be done by prettier after merging pull requests.
@XhmikosR
Copy link
Contributor

It's a good start but IMHO there are plenty of stuff that aren't checked. You are still using var for example for in isn't guarded etc, etc.

Personally, I don't like reinventing the wheel, so I'd go with xo which also supports prettier.

Just my 2 cents, since this a subjective topic :)

@TrySound
Copy link
Member Author

I understand a lot not checked. Though I like wheels. And I don't feel comfortable with such big packages
https://packagephobia.com/result?p=xo

@TrySound TrySound merged commit a7cc20b into master Feb 19, 2021
@XhmikosR
Copy link
Contributor

I understand that, I don't like big deps either. That being said, you are certainly not checking for pretty important things.

Sure, you could add eslint security and other configs, but then you are reinventing the wheel and you won't achieve all the rules.

Anyway, it's your call but issues like #1341 could have been caught.

@TrySound TrySound deleted the setup-eslint branch February 22, 2021 21:45
indent_size = 2

[*.yml]
indent_size = 2
Copy link
Contributor

Choose a reason for hiding this comment

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

Why removed .editorconfig? This should not conflict with ESLint.

@yisibl
Copy link
Contributor

yisibl commented Feb 23, 2021

Can we use https://prettier.io/?

@TrySound
Copy link
Member Author

Yes, I will setup prettier after dealing with pull requests to not introduce too much conflicts.

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.

None yet

3 participants