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}] [{.travis.yml,npm-shrinkwrap.json,package.json}]
indent_style = space indent_style = space
indent_size = 2 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", "main": "app.js",
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
"test": "make lint", "test": "npm run-script lint",
"lint": "eslint .",
"dev": "webpack --config webpack.config.js --progress --colors --watch", "dev": "webpack --config webpack.config.js --progress --colors --watch",
"build": "webpack --config webpack.production.js --progress --colors", "build": "webpack --config webpack.production.js --progress --colors",
"postinstall": "bin/heroku", "postinstall": "bin/heroku",