diff --git a/tasks/gulp-eslint.js b/tasks/gulp-eslint.js index 5f4f28fd30..02a6d96cc8 100644 --- a/tasks/gulp-eslint.js +++ b/tasks/gulp-eslint.js @@ -37,7 +37,7 @@ let linter = (src, options) => { .pipe(eslint(options)) .pipe(eslint.format()) .pipe(eslint.failAfterError()); -} +}; // TODO lint client // TDOO separate linting cong between @@ -53,25 +53,7 @@ gulp.task('lint:common', () => { }); gulp.task('lint:tests', () => { - let options = { - rules: { - 'one-var': 0, - 'max-nested-callbacks': 0, - 'no-unused-expressions': 0, - 'mocha/no-exclusive-tests': 2, - 'mocha/no-global-tests': 2, - 'mocha/handle-done-callback': 2, - }, - globals: { - 'expect': true, - '_': true, - 'sinon': true, - 'sandbox': true, - }, - plugins: [ 'mocha' ], - }; - - return linter(TEST_FILES, options); + return linter(TEST_FILES); }); gulp.task('lint', ['lint:server', 'lint:common', 'lint:tests']); diff --git a/test/.eslintrc b/test/.eslintrc new file mode 100644 index 0000000000..7b5868eca9 --- /dev/null +++ b/test/.eslintrc @@ -0,0 +1,17 @@ +{ + "rules": { + "one-var": 0, + "max-nested-callbacks": 0, + "no-unused-expressions": 0, + "mocha/no-exclusive-tests": 2, + "mocha/no-global-tests": 2, + "mocha/handle-done-callback": 2 + }, + "globals": { + "expect": true, + "_": true, + "sandbox": true, + "sinon": true + }, + "plugins": [ "mocha" ] +}