Skip to content

Commit

Permalink
Move to eslint (preset nodules)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey Rybakov committed Feb 16, 2017
1 parent d400c99 commit 1c034f7
Show file tree
Hide file tree
Showing 28 changed files with 280 additions and 542 deletions.
13 changes: 13 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"root": true,
"extends": "nodules",
"rules": {
"no-console": 0,
"no-mixed-requires": 0,
"global-require": 0
},
"env": {
"node": true,
"mocha": true
}
}
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
*.DS_Store
/.idea
/node_modules
/examples/*/tmp
.idea
node_modules
examples/*/tmp
coverage
*.log
71 changes: 0 additions & 71 deletions .jscs.json

This file was deleted.

1 change: 0 additions & 1 deletion .jshintignore

This file was deleted.

194 changes: 0 additions & 194 deletions .jshintrc

This file was deleted.

3 changes: 1 addition & 2 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.git*
npm-debug.log
.*
examples
test
8 changes: 4 additions & 4 deletions examples/custom_master_and_ipc/master.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ if (proc.isMaster) {

proc
.configure({
app : 'worker.js',
workers : 2,
server : {
port : 10080
app: 'worker.js',
workers: 2,
server: {
port: 10080
}
}, true, __dirname)
.run();
10 changes: 5 additions & 5 deletions examples/master_to_workers_event/master.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ var http = require('http'),

proc
.configure({
app : 'worker.js',
workers : 4,
server : {
port : MASTER_PORT + 1,
groups : 4
app: 'worker.js',
workers: 4,
server: {
port: MASTER_PORT + 1,
groups: 4
}
}, true, __dirname)
.run();
Expand Down
8 changes: 4 additions & 4 deletions examples/master_to_workers_event/worker.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
var http = require('http'),
worker = require('luster'),
my_worker_data = 'No data for now :( Please visit my master.';
myWorkerData = 'No data for now :( Please visit my master.';

worker.on('master update-data', function(received_data) {
my_worker_data = received_data;
worker.on('master update-data', function(receivedData) {
myWorkerData = receivedData;
});

http
Expand All @@ -12,7 +12,7 @@ http
res.statusCode = 404;
return res.end();
}
res.end('my_worker_data: ' + my_worker_data);
res.end('myWorkerData: ' + myWorkerData);
})
.listen(process.env.port, function() {
console.log('Worker #%s ready on http://localhost:%s', worker.id, process.env.port);
Expand Down
Loading

0 comments on commit 1c034f7

Please sign in to comment.