News for hackers. Stuff that matters.
Re:EditorConfig by canadev on Thursday October 16, 2014 @12:50AM (#8463420)
The idea seems very cool, but I wonder if there is anything like this that could have more language specific stuff like "in JS (or Ruby, or ...) format your hashes/object literals/arrays/constants/... like so."

I like this, but the list of supported properties seems pretty short. I can see there might be some difficulties making it language-aware since the file formats are simple globs, but maybe you could say something like:

  [*.js]
  language_style = javascript
and somewhere describe that language_style in more detail.
Re:EditorConfig by Mpdreamz on Thursday October 16, 2014 @03:14AM (#8463755)
.editorconfig supports domain specific properties: https://github.com/editorconfig/editorconfig/wiki/EditorConf.... Its encouraged that other extensions/tooling take a dependency on .editorconfig to introduce their own configuration.
Re:EditorConfig by peterjmag on Thursday October 16, 2014 @05:35AM (#8464104)
Re:EditorConfig by canadev on Thursday October 16, 2014 @05:34AM (#8464101)
Interesting. I'll take a look to see what domain specific properties exist.
Re:EditorConfig by rstacruz on Thursday October 16, 2014 @01:48AM (#8463557)
Typically those are done using configuration files of code-checking tools, such as .jshintrc[1] or .pylintrc.

[1]: https://gist.github.com/connor/1597131

Re:EditorConfig by canadev on Thursday October 16, 2014 @05:33AM (#8464096)
I guess I just figure these two are sort of overlapping. If you use .jshintrc why do you need this tool?

(The neat idea being: if a project has many languages, you can share code conventions for all of them in one place.)

Re:EditorConfig by michaelmior on Thursday October 16, 2014 @09:21AM (#8464705)
The nice thing about EditorConfig is that it fixes some problems before they occur instead of requiring you to manually fix things after running a linter (e.g. spaces vs tabs)
Re:EditorConfig by athaeryn on Thursday October 16, 2014 @01:39AM (#8463532)
What are you looking to do with "language styles" that you can't do based on file extension?
Re:EditorConfig by canadev on Thursday October 16, 2014 @05:32AM (#8464094)
Re:EditorConfig by mts_ on Thursday October 16, 2014 @01:45AM (#8463550)
There is JSCS for Javascript: https://github.com/jscs-dev/node-jscs#options