1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-11 00:08:30 +01:00

chore: Fix husky config

This commit is contained in:
ivaosthu 2018-11-22 09:03:36 +01:00 committed by Ivar Conradi Østhus
parent 9c7b429032
commit 0925136bfb

View File

@ -46,8 +46,7 @@
"test:pg-virtualenv": "pg_virtualenv npm run test:pg-virtualenv-chai", "test:pg-virtualenv": "pg_virtualenv npm run test:pg-virtualenv-chai",
"test:pg-virtualenv-chain": "export TEST_DATABASE_URL=postgres://$PGUSER:$PGPASSWORD@localhost:$PGPORT/postgres ; npm run db-migrate-testdb && npm test", "test:pg-virtualenv-chain": "export TEST_DATABASE_URL=postgres://$PGUSER:$PGPASSWORD@localhost:$PGPORT/postgres ; npm run db-migrate-testdb && npm test",
"test:coverage": "nyc npm run test", "test:coverage": "nyc npm run test",
"test:coverage-report": "nyc report --reporter=text-lcov | coveralls", "test:coverage-report": "nyc report --reporter=text-lcov | coveralls"
"precommit": "lint-staged"
}, },
"nyc": { "nyc": {
"all": true, "all": true,
@ -109,5 +108,10 @@
"eslint --fix", "eslint --fix",
"git add" "git add"
] ]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
} }
} }