Skip to content

Commit

Permalink
Added ESLint
Browse files Browse the repository at this point in the history
  • Loading branch information
jukra committed Sep 16, 2014
1 parent bbdb8e7 commit f590521
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 4 deletions.
12 changes: 12 additions & 0 deletions .eslintrc
@@ -0,0 +1,12 @@
{
"rules": {
"no-undef": 0,
"new-cap": 0,
"quotes": 0,
"curly": 0,
"strict": 0,
},
"env": {
"node": true
},
}
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -28,7 +28,8 @@
"chai": "~1.9.0",
"gulp": "~3.5.0",
"proxyquire": "^0.6.0",
"event-stream": "~3.1.0"
"event-stream": "~3.1.0",
"eslint": "0.8.1"
},
"licenses": [
{
Expand Down
11 changes: 11 additions & 0 deletions test/.eslintrc
@@ -0,0 +1,11 @@
{
"rules": {
"no-unused-vars": 0,
"no-mixed-requires": 0,
"handle-callback-err": 1,
"no-return-assign": 1
},
"env": {
"node": true
},
}
6 changes: 3 additions & 3 deletions test/minify.js
Expand Up @@ -14,7 +14,7 @@ describe('gulp-minify-css minification', function() {
keepSpecialComments: 1,
keepBreaks: true
};

describe('with buffers', function() {
var filename = path.join(__dirname, './fixture/index.css');
it('should minify my files', function(done) {
Expand Down Expand Up @@ -73,7 +73,7 @@ describe('does not loose other properties in the file object', function () {
.pipe(es.map(function (file) {
expect(file).to.equal(originalFile);
done();
}))
}));
});
it('should preserve additional properties on the original file instance', function (done) {
gulp.src(filename)
Expand All @@ -85,6 +85,6 @@ describe('does not loose other properties in the file object', function () {
.pipe(es.map(function (file) {
expect(file.someProperty).to.equal(42);
done();
}))
}));
});
});

0 comments on commit f590521

Please sign in to comment.