Recently, I've found that instead of formatting files, it has been replacing them with 0 byte files. Yuck! This seemed to be tied to one of the supporting modules getting updated, then it went away later (another module update?) and then came back last week.
I'd be happy to learn this is just a configuration issue somewhere. What thoughts do you have?
Sample of codepaint emptying a file
user@host [16:39:52]> ls -l node-beautify-tests.js
-rwxr-xr-x 1 user admin 754 Jun 3 16:39 node-beautify-tests.js
user@host [16:40:25]> codepaint xform -e node-beautify-tests.js
Editor Config (applied on a file-by-file basis):
+ editor_config = true
user@host [16:40:29]> ls -l node-beautify-tests.js
-rwxr-xr-x 1 user admin 0 Jun 3 16:40 node-beautify-tests.js
Sample code to format
/*global js_beautify: true */
/*jshint node:true */
var SanityTest = require('./sanitytest'),
Urlencoded = require('../lib/unpackers/urlencode_unpacker'),
js_beautify = require('../index').js_beautify,
css_beautify = require('../index').css_beautify,
html_beautify = require('../index').html_beautify,
run_beautifier_tests = require('./beautify-tests').run_beautifier_tests;
function node_beautifier_tests() {
var results = run_beautifier_tests(new SanityTest(), Urlencoded, js_beautify, html_beautify, css_beautify);
console.log(results.results_raw());
return results;
}
if (require.main === module) {
process.exit(node_beautifier_tests().get_exitcode());
}
exports.node_beautifier_tests = node_beautifier_tests;
My ~/.editorconfig
; .editorconfig
[**.js]
path = ~/.vim/bundle/vim-jsbeautify/plugin/beautify.js
bin = node
indent_size = 4
indent_style = space
max_line_length = 120
quote_type = double
space_after_anonymous_functions = false
space_after_control_statements = true
spaces_around_operators = true
spaces_in_brackets = true
[**.css]
indent_size = 4
indent_style = space
[**.html]
brace_style = expand
indent_size = 4
indent_style = space
max_char = 78
# EditorConfig is awesome: http://EditorConfig.org
# top-most EditorConfig file
root = true
# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
installed stuff
user@host [16:40:31]> npm ls -g
/usr/local/lib
├─┬ codepainter@0.4.4
│ ├── async@0.9.0
│ ├─┬ cli-color@0.3.3
│ │ ├── d@0.1.1
│ │ ├─┬ es5-ext@0.10.6
│ │ │ ├── es6-iterator@0.1.3
│ │ │ └── es6-symbol@2.0.1
│ │ ├─┬ memoizee@0.3.8
│ │ │ ├─┬ es6-weak-map@0.1.4
│ │ │ │ ├── es6-iterator@0.1.3
│ │ │ │ └── es6-symbol@2.0.1
│ │ │ ├── event-emitter@0.3.3
│ │ │ ├── lru-queue@0.1.0
│ │ │ └── next-tick@0.2.2
│ │ └─┬ timers-ext@0.1.0
│ │ └── next-tick@0.2.2
│ ├─┬ editorconfig@0.11.4
│ │ ├─┬ commander@1.1.1
│ │ │ └── keypress@0.1.0
│ │ ├── lru-cache@2.0.4
│ │ └── sigmund@1.0.0
│ ├── esprima@1.2.5
│ ├── gitlike-cli@0.1.0
│ ├─┬ glob@4.5.3
│ │ ├─┬ inflight@1.0.4
│ │ │ └── wrappy@1.0.1
│ │ ├── inherits@2.0.1
│ │ ├─┬ minimatch@2.0.4
│ │ │ └─┬ brace-expansion@1.1.0
│ │ │ ├── balanced-match@0.2.0
│ │ │ └── concat-map@0.0.1
│ │ └─┬ once@1.3.1
│ │ └── wrappy@1.0.1
│ ├── memorystream@0.2.0
│ ├─┬ mkdirp@0.5.0
│ │ └── minimist@0.0.8
│ └─┬ node.extend@1.1.3
│ └── is@2.1.0
├─┬ editorconfig@0.12.2
│ ├── bluebird@2.9.24
│ ├─┬ commander@1.1.1
│ │ └── keypress@0.1.0
│ ├── lru-cache@2.0.4
│ └── sigmund@1.0.0
├─┬ eslint@0.22.1
│ ├─┬ chalk@1.0.0
│ │ ├── ansi-styles@2.0.1
│ │ ├─┬ has-ansi@1.0.3
│ │ │ ├── ansi-regex@1.1.1
│ │ │ └── get-stdin@4.0.1
│ │ ├─┬ strip-ansi@2.0.1
│ │ │ └── ansi-regex@1.1.1
│ │ └── supports-color@1.3.1
│ ├─┬ concat-stream@1.4.8
│ │ ├── inherits@2.0.1
│ │ ├─┬ readable-stream@1.1.13
│ │ │ ├── core-util-is@1.0.1
│ │ │ ├── isarray@0.0.1
│ │ │ └── string_decoder@0.10.31
│ │ └── typedarray@0.0.6
│ ├─┬ debug@2.2.0
│ │ └── ms@0.7.1
│ ├─┬ doctrine@0.6.4
│ │ ├── esutils@1.1.6
│ │ └── isarray@0.0.1
│ ├── escape-string-regexp@1.0.3
│ ├─┬ escope@3.1.0
│ │ ├─┬ es6-map@0.1.1
│ │ │ ├── d@0.1.1
│ │ │ ├─┬ es5-ext@0.10.7
│ │ │ │ └── es6-symbol@2.0.1
│ │ │ ├─┬ es6-iterator@0.1.3
│ │ │ │ └── es6-symbol@2.0.1
│ │ │ ├── es6-set@0.1.1
│ │ │ ├── es6-symbol@0.1.1
│ │ │ └── event-emitter@0.3.3
│ │ ├─┬ es6-weak-map@0.1.4
│ │ │ ├── d@0.1.1
│ │ │ ├── es5-ext@0.10.7
│ │ │ ├── es6-iterator@0.1.3
│ │ │ └── es6-symbol@2.0.1
│ │ ├── esrecurse@3.1.1
│ │ └── estraverse@3.1.0
│ ├── espree@2.0.2
│ ├── estraverse@2.0.0
│ ├── estraverse-fb@1.3.1
│ ├── globals@6.4.1
│ ├─┬ inquirer@0.8.5
│ │ ├── ansi-regex@1.1.1
│ │ ├── cli-width@1.0.1
│ │ ├── figures@1.3.5
│ │ ├── lodash@3.9.3
│ │ ├─┬ readline2@0.1.1
│ │ │ ├── mute-stream@0.0.4
│ │ │ └── strip-ansi@2.0.1
│ │ ├── rx@2.5.2
│ │ └── through@2.3.7
│ ├─┬ is-my-json-valid@2.12.0
│ │ ├── generate-function@2.0.0
│ │ ├─┬ generate-object-property@1.2.0
│ │ │ └── is-property@1.0.2
│ │ ├── jsonpointer@1.1.0
│ │ └── xtend@4.0.0
│ ├─┬ js-yaml@3.3.1
│ │ ├─┬ argparse@1.0.2
│ │ │ ├── lodash@3.9.3
│ │ │ └── sprintf-js@1.0.2
│ │ └── esprima@2.2.0
│ ├─┬ minimatch@2.0.8
│ │ └─┬ brace-expansion@1.1.0
│ │ ├── balanced-match@0.2.0
│ │ └── concat-map@0.0.1
│ ├─┬ mkdirp@0.5.1
│ │ └── minimist@0.0.8
│ ├── object-assign@2.0.0
│ ├─┬ optionator@0.5.0
│ │ ├── deep-is@0.1.3
│ │ ├── fast-levenshtein@1.0.6
│ │ ├── levn@0.2.5
│ │ ├── prelude-ls@1.1.2
│ │ ├── type-check@0.3.1
│ │ └── wordwrap@0.0.3
│ ├── path-is-absolute@1.0.0
│ ├── strip-json-comments@1.0.2
│ ├── text-table@0.2.0
│ ├── user-home@1.1.1
│ └── xml-escape@1.0.0
├─┬ fixmyjs@1.0.3
│ ├─┬ commander@2.7.1
│ │ └── graceful-readlink@1.0.1
│ ├── diff@1.3.2
│ ├─┬ escodegen@1.6.1
│ │ ├── estraverse@1.9.3
│ │ ├── esutils@1.1.6
│ │ ├─┬ optionator@0.5.0
│ │ │ ├── deep-is@0.1.3
│ │ │ ├── fast-levenshtein@1.0.6
│ │ │ ├── levn@0.2.5
│ │ │ ├── prelude-ls@1.1.1
│ │ │ ├── type-check@0.3.1
│ │ │ └── wordwrap@0.0.2
│ │ └─┬ source-map@0.1.43
│ │ └── amdefine@0.1.0
│ ├── esprima@1.2.5
│ ├── fu@0.1.0
│ └─┬ minimatch@1.0.0
│ ├── lru-cache@2.5.2
│ └── sigmund@1.0.0
├─┬ jscs@1.13.1
│ ├─┬ chalk@1.0.0
│ │ ├── ansi-styles@2.0.1
│ │ ├── escape-string-regexp@1.0.3
│ │ ├─┬ has-ansi@1.0.3
│ │ │ ├── ansi-regex@1.1.1
│ │ │ └── get-stdin@4.0.1
│ │ ├─┬ strip-ansi@2.0.1
│ │ │ └── ansi-regex@1.1.1
│ │ └── supports-color@1.3.1
│ ├─┬ cli-table@0.3.1
│ │ └── colors@1.0.3
│ ├── commander@2.6.0
│ ├── esprima@1.2.5
│ ├── esprima-harmony-jscs@1.1.0-bin
│ ├── estraverse@1.9.3
│ ├── exit@0.1.2
│ ├─┬ glob@5.0.5
│ │ ├─┬ inflight@1.0.4
│ │ │ └── wrappy@1.0.1
│ │ ├── inherits@2.0.1
│ │ ├─┬ once@1.3.1
│ │ │ └── wrappy@1.0.1
│ │ └── path-is-absolute@1.0.0
│ ├─┬ lodash.assign@3.0.0
│ │ ├─┬ lodash._baseassign@3.1.0
│ │ │ ├── lodash._basecopy@3.0.1
│ │ │ ├── lodash.isnative@3.0.2
│ │ │ └─┬ lodash.keys@3.0.6
│ │ │ ├── lodash.isarguments@3.0.1
│ │ │ └── lodash.isarray@3.0.2
│ │ └─┬ lodash._createassigner@3.1.0
│ │ ├── lodash._bindcallback@3.0.1
│ │ ├── lodash._isiterateecall@3.0.6
│ │ └── lodash.restparam@3.6.1
│ ├─┬ minimatch@2.0.7
│ │ └─┬ brace-expansion@1.1.0
│ │ ├── balanced-match@0.2.0
│ │ └── concat-map@0.0.1
│ ├── pathval@0.1.1
│ ├─┬ prompt@0.2.14
│ │ ├── pkginfo@0.3.0
│ │ ├─┬ read@1.0.5
│ │ │ └── mute-stream@0.0.4
│ │ ├── revalidator@0.1.8
│ │ ├─┬ utile@0.2.1
│ │ │ ├── async@0.2.10
│ │ │ ├── deep-equal@1.0.0
│ │ │ ├── i@0.3.3
│ │ │ ├─┬ mkdirp@0.5.0
│ │ │ │ └── minimist@0.0.8
│ │ │ ├── ncp@0.4.2
│ │ │ └─┬ rimraf@2.3.3
│ │ │ └─┬ glob@4.5.3
│ │ │ ├─┬ inflight@1.0.4
│ │ │ │ └── wrappy@1.0.1
│ │ │ ├── inherits@2.0.1
│ │ │ └─┬ once@1.3.1
│ │ │ └── wrappy@1.0.1
│ │ └─┬ winston@0.8.3
│ │ ├── async@0.2.10
│ │ ├── colors@0.6.2
│ │ ├── cycle@1.0.3
│ │ ├── eyes@0.1.8
│ │ ├── isstream@0.1.2
│ │ └── stack-trace@0.0.9
│ ├── strip-json-comments@1.0.2
│ ├── vow@0.4.9
│ ├─┬ vow-fs@0.3.4
│ │ ├─┬ glob@4.5.3
│ │ │ ├─┬ inflight@1.0.4
│ │ │ │ └── wrappy@1.0.1
│ │ │ ├── inherits@2.0.1
│ │ │ └─┬ once@1.3.1
│ │ │ └── wrappy@1.0.1
│ │ ├── node-uuid@1.4.3
│ │ └── vow-queue@0.4.1
│ └─┬ xmlbuilder@2.6.2
│ └── lodash@3.5.0
├─┬ jsdoc@3.3.0-beta3
│ ├── async@0.9.0
│ ├─┬ catharsis@0.8.6
│ │ └─┬ underscore-contrib@0.3.0
│ │ └── underscore@1.6.0
│ ├── escape-string-regexp@1.0.3
│ ├── esprima@1.1.0-dev-harmony
│ ├── js2xmlparser@0.1.9
│ ├── marked@0.3.3
│ ├─┬ requizzle@0.2.1
│ │ └── underscore@1.6.0
│ ├── strip-json-comments@1.0.2
│ ├── taffydb@2.6.2
│ ├── underscore@1.7.0
│ └── wrench@1.5.8
├─┬ jshint@2.8.0
│ ├─┬ cli@0.6.6
│ │ └─┬ glob@3.2.11
│ │ ├── inherits@2.0.1
│ │ └─┬ minimatch@0.3.0
│ │ ├── lru-cache@2.6.4
│ │ └── sigmund@1.0.1
│ ├─┬ console-browserify@1.1.0
│ │ └── date-now@0.1.4
│ ├── exit@0.1.2
│ ├─┬ htmlparser2@3.8.2
│ │ ├── domelementtype@1.3.0
│ │ ├── domhandler@2.3.0
│ │ ├─┬ domutils@1.5.1
│ │ │ └─┬ dom-serializer@0.1.0
│ │ │ ├── domelementtype@1.1.3
│ │ │ └── entities@1.1.1
│ │ ├── entities@1.0.0
│ │ └─┬ readable-stream@1.1.13
│ │ ├── core-util-is@1.0.1
│ │ ├── inherits@2.0.1
│ │ ├── isarray@0.0.1
│ │ └── string_decoder@0.10.31
│ ├── lodash@3.7.0
│ ├─┬ minimatch@2.0.8
│ │ └─┬ brace-expansion@1.1.0
│ │ ├── balanced-match@0.2.0
│ │ └── concat-map@0.0.1
│ ├── shelljs@0.3.0
│ └── strip-json-comments@1.0.2
├─┬ jsinspect@0.5.0
│ ├── acorn@0.10.0
│ ├─┬ chalk@1.0.0
│ │ ├── ansi-styles@2.0.1
│ │ ├── escape-string-regexp@1.0.3
│ │ ├─┬ has-ansi@1.0.3
│ │ │ ├── ansi-regex@1.1.1
│ │ │ └── get-stdin@4.0.1
│ │ ├─┬ strip-ansi@2.0.1
│ │ │ └── ansi-regex@1.1.1
│ │ └── supports-color@1.3.1
│ ├─┬ commander@2.7.1
│ │ └── graceful-readlink@1.0.1
│ ├── diff@1.0.8
│ ├─┬ node-filepaths@0.0.3
│ │ └── file@0.2.2
│ ├─┬ strip-indent@1.0.1
│ │ └── get-stdin@4.0.1
│ └── strip-json-comments@1.0.2
├─┬ npm@2.11.0
│ ├── abbrev@1.0.6
│ ├── ansi@0.3.0
│ ├── ansi-regex@1.1.1
│ ├── ansicolors@0.3.2
│ ├── ansistyles@0.1.3
│ ├── archy@1.0.0
│ ├── async-some@1.0.2
│ ├── block-stream@0.0.8
│ ├── char-spinner@1.0.1
│ ├── chmodr@0.1.1
│ ├── chownr@0.0.2
│ ├── cmd-shim@2.0.1
│ ├─┬ columnify@1.5.1
│ │ └─┬ wcwidth@1.0.0
│ │ └─┬ defaults@1.0.2
│ │ └── clone@0.1.19
│ ├─┬ config-chain@1.1.8
│ │ └── proto-list@1.2.3
│ ├─┬ dezalgo@1.0.2
│ │ └── asap@1.0.0
│ ├── editor@1.0.0
│ ├── fs-vacuum@1.2.6
│ ├── fs-write-stream-atomic@1.0.3
│ ├── fstream@1.0.6
│ ├─┬ fstream-npm@1.0.2
│ │ └── fstream-ignore@1.0.2
│ ├── github-url-from-git@1.4.0
│ ├── github-url-from-username-repo@1.0.2
│ ├─┬ glob@5.0.7
│ │ └── path-is-absolute@1.0.0
│ ├── graceful-fs@3.0.7
│ ├── hosted-git-info@2.1.4
│ ├── inflight@1.0.4
│ ├── inherits@2.0.1
│ ├── ini@1.3.3
│ ├─┬ init-package-json@1.6.0
│ │ ├── promzard@0.3.0
│ │ └─┬ validate-npm-package-license@1.0.0-prerelease-2
│ │ └── spdx-correct@1.0.0-prerelease-3
│ ├── lockfile@1.0.1
│ ├── lru-cache@2.6.4
│ ├─┬ minimatch@2.0.8
│ │ └─┬ brace-expansion@1.1.0
│ │ ├── balanced-match@0.2.0
│ │ └── concat-map@0.0.1
│ ├─┬ mkdirp@0.5.1
│ │ └── minimist@0.0.8
│ ├─┬ node-gyp@1.0.3
│ │ ├─┬ glob@4.5.3
│ │ │ └─┬ minimatch@2.0.4
│ │ │ └─┬ brace-expansion@1.1.0
│ │ │ ├── balanced-match@0.2.0
│ │ │ └── concat-map@0.0.1
│ │ ├─┬ minimatch@1.0.0
│ │ │ └── sigmund@1.0.0
│ │ └── tar@1.0.3
│ ├── nopt@3.0.2
│ ├── normalize-git-url@1.0.1
│ ├── normalize-package-data@2.2.0
│ ├── npm-cache-filename@1.0.1
│ ├── npm-install-checks@1.0.5
│ ├── npm-package-arg@4.0.1
│ ├─┬ npm-registry-client@6.4.0
│ │ └─┬ concat-stream@1.4.8
│ │ ├─┬ readable-stream@1.1.13
│ │ │ ├── core-util-is@1.0.1
│ │ │ ├── isarray@0.0.1
│ │ │ └── string_decoder@0.10.31
│ │ └── typedarray@0.0.6
│ ├── npm-user-validate@0.1.2
│ ├─┬ npmlog@1.2.1
│ │ ├─┬ are-we-there-yet@1.0.4
│ │ │ ├── delegates@0.1.0
│ │ │ └─┬ readable-stream@1.1.13
│ │ │ ├── core-util-is@1.0.1
│ │ │ ├── isarray@0.0.1
│ │ │ └── string_decoder@0.10.31
│ │ └─┬ gauge@1.2.0
│ │ ├── has-unicode@1.0.0
│ │ ├── lodash._basetostring@3.0.0
│ │ ├─┬ lodash._createpadding@3.6.0
│ │ │ └── lodash.repeat@3.0.0
│ │ ├── lodash.pad@3.1.0
│ │ ├── lodash.padleft@3.1.1
│ │ └── lodash.padright@3.1.1
│ ├── once@1.3.2
│ ├── opener@1.4.1
│ ├── osenv@0.1.1
│ ├── path-is-inside@1.0.1
│ ├─┬ read@1.0.6
│ │ └── mute-stream@0.0.5
│ ├─┬ read-installed@4.0.0
│ │ ├── debuglog@1.0.1
│ │ ├── readdir-scoped-modules@1.0.1
│ │ └── util-extend@1.0.1
│ ├─┬ read-package-json@2.0.0
│ │ └─┬ json-parse-helpfulerror@1.0.3
│ │ └── jju@1.2.0
│ ├─┬ readable-stream@1.0.33
│ │ ├── core-util-is@1.0.1
│ │ ├── isarray@0.0.1
│ │ └── string_decoder@0.10.31
│ ├── realize-package-specifier@3.0.1
│ ├─┬ request@2.55.0
│ │ ├── aws-sign2@0.5.0
│ │ ├── bl@0.9.4
│ │ ├── caseless@0.9.0
│ │ ├─┬ combined-stream@0.0.7
│ │ │ └── delayed-stream@0.0.5
│ │ ├── forever-agent@0.6.1
│ │ ├─┬ form-data@0.2.0
│ │ │ └── async@0.9.0
│ │ ├─┬ har-validator@1.6.1
│ │ │ ├── bluebird@2.9.24
│ │ │ ├─┬ chalk@1.0.0
│ │ │ │ ├── ansi-styles@2.0.1
│ │ │ │ ├── escape-string-regexp@1.0.3
│ │ │ │ ├─┬ has-ansi@1.0.3
│ │ │ │ │ └── get-stdin@4.0.1
│ │ │ │ └── supports-color@1.3.1
│ │ │ ├─┬ commander@2.7.1
│ │ │ │ └── graceful-readlink@1.0.1
│ │ │ └─┬ is-my-json-valid@2.10.1
│ │ │ ├── generate-function@2.0.0
│ │ │ ├─┬ generate-object-property@1.1.1
│ │ │ │ └── is-property@1.0.2
│ │ │ ├── jsonpointer@1.1.0
│ │ │ └── xtend@4.0.0
│ │ ├─┬ hawk@2.3.1
│ │ │ ├── boom@2.7.0
│ │ │ ├── cryptiles@2.0.4
│ │ │ ├── hoek@2.12.0
│ │ │ └── sntp@1.0.9
│ │ ├─┬ http-signature@0.10.1
│ │ │ ├── asn1@0.1.11
│ │ │ ├── assert-plus@0.1.5
│ │ │ └── ctype@0.5.3
│ │ ├── isstream@0.1.2
│ │ ├── json-stringify-safe@5.0.0
│ │ ├─┬ mime-types@2.0.10
│ │ │ └── mime-db@1.8.0
│ │ ├── node-uuid@1.4.3
│ │ ├── oauth-sign@0.6.0
│ │ ├── qs@2.4.1
│ │ ├── stringstream@0.0.4
│ │ ├─┬ tough-cookie@0.12.1
│ │ │ └── punycode@1.3.2
│ │ └── tunnel-agent@0.4.0
│ ├── retry@0.6.1
│ ├─┬ rimraf@2.3.4
│ │ └── glob@4.5.3
│ ├── semver@4.3.4
│ ├─┬ sha@1.3.0
│ │ └─┬ readable-stream@1.1.13
│ │ ├── core-util-is@1.0.1
│ │ ├── isarray@0.0.1
│ │ └── string_decoder@0.10.31
│ ├── slide@1.1.6
│ ├── sorted-object@1.0.0
│ ├─┬ spdx@0.4.0
│ │ └── spdx-license-ids@1.0.0
│ ├── strip-ansi@2.0.1
│ ├── tar@2.1.1
│ ├── text-table@0.2.0
│ ├── uid-number@0.0.6
│ ├── umask@1.1.0
│ ├─┬ validate-npm-package-name@2.2.0
│ │ └── builtins@0.0.7
│ ├─┬ which@1.1.1
│ │ └─┬ is-absolute@0.1.7
│ │ └── is-relative@0.1.3
│ ├── wrappy@1.0.1
│ └── write-file-atomic@1.1.2
├─┬ npm-check@3.2.10
│ ├─┬ buffered-spawn@1.1.0
│ │ ├─┬ cross-spawn@0.2.9
│ │ │ └── lru-cache@2.5.2
│ │ └── err-code@0.1.2
│ ├─┬ chalk@1.0.0
│ │ ├── ansi-styles@2.0.1
│ │ ├── escape-string-regexp@1.0.3
│ │ ├─┬ has-ansi@1.0.3
│ │ │ ├── ansi-regex@1.1.1
│ │ │ └── get-stdin@4.0.1
│ │ ├─┬ strip-ansi@2.0.1
│ │ │ └── ansi-regex@1.1.1
│ │ └── supports-color@1.3.1
│ ├─┬ commander@2.7.1
│ │ └── graceful-readlink@1.0.1
│ ├─┬ depcheck@0.4.5
│ │ ├─┬ detective@4.0.0
│ │ │ ├── acorn@0.9.0
│ │ │ ├── defined@0.0.0
│ │ │ └─┬ escodegen@1.6.1
│ │ │ ├── esprima@1.2.5
│ │ │ ├── estraverse@1.9.3
│ │ │ ├── esutils@1.1.6
│ │ │ ├─┬ optionator@0.5.0
│ │ │ │ ├── deep-is@0.1.3
│ │ │ │ ├── fast-levenshtein@1.0.6
│ │ │ │ ├── levn@0.2.5
│ │ │ │ ├── prelude-ls@1.1.1
│ │ │ │ ├── type-check@0.3.1
│ │ │ │ └── wordwrap@0.0.2
│ │ │ └─┬ source-map@0.1.43
│ │ │ └── amdefine@0.1.0
│ │ ├─┬ minimatch@2.0.4
│ │ │ └─┬ brace-expansion@1.1.0
│ │ │ ├── balanced-match@0.2.0
│ │ │ └── concat-map@0.0.1
│ │ ├─┬ optimist@0.6.1
│ │ │ ├── minimist@0.0.10
│ │ │ └── wordwrap@0.0.2
│ │ └── walkdir@0.0.7
│ ├── giturl@0.0.3
│ ├─┬ globby@1.2.0
│ │ ├─┬ array-union@1.0.1
│ │ │ └── array-uniq@1.0.2
│ │ ├── async@0.9.0
│ │ ├─┬ glob@4.5.3
│ │ │ ├─┬ inflight@1.0.4
│ │ │ │ └── wrappy@1.0.1
│ │ │ ├── inherits@2.0.1
│ │ │ ├─┬ minimatch@2.0.4
│ │ │ │ └─┬ brace-expansion@1.1.0
│ │ │ │ ├── balanced-match@0.2.0
│ │ │ │ └── concat-map@0.0.1
│ │ │ └─┬ once@1.3.1
│ │ │ └── wrappy@1.0.1
│ │ └── object-assign@2.0.0
│ ├─┬ inquirer@0.8.2
│ │ ├── ansi-regex@1.1.1
│ │ ├── cli-width@1.0.1
│ │ ├── figures@1.3.5
│ │ ├─┬ readline2@0.1.1
│ │ │ ├── mute-stream@0.0.4
│ │ │ └── strip-ansi@2.0.1
│ │ ├── rx@2.5.2
│ │ └── through@2.3.7
│ ├── lodash@3.6.0
│ ├─┬ npm-registry-client@6.3.0
│ │ ├── chownr@0.0.1
│ │ ├─┬ concat-stream@1.4.8
│ │ │ ├── inherits@2.0.1
│ │ │ ├─┬ readable-stream@1.1.13
│ │ │ │ ├── core-util-is@1.0.1
│ │ │ │ ├── isarray@0.0.1
│ │ │ │ └── string_decoder@0.10.31
│ │ │ └── typedarray@0.0.6
│ │ ├── graceful-fs@3.0.6
│ │ ├─┬ mkdirp@0.5.0
│ │ │ └── minimist@0.0.8
│ │ ├─┬ normalize-package-data@2.0.0
│ │ │ └── hosted-git-info@2.1.2
│ │ ├─┬ npm-package-arg@4.0.0
│ │ │ └── hosted-git-info@2.1.2
│ │ ├─┬ npmlog@1.2.0
│ │ │ ├── ansi@0.3.0
│ │ │ ├─┬ are-we-there-yet@1.0.4
│ │ │ │ ├── delegates@0.1.0
│ │ │ │ └─┬ readable-stream@1.1.13
│ │ │ │ ├── core-util-is@1.0.1
│ │ │ │ ├── inherits@2.0.1
│ │ │ │ ├── isarray@0.0.1
│ │ │ │ └── string_decoder@0.10.31
│ │ │ └─┬ gauge@1.2.0
│ │ │ ├── has-unicode@1.0.0
│ │ │ ├─┬ lodash.pad@3.1.0
│ │ │ │ ├── lodash._basetostring@3.0.0
│ │ │ │ └─┬ lodash._createpadding@3.6.0
│ │ │ │ └── lodash.repeat@3.0.0
│ │ │ ├─┬ lodash.padleft@3.1.0
│ │ │ │ ├── lodash._basetostring@3.0.0
│ │ │ │ └─┬ lodash._createpadding@3.6.0
│ │ │ │ └── lodash.repeat@3.0.0
│ │ │ └─┬ lodash.padright@3.1.0
│ │ │ ├── lodash._basetostring@3.0.0
│ │ │ └─┬ lodash._createpadding@3.6.0
│ │ │ └── lodash.repeat@3.0.0
│ │ ├─┬ once@1.3.1
│ │ │ └── wrappy@1.0.1
│ │ ├─┬ request@2.55.0
│ │ │ ├── aws-sign2@0.5.0
│ │ │ ├─┬ bl@0.9.4
│ │ │ │ └─┬ readable-stream@1.0.33
│ │ │ │ ├── core-util-is@1.0.1
│ │ │ │ ├── inherits@2.0.1
│ │ │ │ ├── isarray@0.0.1
│ │ │ │ └── string_decoder@0.10.31
│ │ │ ├── caseless@0.9.0
│ │ │ ├─┬ combined-stream@0.0.7
│ │ │ │ └── delayed-stream@0.0.5
│ │ │ ├── forever-agent@0.6.1
│ │ │ ├─┬ form-data@0.2.0
│ │ │ │ └── async@0.9.0
│ │ │ ├─┬ har-validator@1.6.1
│ │ │ │ ├── bluebird@2.9.24
│ │ │ │ └─┬ is-my-json-valid@2.10.1
│ │ │ │ ├── generate-function@2.0.0
│ │ │ │ ├─┬ generate-object-property@1.1.1
│ │ │ │ │ └── is-property@1.0.2
│ │ │ │ ├── jsonpointer@1.1.0
│ │ │ │ └── xtend@4.0.0
│ │ │ ├─┬ hawk@2.3.1
│ │ │ │ ├── boom@2.7.0
│ │ │ │ ├── cryptiles@2.0.4
│ │ │ │ ├── hoek@2.12.0
│ │ │ │ └── sntp@1.0.9
│ │ │ ├─┬ http-signature@0.10.1
│ │ │ │ ├── asn1@0.1.11
│ │ │ │ ├── assert-plus@0.1.5
│ │ │ │ └── ctype@0.5.3
│ │ │ ├── isstream@0.1.2
│ │ │ ├── json-stringify-safe@5.0.0
│ │ │ ├─┬ mime-types@2.0.10
│ │ │ │ └── mime-db@1.8.0
│ │ │ ├── node-uuid@1.4.3
│ │ │ ├── oauth-sign@0.6.0
│ │ │ ├── qs@2.4.1
│ │ │ ├── stringstream@0.0.4
│ │ │ ├─┬ tough-cookie@0.12.1
│ │ │ │ └── punycode@1.3.2
│ │ │ └── tunnel-agent@0.4.0
│ │ ├── retry@0.6.1
│ │ ├─┬ rimraf@2.3.2
│ │ │ └─┬ glob@4.5.3
│ │ │ ├─┬ inflight@1.0.4
│ │ │ │ └── wrappy@1.0.1
│ │ │ ├── inherits@2.0.1
│ │ │ └─┬ minimatch@2.0.4
│ │ │ └─┬ brace-expansion@1.1.0
│ │ │ ├── balanced-match@0.2.0
│ │ │ └── concat-map@0.0.1
│ │ └── slide@1.1.6
│ ├─┬ npmconf@2.1.1
│ │ ├─┬ config-chain@1.1.8
│ │ │ └── proto-list@1.2.3
│ │ ├── inherits@2.0.1
│ │ ├── ini@1.3.3
│ │ ├─┬ mkdirp@0.5.0
│ │ │ └── minimist@0.0.8
│ │ ├─┬ nopt@3.0.1
│ │ │ └── abbrev@1.0.5
│ │ ├─┬ once@1.3.1
│ │ │ └── wrappy@1.0.1
│ │ ├── osenv@0.1.0
│ │ └── uid-number@0.0.5
│ ├── q@1.2.0
│ ├─┬ registry-url@3.0.3
│ │ └─┬ rc@1.0.1
│ │ ├── deep-extend@0.2.11
│ │ ├── ini@1.3.3
│ │ ├── minimist@0.0.10
│ │ └── strip-json-comments@0.1.3
│ ├── semver@4.3.3
│ ├── semver-diff@2.0.0
│ ├── text-table@0.2.0
│ └─┬ update-notifier@0.3.2
│ ├─┬ configstore@0.3.2
│ │ ├── graceful-fs@3.0.6
│ │ ├─┬ js-yaml@3.2.7
│ │ │ ├─┬ argparse@1.0.2
│ │ │ │ └── sprintf-js@1.0.2
│ │ │ └── esprima@2.0.0
│ │ ├─┬ mkdirp@0.5.0
│ │ │ └── minimist@0.0.8
│ │ ├── object-assign@2.0.0
│ │ ├── osenv@0.1.0
│ │ ├── user-home@1.1.1
│ │ ├── uuid@2.0.1
│ │ └── xdg-basedir@1.0.1
│ ├── is-npm@1.0.0
│ ├─┬ latest-version@1.0.0
│ │ └─┬ package-json@1.1.0
│ │ └─┬ got@2.7.2
│ │ ├─┬ duplexify@3.2.0
│ │ │ ├─┬ end-of-stream@1.0.0
│ │ │ │ └─┬ once@1.3.1
│ │ │ │ └── wrappy@1.0.1
│ │ │ └─┬ readable-stream@1.0.33
│ │ │ ├── core-util-is@1.0.1
│ │ │ ├── inherits@2.0.1
│ │ │ ├── isarray@0.0.1
│ │ │ └── string_decoder@0.10.31
│ │ ├── infinity-agent@1.0.2
│ │ ├── is-stream@1.0.1
│ │ ├── lowercase-keys@1.0.0
│ │ ├── nested-error-stacks@1.0.0
│ │ ├── object-assign@2.0.0
│ │ ├── prepend-http@1.0.1
│ │ ├─┬ read-all-stream@2.1.2
│ │ │ └─┬ readable-stream@1.1.13
│ │ │ ├── core-util-is@1.0.1
│ │ │ ├── inherits@2.0.1
│ │ │ ├── isarray@0.0.1
│ │ │ └── string_decoder@0.10.31
│ │ ├── statuses@1.2.1
│ │ └── timed-out@2.0.0
│ └─┬ string-length@1.0.0
│ └─┬ strip-ansi@2.0.1
│ └── ansi-regex@1.1.1
└─┬ standard@4.0.1
├─┬ dezalgo@1.0.2
│ ├── asap@1.0.0
│ └── wrappy@1.0.1
├─┬ eslint@0.21.2
│ ├─┬ chalk@1.0.0
│ │ ├── ansi-styles@2.0.1
│ │ ├─┬ has-ansi@1.0.3
│ │ │ └── ansi-regex@1.1.1
│ │ ├─┬ strip-ansi@2.0.1
│ │ │ └── ansi-regex@1.1.1
│ │ └── supports-color@1.3.1
│ ├─┬ concat-stream@1.4.8
│ │ ├── inherits@2.0.1
│ │ ├─┬ readable-stream@1.1.13
│ │ │ ├── core-util-is@1.0.1
│ │ │ ├── isarray@0.0.1
│ │ │ └── string_decoder@0.10.31
│ │ └── typedarray@0.0.6
│ ├─┬ debug@2.2.0
│ │ └── ms@0.7.1
│ ├─┬ doctrine@0.6.4
│ │ ├── esutils@1.1.6
│ │ └── isarray@0.0.1
│ ├── escape-string-regexp@1.0.3
│ ├─┬ escope@3.1.0
│ │ ├─┬ es6-map@0.1.1
│ │ │ ├── d@0.1.1
│ │ │ ├─┬ es5-ext@0.10.7
│ │ │ │ └── es6-symbol@2.0.1
│ │ │ ├─┬ es6-iterator@0.1.3
│ │ │ │ └── es6-symbol@2.0.1
│ │ │ ├── es6-set@0.1.1
│ │ │ ├── es6-symbol@0.1.1
│ │ │ └── event-emitter@0.3.3
│ │ ├─┬ es6-weak-map@0.1.4
│ │ │ ├── d@0.1.1
│ │ │ ├── es5-ext@0.10.7
│ │ │ ├── es6-iterator@0.1.3
│ │ │ └── es6-symbol@2.0.1
│ │ ├── esrecurse@3.1.1
│ │ └── estraverse@3.1.0
│ ├── espree@2.0.2
│ ├── estraverse@2.0.0
│ ├── estraverse-fb@1.3.1
│ ├── globals@6.4.1
│ ├─┬ inquirer@0.8.5
│ │ ├── ansi-regex@1.1.1
│ │ ├── cli-width@1.0.1
│ │ ├── figures@1.3.5
│ │ ├── lodash@3.9.3
│ │ ├─┬ readline2@0.1.1
│ │ │ ├── mute-stream@0.0.4
│ │ │ └── strip-ansi@2.0.1
│ │ ├── rx@2.5.2
│ │ └── through@2.3.7
│ ├─┬ js-yaml@3.3.1
│ │ ├─┬ argparse@1.0.2
│ │ │ ├── lodash@3.9.3
│ │ │ └── sprintf-js@1.0.2
│ │ └── esprima@2.2.0
│ ├─┬ minimatch@2.0.8
│ │ └─┬ brace-expansion@1.1.0
│ │ ├── balanced-match@0.2.0
│ │ └── concat-map@0.0.1
│ ├─┬ mkdirp@0.5.1
│ │ └── minimist@0.0.8
│ ├── object-assign@2.0.0
│ ├─┬ optionator@0.5.0
│ │ ├── deep-is@0.1.3
│ │ ├── fast-levenshtein@1.0.6
│ │ ├── levn@0.2.5
│ │ ├── prelude-ls@1.1.2
│ │ ├── type-check@0.3.1
│ │ └── wordwrap@0.0.3
│ ├── path-is-absolute@1.0.0
│ ├── strip-json-comments@1.0.2
│ ├── text-table@0.2.0
│ ├── user-home@1.1.1
│ └── xml-escape@1.0.0
├── eslint-config-standard@2.0.0
├── eslint-plugin-react@2.4.0
├── find-root@0.1.1
├── get-stdin@4.0.1
├─┬ glob@5.0.10
│ ├─┬ inflight@1.0.4
│ │ └── wrappy@1.0.1
│ ├── inherits@2.0.1
│ ├─┬ minimatch@2.0.8
│ │ └─┬ brace-expansion@1.1.0
│ │ ├── balanced-match@0.2.0
│ │ └── concat-map@0.0.1
│ ├─┬ once@1.3.2
│ │ └── wrappy@1.0.1
│ └── path-is-absolute@1.0.0
├── ignore@2.2.15
├── minimist@1.1.1
├── run-parallel@1.1.1
├─┬ standard-format@1.3.6
│ ├─┬ esformatter@0.6.1
│ │ ├── debug@0.7.4
│ │ ├── mout@0.11.0
│ │ ├─┬ npm-run@1.1.1
│ │ │ ├─┬ npm-path@1.0.1
│ │ │ │ └─┬ which@1.1.1
│ │ │ │ └─┬ is-absolute@0.1.7
│ │ │ │ └── is-relative@0.1.3
│ │ │ ├─┬ serializerr@1.0.1
│ │ │ │ └── protochain@1.0.2
│ │ │ └── sync-exec@0.5.0
│ │ ├─┬ optimist@0.6.1
│ │ │ ├── minimist@0.0.10
│ │ │ └── wordwrap@0.0.3
│ │ ├── resolve@1.1.6
│ │ ├─┬ rocambole@0.6.0
│ │ │ └── esprima@2.2.0
│ │ ├─┬ rocambole-indent@2.0.4
│ │ │ └─┬ debug@2.2.0
│ │ │ └── ms@0.7.1
│ │ ├─┬ rocambole-linebreak@1.0.1
│ │ │ ├─┬ debug@2.2.0
│ │ │ │ └── ms@0.7.1
│ │ │ └── semver@4.3.6
│ │ ├── rocambole-node@1.0.0
│ │ ├── rocambole-token@1.2.1
│ │ ├─┬ rocambole-whitespace@1.0.0
│ │ │ ├─┬ debug@2.2.0
│ │ │ │ └── ms@0.7.1
│ │ │ └── repeat-string@1.5.2
│ │ ├── semver@2.2.1
│ │ └── strip-json-comments@0.1.3
│ ├─┬ esformatter-eol-last@1.0.0
│ │ └── string.prototype.endswith@0.2.0
│ ├─┬ esformatter-literal-notation@1.0.0
│ │ ├─┬ rocambole@0.3.6
│ │ │ └── esprima@1.0.4
│ │ └── rocambole-token@1.2.1
│ ├── esformatter-quotes@1.0.1
│ ├── esformatter-spaced-lined-comment@2.0.1
│ ├─┬ glob@4.5.3
│ │ ├─┬ inflight@1.0.4
│ │ │ └── wrappy@1.0.1
│ │ ├── inherits@2.0.1
│ │ └─┬ once@1.3.2
│ │ └── wrappy@1.0.1
│ ├─┬ minimatch@2.0.8
│ │ └─┬ brace-expansion@1.1.0
│ │ ├── balanced-match@0.2.0
│ │ └── concat-map@0.0.1
│ └── stdin@0.0.1
├── uniq@1.0.1
└── xtend@4.0.0
Recently, I've found that instead of formatting files, it has been replacing them with 0 byte files. Yuck! This seemed to be tied to one of the supporting modules getting updated, then it went away later (another module update?) and then came back last week.
I'd be happy to learn this is just a configuration issue somewhere. What thoughts do you have?
Sample of codepaint emptying a file
Sample code to format
My ~/.editorconfig
installed stuff