Update lint-staged
... | ... | @@ -6,7 +6,8 @@ |
"scripts": { | ||
"lint": "eslint .", | ||
"start": "node index.js", | ||
"dev": "nodemon index.js | pino-pretty" | ||
"dev": "nodemon index.js | pino-pretty", | ||
"prepare": "husky install" | ||
}, | ||
"author": "Open-Xchange", | ||
"license": "CC-BY-NC-SA-2.5", | ||
... | ... | @@ -29,17 +30,12 @@ |
"eslint-plugin-import": "^2.22.1", | ||
"eslint-plugin-node": "^11.1.0", | ||
"eslint-plugin-promise": "^5.1.0", | ||
"husky": ">=4", | ||
"husky": ">=6", | ||
"lint-staged": ">=10", | ||
"nodemon": "^2.0.7", | ||
"pino-pretty": "^4.7.1" | ||
}, | ||
"husky": { | ||
"hooks": { | ||
"pre-commit": "lint-staged" | ||
} | ||
}, | ||
"lint-staged": { | ||
"*.js(on)?": "eslint --cache --fix" | ||
"*.js": "eslint --cache --fix" | ||
} | ||
} |
Please register or sign in to comment