In order to run linter in a pre-commit hook you can check changed files only for performance reasons.
package.json:
{
"scripts": [
"fastlint": "git diff --cached --name-only | grep .ts$ | xargs -L1 \"./node_modules/.bin/tslint\" --fix"
],| --- | |
| apiVersion: v1 | |
| kind: ConfigMap | |
| metadata: | |
| name: metricbeat-config | |
| namespace: kube-system | |
| labels: | |
| k8s-app: metricbeat | |
| data: | |
| metricbeat.yml: |- |
| # Remove the older version of vagrant. | |
| sudo apt-get remove --auto-remove vagrant | |
| rm -r ~/.vagrant.d | |
| #Download Vagrant package and install it manually. | |
| #Vagrant download page provides the latest version of Vagrant | |
| https://www.vagrantup.com/downloads.html | |
| #This example used debian package x86_64 | |
| 1. wget https://releases.hashicorp.com/vagrant/2.2.0/vagrant_2.2.0_x86_64.deb |