From c081a7a1620b9c0b89b27f7d34ddc0770b4dc336 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sun, 30 Apr 2017 22:46:42 +0100 Subject: [PATCH] Add eslint --- .eslintrc | 6 ++++++ Makefile | 6 +++++- package.json | 5 ++--- 3 files changed, 13 insertions(+), 4 deletions(-) create mode 100644 .eslintrc diff --git a/.eslintrc b/.eslintrc new file mode 100644 index 0000000..f5933a3 --- /dev/null +++ b/.eslintrc @@ -0,0 +1,6 @@ +{ + "extends": [ + "dabapps/commonjs", + "dabapps/browser", + ] +} diff --git a/Makefile b/Makefile index eabbfd9..e588e3d 100644 --- a/Makefile +++ b/Makefile @@ -28,4 +28,8 @@ node_modules: npm install -.PHONY: build clean install +test: + $(NODE_BIN)/eslint $(STATIC_SRC)/js --ignore-pattern *.min.js + + +.PHONY: build clean install test diff --git a/package.json b/package.json index d51d9e8..7dbc107 100644 --- a/package.json +++ b/package.json @@ -1,9 +1,7 @@ { "name": "theorangeone.net", "version": "1.0.0", - "scripts": { - "build": "node scripts/build.js" - }, + "scripts": {}, "repository": { "type": "git", "url": "git@github:RealOrangeOne/theorangeone.net" @@ -11,6 +9,7 @@ "author": "Jake Howard ", "devDependencies": { "browserify": "14.3.0", + "eslint-config-dabapps": "github:dabapps/eslint-config-dabapps#v3.0.0", "node-sass": "4.5.2" }, "dependencies": {