-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Update ESLint Config #407
Comments
Thanks @kwelch! I vote for ESLint recommended. If you prefer something else, enter a comment so people can upvote via a 👍 |
I would not mind seeing us incorporate prettier (or prettier-eslint) to have a simple consistent format and use baseline recommended for best practice / bug catching type linting. |
I like Prettier, but also recognize it's a polarizing idea - As an anecdote, in our office, a significant portion of people find the idea of having their code changed automatically in any way unsavory. Many prefer to "learn from their mistakes" by manually fixing what ESLint reports. I can appreciate that. And there are certainly things Prettier does that I don't like - such as splitting long imports into multiple lines. So I feel ESLint recommended is the most populous friendly approach at the moment. |
I understand that. It also adds a bit more weight than I think we would stand to institute and support in a boilerplate. It is a better fit for library. |
I think we are solid on the approach. Adding a help wanted and good first PR label. |
@coryhouse - you could have both, ESlint would still throw errors and warnings at you via your editor, while prettier can make sure the output of the file is exactly the same no matter who has written it. |
@qborreda True, though it seems the recommended approach is to disable any formatting related warnings from ESLint to avoid the duplication. It would seem noisy to warn someone about something that will be automatically fixed on save/commit. I think that's the sales pitch for prettier - it makes coding more luxurious because you literally stop thinking about formatting altogether. |
I am not a maintainer but I do use this boilerplate quite a bit at my 9-5 and on my side work. I prefer |
@mikedevita, I haven't done a project with either yet, but just curious why you prefer standard over prettier. I know prettier has a setting to kill semi-colons if you don't want them. |
I have no pref over one or the other I've never used prettier.
|
I think for this project |
so regarding your rules in this template. you based it off airbnb . But made some modifications? |
This seems simple enough for a first PR. So the consensus was to use ESLint recommended? Seems like this was already done:
cc @coryhouse |
The part we want to simplify is the rules section of the Currently the |
Okay so:
|
Not sure. How do you feel about the eslint rules? Should adopt or create a single preset that has all options needed? Or should we just remove rules and use the presets we currently have? Please vote: |
@kwelch, since this is a boilerplate, I'd either remove all rules or go with a standard preset. |
Agreed. Any recommendations? I don't think the presets we have are very helpful safety for a starter. |
I agree that the loose settings we have now aren't the ideal - they're really my unique preferences. I'd suggest just using a standard preset. |
@coryhouse @kwelch so we would like to have a preset but Airbnb is not a good candidate? what about |
It looks like remove all rules received the most votes above so I'd suggest a PR that:
Thoughts @kwelch @nickytonline ? |
Sounds good to me. |
Yes, I love that idea. |
After the changes made in #405, there is a lot of eslint config now in the
package.json
.In effort to clean this up, there was a suggestion to move Slingshot to a baseline preset.
This issue is to capture that ask and open the discussion to others about what the eslint config preset should be set to.
Options
The text was updated successfully, but these errors were encountered: