Skip to content

Instantly share code, notes, and snippets.

View mckenziearts's full-sized avatar
🏠
Working from home

Arthur Monney mckenziearts

🏠
Working from home
View GitHub Profile
@mckenziearts
mckenziearts / .eslintrc
Created November 23, 2019 21:25 — forked from 1natsu172/.eslintrc
My airbnb based ESLint config for "typescript-eslint" with React & prettier
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json",
"tsconfigRootDir": "."
},
"env": {
"browser": true,
"jest/globals": true
},
@mckenziearts
mckenziearts / laravel.js
Created February 24, 2020 17:10 — forked from JeffreyWay/laravel.js
Want to send a DELETE request when outside of a form? This will handle the form-creation bits for you dynamically, similar to the Rails implementation. (Requires jQuery, but doesn't have to.) To use, import script, and create a link with the `data-method="DELETE"` attribute.
/*
<a href="posts/2" data-method="delete"> <---- We want to send an HTTP DELETE request
- Or, request confirmation in the process -
<a href="posts/2" data-method="delete" data-confirm="Are you sure?">
*/
(function() {