Chore: Skip unnecessary checks on pre commit (#16946)
* Skip unnecessary checks on pre commit * Remove grunt precommit task * Separate go and fe tesrt lint
Showing
... | @@ -107,6 +107,7 @@ | ... | @@ -107,6 +107,7 @@ |
"sass-lint": "1.12.1", | "sass-lint": "1.12.1", | ||
"sass-loader": "7.1.0", | "sass-loader": "7.1.0", | ||
"semver": "5.7.0", | "semver": "5.7.0", | ||
"simple-git": "^1.112.0", | |||
"sinon": "1.17.6", | "sinon": "1.17.6", | ||
"style-loader": "0.23.1", | "style-loader": "0.23.1", | ||
"systemjs": "0.20.19", | "systemjs": "0.20.19", | ||
... | @@ -149,11 +150,12 @@ | ... | @@ -149,11 +150,12 @@ |
"gui:releasePrepare": "ts-node --project ./scripts/cli/tsconfig.json ./scripts/cli/index.ts gui:release", | "gui:releasePrepare": "ts-node --project ./scripts/cli/tsconfig.json ./scripts/cli/index.ts gui:release", | ||
"gui:publish": "cd packages/grafana-ui/dist && npm publish --access public", | "gui:publish": "cd packages/grafana-ui/dist && npm publish --access public", | ||
"gui:release": "ts-node --project ./scripts/cli/tsconfig.json ./scripts/cli/index.ts gui:release -p --createVersionCommit", | "gui:release": "ts-node --project ./scripts/cli/tsconfig.json ./scripts/cli/index.ts gui:release -p --createVersionCommit", | ||
"precommit": "ts-node --project ./scripts/cli/tsconfig.json ./scripts/cli/index.ts precommit", | |||
"cli": "ts-node --project ./scripts/cli/tsconfig.json ./scripts/cli/index.ts" | "cli": "ts-node --project ./scripts/cli/tsconfig.json ./scripts/cli/index.ts" | ||
}, | }, | ||
"husky": { | "husky": { | ||
"hooks": { | "hooks": { | ||
"pre-commit": "lint-staged && grunt precommit" | "pre-commit": "lint-staged && npm run precommit" | ||
} | } | ||
}, | }, | ||
"lint-staged": { | "lint-staged": { | ||
... | ... |
scripts/cli/tasks/precommit.ts
0 → 100644
Please
register
or
sign in
to comment