From 7e9bfdb9487671023f1d484f583d21c6dcc069d9 Mon Sep 17 00:00:00 2001 From: SimeonC <1085899+SimeonC@users.noreply.github.com> Date: Thu, 18 Apr 2024 15:42:54 +0900 Subject: [PATCH] feat: add use prefix to boolean name checking Fixes the semantic-release-config error on semantic-release v23 --- packages/eslint-config/src/rules/namingConvention.ts | 1 + packages/semantic-release-config/package.json | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/packages/eslint-config/src/rules/namingConvention.ts b/packages/eslint-config/src/rules/namingConvention.ts index f3bb675..9214102 100644 --- a/packages/eslint-config/src/rules/namingConvention.ts +++ b/packages/eslint-config/src/rules/namingConvention.ts @@ -55,6 +55,7 @@ export const namingRules: Linter.RulesRecord = { 'does', 'will', 'allow', + 'use', ]; return `^(disabled$|${booleanValues.join( '|', diff --git a/packages/semantic-release-config/package.json b/packages/semantic-release-config/package.json index c891d23..d1a77bf 100644 --- a/packages/semantic-release-config/package.json +++ b/packages/semantic-release-config/package.json @@ -10,6 +10,12 @@ "version": "7.1.0", "main": "index.js", "files": ["with-npm-publish/package.json", "withNpmPublish.js"], + "exports": { + ".": "./index.js", + "./with-npm-publish": "./withNpmPublish.js", + "./package.json": "./package.json", + "./with-npm-publish/package.json": "./with-npm-publish/package.json" + }, "dependencies": { "@semantic-release/commit-analyzer": "^9.0.2", "@semantic-release/exec": "^6.0.3",