add codemod to fix eslint's "space-in-parens"-rule

the codemod fixes the issues found by eslint

PR: #734
PR-URL: https://github.com/apache/couchdb-fauxton/pull/734
Reviewed-By: garren smith <garren.sm...@gmail.com>


Project: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/commit/cb4ac3fc
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/tree/cb4ac3fc
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/diff/cb4ac3fc

Branch: refs/heads/master
Commit: cb4ac3fc8a8dc6209b0ac5b216e6251fba8c6741
Parents: 747b695
Author: Robert Kowalski <r...@kowalski.gd>
Authored: Wed Jun 22 11:39:03 2016 +0200
Committer: Robert Kowalski <robertkowal...@apache.org>
Committed: Tue Jun 28 16:46:01 2016 +0200

----------------------------------------------------------------------
 codemods/space-in-parens.sh | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/cb4ac3fc/codemods/space-in-parens.sh
----------------------------------------------------------------------
diff --git a/codemods/space-in-parens.sh b/codemods/space-in-parens.sh
new file mode 100755
index 0000000..3c99287
--- /dev/null
+++ b/codemods/space-in-parens.sh
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+./node_modules/.bin/eslint --ext=.jsx,.js --fix . space-in-parens: ["error", 
"never"]

Reply via email to