mirror of
https://github.com/chinchang/web-maker.git
synced 2025-07-22 22:41: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:
@@ -5,4 +5,4 @@ install:
|
||||
- npm install -g eslint
|
||||
- npm install -g babel-eslint
|
||||
script:
|
||||
- eslint src/*.js
|
||||
- npm run lint
|
||||
|
@@ -10,7 +10,8 @@
|
||||
"prettier": "^1.5.2"
|
||||
},
|
||||
"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": {
|
||||
"type": "git",
|
||||
|
Reference in New Issue
Block a user