Skip to content

Commit

Permalink
Release 1.0.8 (#11)
Browse files Browse the repository at this point in the history
* version bump, lint updates & sync

* lint fixes
  • Loading branch information
msimerson committed Jan 2, 2017
1 parent 63581c8 commit c8d2bb3
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 57 deletions.
13 changes: 0 additions & 13 deletions .eslintrc

This file was deleted.

26 changes: 26 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"env": {
"node": true,
"mocha": true
},
"extends": "eslint:recommended",
"installedESLint": true,
"root": true,
"rules": {
"comma-dangle": [2, "only-multiline"],
"dot-notation": 2,
"indent": [2, 4, {"SwitchCase": 1}],
"one-var": [2, "never"],
"no-trailing-spaces": [2, { "skipBlankLines": false }],
"keyword-spacing": [2, {
"before": true,
"after": true
}],
"no-delete-var": 2,
"no-empty": ["error", { "allowEmptyCatch": true }],
"no-label-var": 2,
"no-shadow": 2,
"no-unused-vars": [ 1, { "args": "none" }],
"no-console": 0
}
}
1 change: 0 additions & 1 deletion config.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ Config.prototype.arrange_args = function (args) {

for (var i=0; i < args.length; i++) {
if (args[i] === undefined) continue;
var what_is_it = args[i];
switch (typeof args[i]) { // what is it?
case 'function':
cb = args[i];
Expand Down
4 changes: 2 additions & 2 deletions configfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ cfreader.ensure_enoent_timer = function () {
cfreader._enoent_timer = setInterval(function () {
var files = Object.keys(cfreader._enoent_files);
for (var i=0; i<files.length; i++) {
var file = files[i];
var fileOuter = files[i];
/* BLOCK SCOPE */
(function (file) {
fs.stat(file, function (err) {
Expand All @@ -239,7 +239,7 @@ cfreader.ensure_enoent_timer = function () {
cfreader.on_watch_event(
file, args.type, args.options, args.cb));
});
})(file); // END BLOCK SCOPE
})(fileOuter); // END BLOCK SCOPE
}
}, 60 * 1000);
};
Expand Down
43 changes: 3 additions & 40 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "haraka-config",
"license": "MIT",
"description": "Haraka's config file loader",
"version": "1.0.7",
"version": "1.0.8",
"homepage": "http://haraka.github.io",
"repository": {
"type": "git",
Expand All @@ -16,49 +16,12 @@
"dependencies": {
"js-yaml": "^3.5.3"
},
"eslintConfig": {
"env": {
"node": true
},
"rules": {
"camelcase": [
0,
{
"properties": "never"
}
],
"dot-notation": 2,
"indent": [
2,
4,
{
"SwitchCase": 1
}
],
"one-var": [
2,
"never"
],
"no-trailing-spaces": [
2,
{
"skipBlankLines": false
}
],
"keyword-spacing": [
2,
{
"overrides": {}
}
]
}
},
"optionalDependencies": {},
"devDependencies": {
"eslint": ">=2",
"eslint": "*",
"grunt": "*",
"grunt-eslint": "*",
"nodeunit": "^0.10.2"
"nodeunit": "*"
},
"bugs": {
"mail": "helpme@gmail.com",
Expand Down
2 changes: 1 addition & 1 deletion test/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function setUp (done) {
clearRequireCache();
this.config = require('../config');
done();
};
}

exports.config = {
'setUp' : setUp,
Expand Down

0 comments on commit c8d2bb3

Please sign in to comment.