Lint only staged files (for eslint and stylelint)
If you only want to run esLint and stylelint really only for staged files. Don't forget to adjust the source paths.
alias: "Lichtwecker" | |
description: "An automation for dimming a light from 0% up to 100% within 15 minutes" | |
action: | |
- type: turn_off | |
device_id: 738894a642dab1768d1ab51975b585f7 | |
entity_id: 6c6e595ddc1b1bfb4027411381678295 | |
domain: light | |
- repeat: | |
count: 20 | |
sequence: |
#! /bin/sh | |
export CYPRESS_PACKAGE_VERSION=$(npx cypress --version --component package) | |
export CYPRESS_BINARY_VERSION=$(npx cypress --version --component binary) | |
echo "Cypress version:" | |
echo " - package: ${CYPRESS_PACKAGE_VERSION}" | |
echo " - binary: ${CYPRESS_BINARY_VERSION}" | |
if [[ "${CYPRESS_PACKAGE_VERSION}" != "${CYPRESS_BINARY_VERSION}" ]]; then |
If you only want to run esLint and stylelint really only for staged files. Don't forget to adjust the source paths.
$font-size-base: 16px !default; | |
@function strip-unit($value) { | |
@return $value / ($value * 0 + 1); | |
} | |
@function pxToRem($value) { | |
@return $value / $font-size-base * 1rem; | |
} |
$(window).keydown(function (event) { | |
if (event.keyCode === 13 && $(':input').is(':focus')) { | |
event.preventDefault(); | |
$('#next-step').trigger('click'); | |
return false; | |
} | |
}); |