Skip to content

Instantly share code, notes, and snippets.

@linhmtran168
linhmtran168 / pre-commit-eslint
Last active February 6, 2024 12:28
Pre-commit hook to check for Javascript using ESLint
#!/bin/sh
STAGED_FILES=$(git diff --cached --name-only --diff-filter=ACM | grep ".jsx\{0,1\}$")
if [[ "$STAGED_FILES" = "" ]]; then
exit 0
fi
PASS=true
@billyvg
billyvg / .vimrc
Created January 3, 2011 17:48
My vimrc file
set nocompatible " No vi support
set nobackup " Don't create backups
set mouse=a " Enable mouse support
set confirm " Fuck if I know
set ruler " Show cursor position
set number " Show line numbers
set showcmd " Show (partial) command in status line
set wildmenu " Show wild menu
set wildmode=list:longest