From d4ad077627c76dd6ff57f6c7aef53496d3fac7a2 Mon Sep 17 00:00:00 2001 From: David Ding Date: Thu, 27 Nov 2025 10:49:02 +0000 Subject: [PATCH 1/3] chore: allow commonly used underscore-dangle exceptions --- index.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index d8eba25..28d5564 100644 --- a/index.js +++ b/index.js @@ -14,7 +14,17 @@ const baseRules = { 'comma-dangle': ['warn', 'always-multiline'], 'arrow-parens': 0, 'no-plusplus': 0, - 'no-underscore-dangle': 0, + 'no-underscore-dangle': [ + 'error', + { + allow: [ + '__dirname', + '__filename', + '_hsg', + '_hsq', + ] + } + ], 'no-confusing-arrow': 0, 'import/no-unresolved': 0, 'import/prefer-default-export': 0, From 7b4c426cc7e0f5eb2f23442ced62b89ae53b52e1 Mon Sep 17 00:00:00 2001 From: David Ding Date: Thu, 27 Nov 2025 13:10:42 +0000 Subject: [PATCH 2/3] fix: remove browser-specific exceptions Co-authored-by: Craig Ayre --- index.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/index.js b/index.js index 28d5564..ae601d8 100644 --- a/index.js +++ b/index.js @@ -20,8 +20,6 @@ const baseRules = { allow: [ '__dirname', '__filename', - '_hsg', - '_hsq', ] } ], From 8310197b57b52570abb4e348c0b45f30baa0d785 Mon Sep 17 00:00:00 2001 From: David Ding Date: Tue, 10 Mar 2026 08:08:10 +0000 Subject: [PATCH 3/3] build: do version prerelease --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 4a1e235..3af5362 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@hs-web-team/eslint-config-node", - "version": "3.2.0", + "version": "3.2.1-0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@hs-web-team/eslint-config-node", - "version": "3.2.0", + "version": "3.2.1-0", "license": "ISC", "dependencies": { "@bahmutov/cypress-esbuild-preprocessor": "^2.2.3", diff --git a/package.json b/package.json index 2202289..1319d1e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@hs-web-team/eslint-config-node", - "version": "3.2.0", + "version": "3.2.1-0", "description": "HubSpot Marketing WebTeam shared configurations for ESLint, Prettier, Stylelint, and Cypress", "main": "index.js", "type": "module",