From 9443a15662e4d1d2596940866cf3f9cb427cbb15 Mon Sep 17 00:00:00 2001 From: Trivikram Kamat <16024985+trivikr@users.noreply.github.com> Date: Mon, 13 Jul 2020 18:15:34 +0000 Subject: [PATCH] feat: lint and fix on precommit --- package.json | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index cb9350898dc1..dd97e76c9420 100644 --- a/package.json +++ b/package.json @@ -21,8 +21,7 @@ "test:integration": "jest --config jest.config.integ.js --passWithNoTests", "test:protocols": "yarn build:protocols && lerna run test --scope '@aws-sdk/aws-*'", "local-publish": "node ./scripts/verdaccio-publish/index.js", - "test:e2e": "node ./tests/e2e/index.js", - "lint": "eslint 'packages/**/src/**/*.ts' --fix" + "test:e2e": "node ./tests/e2e/index.js" }, "repository": { "type": "git", @@ -103,6 +102,10 @@ } }, "lint-staged": { + "packages/**/src/**/*.ts": [ + "eslint --fix", + "prettier --write" + ], "**/*.{ts,js,md,json}": "prettier --write" } }