Skip to content

Commit

Permalink
add an editorconfig & format to conform
Browse files Browse the repository at this point in the history
  • Loading branch information
notslang authored and rvagg committed Mar 9, 2018
1 parent 127e1c7 commit 3b473d5
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 4 deletions.
16 changes: 16 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion examples/basic/child.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

module.exports = function (inp, callback) {
callback(null, inp + ' BAR (' + process.pid + ')')
}
}
2 changes: 1 addition & 1 deletion examples/basic/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ for (let i = 0; i < 10; i++) {
if (++ret == 10)
workerFarm.end(workers)
})
}
}
2 changes: 1 addition & 1 deletion examples/pi/calc.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ module.exports = function (points, callback) {
inside++

callback(null, (inside / points) * 4)
}
}
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ function end (api, callback) {


module.exports = farm
module.exports.end = end
module.exports.end = end

0 comments on commit 3b473d5

Please sign in to comment.