Optional - Set format on save and any global prettier options
npm i -D eslint prettier eslint-plugin-prettier eslint-config-prettier eslint-plugin-node eslint-config-node
The always enthusiastic and knowledgeable mr. @jasaltvik shared with our team an article on writing (good) Git commit messages: How to Write a Git Commit Message. This excellent article explains why good Git commit messages are important, and explains what constitutes a good commit message. I wholeheartedly agree with what @cbeams writes in his article. (Have you read it yet? If not, go read it now. I'll wait.) It's sensible stuff. So I decided to start following the
| const puppeteer = require('puppeteer'); | |
| const prettier = require('prettier'); | |
| const atob = require('atob'); | |
| const btoa = require('btoa'); | |
| const scriptUrlPatterns = [ | |
| '*' | |
| ] | |
| const requestCache = new Map(); |
| (function(){ | |
| if("onbeforescriptexecute" in document) return; // Already natively supported | |
| let scriptWatcher = new MutationObserver(mutations => { | |
| for(let mutation of mutations){ | |
| for(let node of mutation.addedNodes){ | |
| if(node.tagName === "SCRIPT"){ | |
| let syntheticEvent = new CustomEvent("beforescriptexecute", { | |
| detail: node, | |
| cancelable: true |
| #SingleInstance Force | |
| #NoTrayIcon ;If you want the tray icon to be visible; comment this line by adding a semicolon ; in front of the #. Example: ;#NoTrayIcon | |
| ; ALTERNATIVE METHOD: Try the built-in Everything option "hotkey_explorer_path_search" | |
| ; ^^^INFO: https://www.voidtools.com/forum/viewtopic.php?p=17390#p17390 | |
| EverythingPath := "C:\Program Files\Everything\Everything.exe" ;Set this to your everything.exe path. Keep the quotes. | |
| ;---Optional setup for special folders--- | |
| MyRecycleBin := "Recycle Bin" ;If your OS is not English, go to your explorer's "Recycle Bin" (🚮) folder and change this to the title of that window. Keep the quotes. |
| // https://github.com/npm/npm/blob/master/lib/utils/parse-json.js | |
| 'use strict' | |
| var parseJSON = module.exports = function (content) { | |
| return JSON.parse(stripBOM(content)) | |
| } | |
| parseJSON.noExceptions = function (content) { | |
| try { |
| // Example Use | |
| (function () { | |
| function success() { | |
| console.log("success: ", this.src); | |
| } | |
| function failure() { | |
| console.log("failure: ", this.src); | |
| } |