{"action":"created","issue":{"url":"https://api.github.com/repos/sindresorhus/editorconfig-sublime/issues/33","labels_url":"https://api.github.com/repos/sindresorhus/editorconfig-sublime/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/sindresorhus/editorconfig-sublime/issues/33/comments","events_url":"https://api.github.com/repos/sindresorhus/editorconfig-sublime/issues/33/events","html_url":"https://github.com/sindresorhus/editorconfig-sublime/issues/33","id":40292744,"number":33,"title":"Enforce Styles on Save? ST3?","user":{"login":"mysterycommand","id":810398,"avatar_url":"https://avatars.githubusercontent.com/u/810398?v=3","gravatar_id":"","url":"https://api.github.com/users/mysterycommand","html_url":"https://github.com/mysterycommand","followers_url":"https://api.github.com/users/mysterycommand/followers","following_url":"https://api.github.com/users/mysterycommand/following{/other_user}","gists_url":"https://api.github.com/users/mysterycommand/gists{/gist_id}","starred_url":"https://api.github.com/users/mysterycommand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mysterycommand/subscriptions","organizations_url":"https://api.github.com/users/mysterycommand/orgs","repos_url":"https://api.github.com/users/mysterycommand/repos","events_url":"https://api.github.com/users/mysterycommand/events{/privacy}","received_events_url":"https://api.github.com/users/mysterycommand/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sindresorhus/editorconfig-sublime/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/sindresorhus/editorconfig-sublime/labels/help%20wanted","name":"help wanted","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2014-08-14T19:57:31Z","updated_at":"2015-05-07T02:59:31Z","closed_at":null,"body":"A few of these issues seem to indicate that this plugin _should_ enforce a `.editorconfig`'s rules on a file when that file is saved, but I have a JS file with 2-space indentation that I want to convert to 4-space indentation and saving, opening, etc. the file isn't doing anything. Am I misinterpreting what this plugin is supposed to do? SublimeText 3, Build 3059 on Mac OS X 10.9.4. Here's my `.editorconfig`:\r\n\r\n```\r\n# editorconfig.org\r\nroot = true\r\n\r\n[*]\r\nindent_style = space\r\nindent_size = 4\r\nend_of_line = lf\r\ncharset = utf-8\r\ntrim_trailing_whitespace = true\r\ninsert_final_newline = true\r\n\r\n[*.json]\r\nindent_size = 2\r\n\r\n[*.md]\r\ntrim_trailing_whitespace = false\r\n```\r\n\r\n… and here's my ST3 console (I don't know if this is actually useful):\r\n\r\n```\r\nstartup, version: 3059 osx x64 channel: stable\r\nexecutable: /Applications/Sublime Text.app/Contents/MacOS/Sublime Text\r\nworking dir: /\r\npackages path: /Users/matthayes/Library/Application Support/Sublime Text 3/Packages\r\nstate path: /Users/matthayes/Library/Application Support/Sublime Text 3/Local\r\nhardware concurrency: 8\r\nzip path: /Applications/Sublime Text.app/Contents/MacOS/Packages\r\nzip path: /Users/matthayes/Library/Application Support/Sublime Text 3/Installed Packages\r\nfound 14 files for base name Default.sublime-keymap\r\nfound 1 files for base name Default.sublime-mousemap\r\nfound 13 files for base name Main.sublime-menu\r\nloading bindings\r\nloading pointer bindings\r\nfound 1 files for base name Spacegray Light.sublime-theme\r\ntheme loaded\r\napp ready\r\nwrote startup cache, added files: 7 orphaned files: 0 total files: 158 cache hits: 151\r\npre session restore time: 0.279394\r\nusing gpu buffer for window\r\nusing gamma: 2 (err: 6.9282)\r\nfirst paint time: 0.60469\r\nstartup time: 0.676102\r\nusing gpu buffer for window\r\nlaunching: /Applications/Sublime Text.app/Contents/MacOS/plugin_host\r\nloaded 1319 snippets\r\nreloading plugin Default.block\r\nreloading plugin Default.comment\r\nreloading plugin Default.copy_path\r\nreloading plugin Default.delete_word\r\nreloading plugin Default.detect_indentation\r\nreloading plugin Default.duplicate_line\r\nreloading plugin Default.echo\r\nreloading plugin Default.exec\r\nreloading plugin Default.fold\r\nreloading plugin Default.font\r\nreloading plugin Default.goto_line\r\nreloading plugin Default.history_list\r\nreloading plugin Default.indentation\r\nreloading plugin Default.kill_ring\r\nreloading plugin Default.mark\r\nreloading plugin Default.new_templates\r\nreloading plugin Default.open_file_settings\r\nreloading plugin Default.open_in_browser\r\nreloading plugin Default.pane\r\nreloading plugin Default.paragraph\r\nreloading plugin Default.paste_from_history\r\nreloading plugin Default.save_on_focus_lost\r\nreloading plugin Default.scroll\r\nreloading plugin Default.set_unsaved_view_name\r\nreloading plugin Default.side_bar\r\nreloading plugin Default.sort\r\nreloading plugin Default.swap_line\r\nreloading plugin Default.switch_file\r\nreloading plugin Default.symbol\r\nreloading plugin Default.transform\r\nreloading plugin Default.transpose\r\nreloading plugin Default.trim_trailing_white_space\r\nreloading plugin CSS.css_completions\r\nreloading plugin Diff.diff\r\nreloading plugin HTML.encode_html_entities\r\nreloading plugin HTML.html_completions\r\nreloading plugin AdvancedNewFile.AdvancedNewFile\r\nreloading plugin DocBlockr.__init__\r\nreloading plugin DocBlockr.jsdocs\r\nreloading plugin EditorConfig.EditorConfig\r\nreloading plugin Emmet.emmet-plugin\r\nreloading plugin Markdown Preview.helper\r\nreloading plugin Markdown Preview.markdown_settings\r\nreloading plugin Markdown Preview.markdown_wrapper\r\nreloading plugin Markdown Preview.MarkdownPreview\r\nreloading plugin Minifier.Minify\r\nreloading plugin Package Control.Package Control\r\nreloading plugin Pretty JSON.PrettyJson\r\n[Errno 2] No such file or directory: 'jq'\r\nreloading plugin SideBarEnhancements.Edit\r\nreloading plugin SideBarEnhancements.SideBar\r\nreloading plugin SideBarEnhancements.SideBarDefaultDisable\r\nreloading plugin SideBarEnhancements.StatusBarFileSize\r\nreloading plugin SideBarEnhancements.StatusBarModifiedTime\r\nreloading plugin SublimeLinter-csslint.linter\r\nSublimeLinter: csslint linter loaded \r\nreloading plugin SublimeLinter-jshint.linter\r\nSublimeLinter: jshint linter loaded \r\nreloading plugin SublimeLinter-json.linter\r\nSublimeLinter: json linter loaded \r\nreloading plugin TrailingSpaces.trailing_spaces\r\nreloading plugin CSScomb JS.CSScomb\r\nreloading plugin SFTP.SFTP\r\nreloading plugin SublimeLinter.commands\r\nreloading plugin SublimeLinter.sublimelinter\r\nplugins loaded\r\nSublimeLinter: debug mode: off \r\nfound 13 files for base name Main.sublime-menu\r\nPyV8: Creating new thread\r\nEmmet: Creating thread\r\nEmmet: Loading https://api.github.com/repos/emmetio/pyv8-binaries/contents\r\nEmmet: You have the most recent PyV8 binary\r\nPackage Control: No updated packages\r\nSublimeLinter: Using an unsupported shell: sh \r\nSublimeLinter: jshint activated: /usr/local/bin/jshint \r\nWriting file /Users/matthayes/path/to/project/gulpfile.js with encoding UTF-8 (atomic)\r\n```"},"comment":{"url":"https://api.github.com/repos/sindresorhus/editorconfig-sublime/issues/comments/99693926","html_url":"https://github.com/sindresorhus/editorconfig-sublime/issues/33#issuecomment-99693926","issue_url":"https://api.github.com/repos/sindresorhus/editorconfig-sublime/issues/33","id":99693926,"user":{"login":"sircharleswatson","id":2199663,"avatar_url":"https://avatars.githubusercontent.com/u/2199663?v=3","gravatar_id":"","url":"https://api.github.com/users/sircharleswatson","html_url":"https://github.com/sircharleswatson","followers_url":"https://api.github.com/users/sircharleswatson/followers","following_url":"https://api.github.com/users/sircharleswatson/following{/other_user}","gists_url":"https://api.github.com/users/sircharleswatson/gists{/gist_id}","starred_url":"https://api.github.com/users/sircharleswatson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sircharleswatson/subscriptions","organizations_url":"https://api.github.com/users/sircharleswatson/orgs","repos_url":"https://api.github.com/users/sircharleswatson/repos","events_url":"https://api.github.com/users/sircharleswatson/events{/privacy}","received_events_url":"https://api.github.com/users/sircharleswatson/received_events","type":"User","site_admin":false},"created_at":"2015-05-07T02:59:31Z","updated_at":"2015-05-07T02:59:31Z","body":"+1 on this\r\n\r\nalso, `trim_trailing_whitespace = true` doesnt seem to be working on ST3 either."}}