Using package.json to test lint instead

Exclude *.min.js from eslint
This commit is contained in:
bananaappletw 2017-02-16 12:27:17 +08:00
parent c48ba0ad48
commit 40dfffd4f4
4 changed files with 3 additions and 6 deletions

View File

@ -13,5 +13,3 @@ trim_trailing_whitespace = false
[{.travis.yml,npm-shrinkwrap.json,package.json}]
indent_style = space
indent_size = 2
[Makefile]
indent_style = tab

1
.eslintignore Normal file
View File

@ -0,0 +1 @@
*.min.js

View File

@ -1,3 +0,0 @@
lint:
@./node_modules/.bin/eslint .
.PHONY: lint

View File

@ -5,7 +5,8 @@
"main": "app.js",
"license": "MIT",
"scripts": {
"test": "make lint",
"test": "npm run-script lint",
"lint": "eslint .",
"dev": "webpack --config webpack.config.js --progress --colors --watch",
"build": "webpack --config webpack.production.js --progress --colors",
"postinstall": "bin/heroku",