diff --git a/Makefile b/Makefile index 62d2a8e..d9768de 100644 --- a/Makefile +++ b/Makefile @@ -7,6 +7,7 @@ transifex_input = $(i18n)/transifex_input.json transifex_temp = ./temp/babel-plugin-formatjs precommit: + npm run lint npm audit requirements: diff --git a/package.json b/package.json index 94c1a71..bd8c5c1 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,11 @@ "start:with-theme": "paragon install-theme && npm start && npm install", "test": "fedx-scripts jest --coverage --passWithNoTests" }, + "husky": { + "hooks": { + "pre-commit": "npm run lint" + } + }, "author": "edX", "license": "AGPL-3.0", "homepage": "https://github.com/openedx/frontend-template-application#readme",