Skip to content

Instantly share code, notes, and snippets.

View jonwaldstein's full-sized avatar

Jon Waldstein jonwaldstein

View GitHub Profile
@jonwaldstein
jonwaldstein / package.json
Created March 21, 2020 23:31
Eslint with prettier packages
{
"babel-eslint": "^9.0.0",
"eslint": "^6.1.0",
"eslint-config-airbnb": "^18.0.0",
"eslint-config-prettier": "^4.1.0",
"eslint-plugin-html": "^5.0.3",
"eslint-plugin-import": "^2.18.0",
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-prettier": "^3.0.1",
"eslint-plugin-react": "^7.14.2",
@jonwaldstein
jonwaldstein / givewp-filter-gateways-visibility.php
Last active July 3, 2024 20:06
GiveWP filter gateway visibility
<?php
function filter_give_enabled_payment_gateways($gateways, $formId){
if (!current_user_can('manage_options')) {
return array_filter($gateways, function($gateway){
return $gateway !== 'gatewayId';
}, ARRAY_FILTER_USE_KEY);
}
return $gateways;
@jonwaldstein
jonwaldstein / cursor-extensions
Created June 12, 2025 20:32
Cursor/Vscode extensions
bmewburn.vscode-intelephense-client
bradlc.vscode-tailwindcss
calebporzio.better-phpunit
cmstead.js-codeformer
dbaeumer.vscode-eslint
dsznajder.es7-react-js-snippets
eamodio.gitlens
esbenp.prettier-vscode
formulahendry.auto-close-tag
github.vscode-github-actions