Add basic linting for app loader

pull/458/head^2
Gordon Williams 2020-05-27 16:39:36 +01:00
parent 148a258560
commit 317ec01b4e
2 changed files with 14 additions and 1 deletions

13
js/.eslintrc.json Normal file
View File

@ -0,0 +1,13 @@
{
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "script"
},
"rules": {
},
"env": {
"browser": true,
"node": true
}
}

View File

@ -9,7 +9,7 @@
}, },
"scripts": { "scripts": {
"lint-apps": "eslint ./apps --ext .js", "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" "start": "npx http-server"
}, },
"dependencies": { "dependencies": {