Skip to content

Instantly share code, notes, and snippets.

@reyrodrigez
Last active June 30, 2017 15:48
Show Gist options
  • Select an option

  • Save reyrodrigez/135787281bfc7dad8715cf4d2bac674c to your computer and use it in GitHub Desktop.

Select an option

Save reyrodrigez/135787281bfc7dad8715cf4d2bac674c to your computer and use it in GitHub Desktop.

😍 Running a pre-commit eslint on all js files which have been staged for the given commit:

  "precommit": "git diff --name-only --cached | grep .js | xargs ./node_modules/.bin/eslint"

😭 wrap a set of elements in a DOM list.

$block.nextUntil('*:not(primitive-block)')
      .andSelf()
      .wrapAll('<primitive-wrapper class="primitive-wrapper" />');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment