Skip to content

Instantly share code, notes, and snippets.

@alexandr-kazakov
Last active January 21, 2025 09:33
Show Gist options
  • Save alexandr-kazakov/8dfe10959bc90d25ed23cc51e12d270e to your computer and use it in GitHub Desktop.
Save alexandr-kazakov/8dfe10959bc90d25ed23cc51e12d270e to your computer and use it in GitHub Desktop.
forEach js
var houseType = filter.querySelectorAll('.filter__house-type-item-checkbox');
houseType.forEach(function(element, index, array) {
console.log(element + ": " + index);
})
git stash push -u -m "Ваше сообщение"
Чтобы обновить конкретный файл снапшота в Vitest, используйте следующую команду:
npx vitest -u src/components/Button.test.ts
Eslint run and fix:
npx eslint 'src/**/*.{js,jsx,ts,tsx}' --fix
Revert:
git log --pretty=oneline --abbrev-commit 1f80548^..4b293d5
# now, let's revert all commits
git revert --no-commit 1f80548^..4b293d5
# then let's commit all of them with a single message
git commit -am "[RELEASE_FIX] this feature should not be here now;";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment