Skip to content

Instantly share code, notes, and snippets.

View bpmutter's full-sized avatar
🌵
you gotta just keep codin' C-O-D-I-N

Ben Perlmutter bpmutter

🌵
you gotta just keep codin' C-O-D-I-N
View GitHub Profile
@bpmutter
bpmutter / eslint.config.d.ts
Created May 4, 2023 01:43
eslint.config.js types
/**
* Represents an ESLint configuration object.
*/
type ESLintConfigurationObject = {
/**
* An array of glob patterns indicating the files that the configuration object should apply to.
* If not specified, the configuration object applies to all files matched by any other configuration object.
*/
files?: string[];
@bpmutter
bpmutter / shared-types.ts
Last active February 16, 2023 02:47
ESLint shared types (generated)
// Generated with ChatGPT from https://github.com/eslint/eslint/blob/main/lib/shared/types.js
/**
* Boolean, "off", "readable", "readonly", "writable", or "writeable".
*/
type GlobalConf = boolean | "off" | "readable" | "readonly" | "writable" | "writeable";
/**
* 0, 1, 2, "off", "warn", or "error".
*/
@bpmutter
bpmutter / notes_eslint_issue_16473.md
Last active November 5, 2022 20:14
NOTES - ESLint Overviews in user documentation page introductions

Notes for - eslint/eslint#16473

pages that need intro refactor:

  • Configuring
    • refine current intro blurb to talk more about why you want to configure eslint. what the idea of configuring means
  • Configuration Files (New)
    • include some information about how configuration file contains different rules/plugins
  • Configuration Files
  • add same general content ot Configuration Files (New)
<script>
const orderItems = {};
let totalOrderItems = 0;
let itemsInBox = document.getElementById("total-items-in-box")?.innerHTML;
itemsInBox = !isNaN(itemsInBox) ? parseInt(itemsInBox) : null;
const orderItemDisplay = document.getElementById("current-items-in-box");
const addToCartButton = document.getElementById("add-to-cart");
const buyNowButton = document.getElementById("buy-now");