From 6bf109870e72d6d3e2ed6e4b15ae610c9ec28b0f Mon Sep 17 00:00:00 2001 From: Rahul Rana Date: Mon, 1 Oct 2018 21:47:24 +0530 Subject: [PATCH 1/2] Add coala configuration file and add script in package.json --- .coafile | 4 ++++ .coarc | 1 + package.json | 3 ++- 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .coafile create mode 100644 .coarc diff --git a/.coafile b/.coafile new file mode 100644 index 0000000..d72b754 --- /dev/null +++ b/.coafile @@ -0,0 +1,4 @@ +[cli] +bears = SpaceConsistencyBear +files = **/*.js +use_spaces = true diff --git a/.coarc b/.coarc new file mode 100644 index 0000000..e96c58e --- /dev/null +++ b/.coarc @@ -0,0 +1 @@ +ignore = node_modules/ \ No newline at end of file diff --git a/package.json b/package.json index c70a30a..a5b3fda 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,8 @@ "version": "0.1.0", "description": "Portal to get an invite to IIITV Github organization", "scripts": { - "start": "node server.js" + "start": "node server.js", + "lint":"coala --files=**/*.js --bears=SpaceConsistencyBear --save" }, "dependencies": { "axios": "^0.18.0", From e53e623a5ff6e5a1a487d6dc0eb27c3cd5fda03d Mon Sep 17 00:00:00 2001 From: Rahul Rana <3rahul4@gmail.com> Date: Fri, 5 Oct 2018 10:14:57 +0530 Subject: [PATCH 2/2] Add new line to .gitignore --- .coarc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.coarc b/.coarc index e96c58e..cb7bfa4 100644 --- a/.coarc +++ b/.coarc @@ -1 +1 @@ -ignore = node_modules/ \ No newline at end of file +ignore = node_modules/