Permalink
Browse files

Add eslint semicolon rule (#1948)

* Add eslint rule to enforce semicolons

This is the coding standard for this project so it should
be enforced by eslint. This will be particular useful for
new contributors and will save time for reviewers.

* Add missing semicolons
  • Loading branch information...
1 parent daf080d commit 718952ee974a342368f82bc30f0cea4dc6d3165b @davidgtonge davidgtonge committed with buzzdecafe Oct 20, 2016
Showing with 6 additions and 5 deletions.
  1. +2 −1 .eslintrc
  2. +1 −1 src/applySpec.js
  3. +1 −1 src/dissoc.js
  4. +1 −1 test/complement.js
  5. +1 −1 test/indexBy.js
View
@@ -117,6 +117,7 @@
"no-dupe-keys": 2,
"no-duplicate-case": 2,
"no-extra-semi": 2,
- "no-unreachable": 2
+ "no-unreachable": 2,
+ "semi": 2
}
}
View
@@ -34,7 +34,7 @@ var values = require('./values');
* @symb R.applySpec({ x: f, y: { z: g } })(a, b) = { x: f(a, b), y: { z: g(a, b) } }
*/
module.exports = _curry1(function applySpec(spec) {
- spec = map(function(v) { return typeof v == 'function' ? v : applySpec(v) },
+ spec = map(function(v) { return typeof v == 'function' ? v : applySpec(v); },
spec);
return curryN(reduce(max, 0, pluck('length', values(spec))),
function() {
View
@@ -22,6 +22,6 @@ module.exports = _curry2(function dissoc(prop, obj) {
for (var p in obj) {
result[p] = obj[p];
}
- delete result[prop]
+ delete result[prop];
return result;
});
View
@@ -1,4 +1,4 @@
-var S = require('sanctuary')
+var S = require('sanctuary');
var R = require('..');
var eq = require('./shared/eq');
View
@@ -30,7 +30,7 @@ describe('indexBy', function() {
R.adjust(R.toUpper, 0),
R.adjust(R.omit('id'), 1)
)));
- var result = R.into({}, transducer, list)
+ var result = R.into({}, transducer, list);
eq(result, {ABC: {title: 'B'}, XYZ: {title: 'A'}});
});

0 comments on commit 718952e

Please sign in to comment.