From 587a3f7aab4c025c48039aa6f4faa94d5456d73d Mon Sep 17 00:00:00 2001 From: Evan Reichard Date: Wed, 8 Jul 2026 12:03:46 -0400 Subject: [PATCH] Fix lint warning and trim AGENTS.md dev-env section --- AGENTS.md | 8 ++------ emdash-highlighter.user.js | 1 - 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index fe77f4e..7594401 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -18,12 +18,8 @@ Each userscript is a single `*.user.js` file at the repo root. A script owns eve pnpm lint # lint every *.user.js ``` -Warnings on third-party/imported scripts are acceptable signal, not blockers. Keep your own scripts warning-clean. +Keep scripts warning-clean. ## Dev Environment -The Nix flake provides `nodejs` + `pnpm`; its `shellHook` runs `pnpm install` and puts `node_modules/.bin` on `PATH`, so `oxlint` is ready automatically. - -```bash -nix develop # or: direnv allow (uses .envrc → `use flake`) -``` +direnv (`.envrc` → `use flake`) auto-loads the Nix flake, which provides `nodejs` + `pnpm` and runs `pnpm install` via its `shellHook`, so `oxlint` is on `PATH` automatically. diff --git a/emdash-highlighter.user.js b/emdash-highlighter.user.js index ea6a99a..28c693d 100644 --- a/emdash-highlighter.user.js +++ b/emdash-highlighter.user.js @@ -16,7 +16,6 @@ const EM_DASH = '\u2014'; const EMDASH_REGEX = /\u2014/g; - const PROCESSED_ATTR = 'data-emdash-processed'; const POPUP_ID = 'emdash-popup'; // Tags whose text content we should never touch