Commit e2919883 authored by Sean Hammond's avatar Sean Hammond Committed by GitHub

Merge pull request #325 from hypothesis/update-eslint

Update ESLint to v3.18.0
parents 4b3c1325 3503ffdb
...@@ -7,6 +7,10 @@ ...@@ -7,6 +7,10 @@
"mocha" "mocha"
], ],
"rules": { "rules": {
"mocha/no-exclusive-tests": "error" "mocha/no-exclusive-tests": "error",
"indent": ["error", 2, {
"ArrayExpression": "first",
"ObjectExpression": "first"
}]
}, },
} }
...@@ -333,22 +333,20 @@ gulp.task('serve-package', function () { ...@@ -333,22 +333,20 @@ gulp.task('serve-package', function () {
servePackage(3001, packageServerHostname()); servePackage(3001, packageServerHostname());
}); });
gulp.task('build', gulp.task('build', ['build-js',
['build-js', 'build-css',
'build-css', 'build-fonts',
'build-fonts', 'build-images'],
'build-images'],
generateManifest); generateManifest);
gulp.task('watch', gulp.task('watch', ['serve-package',
['serve-package', 'serve-live-reload',
'serve-live-reload', 'watch-js',
'watch-js', 'watch-css',
'watch-css', 'watch-fonts',
'watch-fonts', 'watch-images',
'watch-images', 'watch-manifest',
'watch-manifest', 'watch-templates']);
'watch-templates']);
function runKarma(baseConfig, opts, done) { function runKarma(baseConfig, opts, done) {
// See https://github.com/karma-runner/karma-mocha#configuration // See https://github.com/karma-runner/karma-mocha#configuration
......
This diff is collapsed.
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
"end-of-stream": "^1.1.0", "end-of-stream": "^1.1.0",
"escape-html": "^1.0.3", "escape-html": "^1.0.3",
"escape-string-regexp": "^1.0.5", "escape-string-regexp": "^1.0.5",
"eslint": "^3.0.1", "eslint": "^3.18.0",
"eslint-config-hypothesis": "^1.0.0", "eslint-config-hypothesis": "^1.0.0",
"eslint-plugin-mocha": "^4.8.0", "eslint-plugin-mocha": "^4.8.0",
"exorcist": "^0.4.0", "exorcist": "^0.4.0",
......
...@@ -116,8 +116,8 @@ var update = { ...@@ -116,8 +116,8 @@ var update = {
SELECT_TAB: function (state, action) { SELECT_TAB: function (state, action) {
// Do nothing if the "new tab" is not a valid tab. // Do nothing if the "new tab" is not a valid tab.
if ([uiConstants.TAB_ANNOTATIONS, if ([uiConstants.TAB_ANNOTATIONS,
uiConstants.TAB_NOTES, uiConstants.TAB_NOTES,
uiConstants.TAB_ORPHANS].indexOf(action.tab) === -1) { uiConstants.TAB_ORPHANS].indexOf(action.tab) === -1) {
return {}; return {};
} }
// Shortcut if the tab is already correct, to avoid resetting the sortKey // Shortcut if the tab is already correct, to avoid resetting the sortKey
......
...@@ -139,7 +139,7 @@ describe('oauth auth', function () { ...@@ -139,7 +139,7 @@ describe('oauth auth', function () {
'https://hypothes.is/api/token', 'https://hypothes.is/api/token',
expectedBody, expectedBody,
{headers: {'Content-Type': 'application/x-www-form-urlencoded'}, {headers: {'Content-Type': 'application/x-www-form-urlencoded'},
}); });
}; };
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment