1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-07-23 23:11:12 +02:00

Use local eslint instead of global

Not every machine has installed eslint globally, use one from node_modules
This commit is contained in:
Andrew Luca
2017-12-24 15:36:10 +02:00
parent c8da5602c1
commit b0ffdf321d
2 changed files with 3 additions and 2 deletions

View File

@@ -5,4 +5,4 @@ install:
- npm install -g eslint - npm install -g eslint
- npm install -g babel-eslint - npm install -g babel-eslint
script: script:
- eslint src/*.js - npm run lint

View File

@@ -10,7 +10,8 @@
"prettier": "^1.5.2" "prettier": "^1.5.2"
}, },
"scripts": { "scripts": {
"install": "ln -sf ../../git-hooks/pre-commit .git/hooks/pre-commit" "install": "ln -sf ../../git-hooks/pre-commit .git/hooks/pre-commit",
"lint": "eslint src/*.js"
}, },
"repository": { "repository": {
"type": "git", "type": "git",