From 907a1279477d809766c14bb2c3e086dd94ebebf0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Eberhardt?= Date: Sun, 8 Sep 2024 09:37:58 +0200 Subject: [PATCH] rename package --- README.md | 8 ++++---- lib/index.mjs | 7 ++++--- package-lock.json | 8 ++++---- package.json | 10 +++++----- 4 files changed, 17 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 7761f32..57c1965 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ -# eslint-plugin-throw +# eslint-plugin-throw-aware ESLint plugin to enforce function naming and JSDoc annotations for functions that throw ## Rules -| Name | Description | -| :------------------ | :------------------------------------------------------------ | -| throw-documentation | Enforce JSDoc @throws tag for functions that throw exceptions | +| Name | Description | +| :----------------- | :------------------------------------------------------------ | +| require-throws-doc | Enforce JSDoc @throws tag for functions that throw exceptions | diff --git a/lib/index.mjs b/lib/index.mjs index 7a1180a..a8bdd18 100644 --- a/lib/index.mjs +++ b/lib/index.mjs @@ -15,7 +15,8 @@ const plugin = { }, configs: {}, rules: { - "throw-documentation": throwDocumentation, + "require-throws-doc": throwDocumentation, + // "throw-function-naming": , }, processors: {}, }; @@ -24,10 +25,10 @@ Object.assign(plugin.configs, { recommended: [ { plugins: { - "eslint-plugin-throw": plugin, + "throw-aware": plugin, }, rules: { - "eslint-plugin-throw/throw-documentation": "error", + "throw-aware/require-throws-doc": "error", }, languageOptions: { globals: { diff --git a/package-lock.json b/package-lock.json index 1b8dda2..c4d2dee 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { - "name": "eslint-plugin-throw", - "version": "1.0.0-beta.3", + "name": "eslint-plugin-throw-aware", + "version": "1.0.0-beta.1", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "eslint-plugin-throw", - "version": "1.0.0-beta.3", + "name": "eslint-plugin-throw-aware", + "version": "1.0.0-beta.1", "license": "Unlicense", "devDependencies": { "ava": "^6.1.3", diff --git a/package.json b/package.json index 33aa8d3..39471ee 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { - "name": "eslint-plugin-throw", - "version": "1.0.0-beta.3", + "name": "eslint-plugin-throw-aware", + "version": "1.0.0-beta.1", "description": "An ESLint plugin to enforce naming conventions and JSDoc annotations for functions that throw exceptions.", "type": "module", "main": "lib/index.mjs", @@ -9,7 +9,7 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/cedeber/eslint-plugin-throw.git" + "url": "git+https://github.com/cedeber/eslint-plugin-throw-aware.git" }, "keywords": [ "eslint", @@ -19,9 +19,9 @@ "author": "Cédric Eberhardt ", "license": "Unlicense", "bugs": { - "url": "https://github.com/cedeber/eslint-plugin-throw/issues" + "url": "https://github.com/cedeber/eslint-plugin-throw-aware/issues" }, - "homepage": "https://github.com/cedeber/eslint-plugin-throw#readme", + "homepage": "https://github.com/cedeber/eslint-plugin-throw-aware#readme", "peerDependencies": { "eslint": ">=9.0.0" },