From 6f29e03149374cf7a8d197ad3844c78630cf4d19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Bene=C5=A1?= Date: Tue, 3 Oct 2017 13:49:16 +0200 Subject: [PATCH] fix(precommit): added rules for lint-staged --- app/templates/_package.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/templates/_package.json b/app/templates/_package.json index c6d26f9..1d9534a 100644 --- a/app/templates/_package.json +++ b/app/templates/_package.json @@ -57,6 +57,9 @@ ] } <% if (eslint) { %>,"eslintConfig": { - "extends": "callstack-io" + "extends": "callstack-io" + }<% } %> + <% if (precommit) { %>,"lint-staged": { + "*.js": ["eslint --fix", "git add"] }<% } %> }