From 317ec01b4e22ad47908c00f1e33dcbc691528e8a Mon Sep 17 00:00:00 2001 From: Gordon Williams Date: Wed, 27 May 2020 16:39:36 +0100 Subject: [PATCH] Add basic linting for app loader --- js/.eslintrc.json | 13 +++++++++++++ package.json | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 js/.eslintrc.json diff --git a/js/.eslintrc.json b/js/.eslintrc.json new file mode 100644 index 000000000..3d7f1d578 --- /dev/null +++ b/js/.eslintrc.json @@ -0,0 +1,13 @@ +{ + "parserOptions": { + "ecmaVersion": 6, + "sourceType": "script" + }, + "rules": { + + }, + "env": { + "browser": true, + "node": true + } +} diff --git a/package.json b/package.json index 4b1a42c05..18ecc3e11 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ }, "scripts": { "lint-apps": "eslint ./apps --ext .js", - "test": "node bin/sanitycheck.js && eslint ./apps --ext .js", + "test": "node bin/sanitycheck.js && eslint ./apps --ext .js && eslint ./js", "start": "npx http-server" }, "dependencies": {