Run linter as tests

This commit is contained in:
Henri Bergius 2019-01-26 22:00:53 +01:00
parent d425aec2e4
commit 1069f81360

View file

@ -5,10 +5,10 @@
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"build": "webpack", "build": "webpack",
"pretest": "eslint index.js lib/*.js elements/*.js infodisplay/*.js events/*.js", "lint": "eslint index.js lib/*.js elements/*.js infodisplay/*.js events/*.js",
"dev": "webpack-dev-server", "dev": "webpack-dev-server",
"start": "node server", "start": "node server",
"test": "npm run build" "test": "npm run lint"
}, },
"author": "Henri Bergius <henri.bergius@iki.fi>", "author": "Henri Bergius <henri.bergius@iki.fi>",
"license": "MIT", "license": "MIT",