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

Fix .editorconfig settings for rc, JSON and YAML files #125

Open
raduserbanescu opened this issue May 23, 2017 · 0 comments
Open

Fix .editorconfig settings for rc, JSON and YAML files #125

raduserbanescu opened this issue May 23, 2017 · 0 comments

Comments

@raduserbanescu
Copy link

raduserbanescu commented May 23, 2017

The EditorConfig documentation (§ file-format-details) states:

{s1,s2,s3}: Matches any of the strings given (separated by commas) (Available since EditorConfig Core 0.11.0)

The current setup does not work neither when editing nor when creating files (rc files, *.json, *.yml). It should be changed to:

 # Json, YAML and Configuration files
-[.*rc,*.{json,yml}]
+[{.*rc,*.{json,yml}}]
 indent_style = space
 indent_size = 2

With the fixed setup, the EditorConfig settings apply properly for rc files, *.json, *.yml. Tested with the Atom plug-in and by linting the whole project with the echint package.

Note: It does not work with the Sublime Text plug-in neither with the old nor with the updated setup.

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

No branches or pull requests

1 participant