4 ms·
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 has
by canadev 12y ago
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.
- athaeryn 12y agoWhat are you looking to do with "language styles" that you can't do based on file extension?
- deleted 12y ago[deleted]
- canadev 12y agohttps://github.com/felixge/node-style-guide https://github.com/felixge/node-style-guide https://github.com/styleguide/ruby https://github.com/styleguide/ruby This sort of thing...
- mts_ 12y agoThere is JSCS for Javascript: https://github.com/jscs-dev/node-jscs#options https://github.com/jscs-dev/node-jscs#options
- rstacruz 12y agoTypically those are done using configuration files of code-checking tools, such as .jshintrc[1] or .pylintrc. [1]: https://gist.github.com/connor/1597131 https://gist.github.com/connor/1597131
- canadev 12y agoI 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.)
- michaelmior 12y agoThe 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)
- Mpdreamz 12y ago.editorconfig supports domain specific properties: https://github.com/editorconfig/editorconfig/wiki/EditorConf.. https://github.com/editorconfig/editorconfig/wiki/EditorConf.... Its encouraged that other extensions/tooling take a dependency on .editorconfig to introduce their own configuration.