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

EditorConfig file #153

Closed
emgeee opened this issue Jun 9, 2015 · 6 comments

Comments

@emgeee
Copy link

commented Jun 9, 2015

Has there been any discussion around including a default .editorconfig file configured with the defaults of standard?

@feross

This comment has been minimized.

Copy link
Member

commented Jun 10, 2015

What would .editorconfig cover that our eslint rules don't already cover?

@emgeee

This comment has been minimized.

Copy link
Author

commented Jun 10, 2015

As far as I'm aware, eslint merely yells at you if you break convention, it doesn't do anything to enforce convention. EditorConfig would allow you a simple mechanism for ensuring your editor is configured to use 2 spaces (instead of tabs, 4 spaces, etc), as well as automatically strip line endings.

@feross

This comment has been minimized.

Copy link
Member

commented Jun 10, 2015

We use standard-format to automatically format code, including fixing things like space vs. tabs and stripping line endings.

You can use it with standard --format :-)

@feross feross closed this Jun 10, 2015

@winniehell

This comment has been minimized.

Copy link

commented Aug 2, 2015

With .editorconfig in place, you can use the short cut for formatting in your favorite IDE / editor. When using the same editor for languages other than JavaScript¹ mapping the shortcut to standard --format is not an option (... unless there is a standard for every common language out there).

¹ yes, I can't believe they stopped existing, either 😀

@feross

This comment has been minimized.

Copy link
Member

commented Aug 4, 2015

I don't think standard should automatically add .editorconfig to people's
repos, but if you want to share an example of an .editorconfig that's set
up nicely for use with standard, we can link to it from the website or
readme.

On Sunday, August 2, 2015, Winnie notifications@github.com wrote:

With .editorconfig in place, you can use the short cut for formatting in
your favorite IDE / editor. When using the same editor for languages other
than JavaScript¹ mapping the shortcut to standard --format is not an
option (... unless there is a standard for every common language out
there).

¹ yes, I can't believe they stopped existing, either [image: 😀]


Reply to this email directly or view it on GitHub
#153 (comment).

Feross | blog http://feross.org/ | webtorrent http://webtorrent.io/ |
studynotes http://www.apstudynotes.org/

@winniehell

This comment has been minimized.

Copy link

commented Aug 4, 2015

Nevermind, I tried - but several (formatting) rules are not representable in .editorconfig settings. For example spaces_around_brackets does not distinguish between function definition and function call.

@evanplaice evanplaice referenced this issue Oct 10, 2015

@lock lock bot locked as resolved and limited conversation to collaborators May 11, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
3 participants
You can’t perform that action at this time.