From 3b473d5ec4abfa040fd0e66c2dc6ecb70d98d655 Mon Sep 17 00:00:00 2001 From: Sean Lang Date: Tue, 11 Nov 2014 12:25:50 -0500 Subject: [PATCH] add an editorconfig & format to conform --- .editorconfig | 16 ++++++++++++++++ examples/basic/child.js | 2 +- examples/basic/index.js | 2 +- examples/pi/calc.js | 2 +- lib/index.js | 2 +- 5 files changed, 20 insertions(+), 4 deletions(-) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..feaebc2 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,16 @@ +# This file is for unifying the coding style for different editors and IDEs +# editorconfig.org + +root = true + +[*] +end_of_line = lf +charset = utf-8 +insert_final_newline = true +trim_trailing_whitespace = true +indent_style = space +indent_size = 2 + +[*.js] +max_line_length = 80 +View diff --git a/examples/basic/child.js b/examples/basic/child.js index 41e124b..0f0900b 100644 --- a/examples/basic/child.js +++ b/examples/basic/child.js @@ -2,4 +2,4 @@ module.exports = function (inp, callback) { callback(null, inp + ' BAR (' + process.pid + ')') -} \ No newline at end of file +} diff --git a/examples/basic/index.js b/examples/basic/index.js index 3c9a108..452e7b1 100644 --- a/examples/basic/index.js +++ b/examples/basic/index.js @@ -10,4 +10,4 @@ for (let i = 0; i < 10; i++) { if (++ret == 10) workerFarm.end(workers) }) -} \ No newline at end of file +} diff --git a/examples/pi/calc.js b/examples/pi/calc.js index 42c77c2..df9e5ba 100644 --- a/examples/pi/calc.js +++ b/examples/pi/calc.js @@ -19,4 +19,4 @@ module.exports = function (points, callback) { inside++ callback(null, (inside / points) * 4) -} \ No newline at end of file +} diff --git a/lib/index.js b/lib/index.js index 4df0902..fe574e5 100644 --- a/lib/index.js +++ b/lib/index.js @@ -31,4 +31,4 @@ function end (api, callback) { module.exports = farm -module.exports.end = end \ No newline at end of file +module.exports.end = end