{"name":"are-docs-informative","version":"0.1.1","description":"Checks whether a documentation description introduces any new information. ℹ️","repository":{"type":"git","url":"git+https://github.com/JoshuaKGoldberg/are-docs-informative.git"},"license":"MIT","author":{"name":"JoshuaKGoldberg","email":"npm@joshuakgoldberg.com"},"type":"module","main":"lib/index.js","scripts":{"build":"tsup","format":"prettier .","lint":"eslint . --max-warnings 0","lint:knip":"knip","lint:md":"markdownlint \"**/*.md\" \".github/**/*.md\" --rules sentences-per-line","lint:packages":"pnpm dedupe --check","lint:spelling":"cspell \"**\" \".github/**/*\"","prepare":"husky","test":"vitest","tsc":"tsc"},"lint-staged":{"*":"prettier --ignore-unknown --write"},"devDependencies":{"@eslint-community/eslint-plugin-eslint-comments":"4.5.0","@eslint/js":"9.28.0","@release-it/conventional-changelog":"10.0.0","@types/eslint-plugin-markdown":"2.0.2","@types/node":"22.15.0","@vitest/coverage-v8":"3.2.0","@vitest/eslint-plugin":"1.2.0","console-fail-test":"0.5.0","create-typescript-app":"2.34.0","cspell":"9.0.0","eslint":"9.28.0","eslint-plugin-jsdoc":"50.7.0","eslint-plugin-jsonc":"2.20.0","eslint-plugin-markdown":"5.1.0","eslint-plugin-n":"17.16.2","eslint-plugin-package-json":"0.33.0","eslint-plugin-perfectionist":"4.14.0","eslint-plugin-regexp":"2.8.0","eslint-plugin-yml":"1.18.0","husky":"9.1.7","knip":"5.60.0","lint-staged":"16.1.0","markdownlint":"0.38.0","markdownlint-cli":"0.45.0","prettier":"3.5.3","prettier-plugin-curly":"0.3.1","prettier-plugin-packagejson":"2.5.10","prettier-plugin-sh":"0.17.0","release-it":"19.0.1","sentences-per-line":"0.3.0","tsup":"8.5.0","typescript":"5.8.2","typescript-eslint":"8.33.0","vitest":"3.2.0"},"packageManager":"pnpm@10.11.0","engines":{"node":">=18"},"publishConfig":{"provenance":true},"_id":"are-docs-informative@0.1.1","gitHead":"59a5accb222659650158b067d74bbc809cefb8c3","types":"./lib/index.d.ts","bugs":{"url":"https://github.com/JoshuaKGoldberg/are-docs-informative/issues"},"homepage":"https://github.com/JoshuaKGoldberg/are-docs-informative#readme","_nodeVersion":"20.19.1","_npmVersion":"10.8.2","dist":{"integrity":"sha512-sqRsNQBwbKLRX0jV5Cu5uzmtflf892n4Vukz7T659ebL4pz3mpOqCMU7lxMoBTFwnp10E3YB5ZcyHM41W5bcDA==","shasum":"34fa1d621e6b8ab2bd33e219333c135b6655a2d0","tarball":"http://registry-npm.ywwl.com/are-docs-informative/download/are-docs-informative-0.1.1.tgz","fileCount":7,"unpackedSize":10245,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/are-docs-informative@0.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCteWVTWbTGMCWXsAODma1YFwV9yDbZafUVNsqmhhQAJwIhAPABLl85R3W+IhN1Uc2Ny3r/li659pVm4an9LBJBaCKB"}],"size":4122,"noattachment":false,"key":"/are-docs-informative/-/are-docs-informative-0.1.1.tgz"},"_npmUser":{"name":"joshuakgoldberg","email":"npm@joshuakgoldberg.com"},"directories":{},"maintainers":[{"name":"joshuakgoldberg","email":"npm@joshuakgoldberg.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/are-docs-informative_0.1.1_1749729648526_0.10313508359626677"},"_hasShrinkwrap":false,"readme":"<h1 align=\"center\">Are Docs Informative</h1>\n\n<p align=\"center\">\n\tChecks whether a documentation description introduces any new information.\n\tℹ️\n</p>\n\n<p align=\"center\">\n\t<!-- prettier-ignore-start -->\n\t<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->\n\t<a href=\"#contributors\" target=\"_blank\"><img alt=\"👪 All Contributors: 1\" src=\"https://img.shields.io/badge/%F0%9F%91%AA_all_contributors-1-21bb42.svg\" /></a>\n<!-- ALL-CONTRIBUTORS-BADGE:END -->\n\t<!-- prettier-ignore-end -->\n\t<a href=\"https://github.com/JoshuaKGoldberg/are-docs-informative/blob/main/.github/CODE_OF_CONDUCT.md\" target=\"_blank\"><img alt=\"🤝 Code of Conduct: Kept\" src=\"https://img.shields.io/badge/%F0%9F%A4%9D_code_of_conduct-kept-21bb42\" /></a>\n\t<a href=\"https://codecov.io/gh/JoshuaKGoldberg/are-docs-informative\" target=\"_blank\"><img alt=\"🧪 Coverage\" src=\"https://img.shields.io/codecov/c/github/JoshuaKGoldberg/are-docs-informative?label=%F0%9F%A7%AA%20coverage\" /></a>\n\t<a href=\"https://github.com/JoshuaKGoldberg/are-docs-informative/blob/main/LICENSE.md\" target=\"_blank\"><img alt=\"📝 License: MIT\" src=\"https://img.shields.io/badge/%F0%9F%93%9D_license-MIT-21bb42.svg\" /></a>\n\t<a href=\"http://npmjs.com/package/are-docs-informative\" target=\"_blank\"><img alt=\"📦 npm version\" src=\"https://img.shields.io/npm/v/are-docs-informative?color=21bb42&label=%F0%9F%93%A6%20npm\" /></a>\n\t<img alt=\"💪 TypeScript: Strict\" src=\"https://img.shields.io/badge/%F0%9F%92%AA_typescript-strict-21bb42.svg\" />\n</p>\n\n## Usage\n\n> See this in action in [`jsdoc/informative-docs`](https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/informative-docs.md)!\n\n```shell\nnpm i are-docs-informative\n```\n\n```ts\nimport { areDocsInformative } from \"are-docs-informative\";\n\nareDocsInformative(\"The user id.\", \"userId\"); // false\nareDocsInformative(\"Retrieved user id.\", \"userId\"); // true\n```\n\n### Options\n\nThe `areDocsInformative` function can receive a third, optional object parameter.\nIt can contain any of the following properties.\n\n#### `aliases`\n\nThe `aliases` option allows indicating words as synonyms (aliases) of each other.\n\nFor example, with `{ aliases: { emoji: [\"smiley\", \"winkey\"] } }`, the following comment would be considered uninformative:\n\n```ts\n/** Default smiley/winkey. */\nexport const defaultSmiley = \"🙂\";\n```\n\nThe default `aliases` option is:\n\n```json\n{\n\t\"a\": [\"an\", \"our\"]\n}\n```\n\n#### `uselessWords`\n\nWords that are ignored when searching for one that adds meaning.\n\nFor example, with `{ uselessWords: [\"our\"] }`, the following comment would be considered uninformative:\n\n```ts\n/** Our text. */\nexport const text = \":)\";\n```\n\nThe default `uselessWords` option is:\n\n```json\n[\"a\", \"an\", \"i\", \"in\", \"of\", \"s\", \"the\"]\n```\n\n## Development\n\nSee [`.github/CONTRIBUTING.md`](./.github/CONTRIBUTING.md), then [`.github/DEVELOPMENT.md`](./.github/DEVELOPMENT.md).\nThanks! ℹ\n\n## Contributors\n\n<!-- spellchecker: disable -->\n<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"14.28%\"><a href=\"http://www.joshuakgoldberg.com\"><img src=\"https://avatars.githubusercontent.com/u/3335181?v=4?s=100\" width=\"100px;\" alt=\"Josh Goldberg\"/><br /><sub><b>Josh Goldberg</b></sub></a><br /><a href=\"#tool-JoshuaKGoldberg\" title=\"Tools\">🔧</a> <a href=\"https://github.com/JoshuaKGoldberg/are-docs-informative/commits?author=JoshuaKGoldberg\" title=\"Documentation\">📖</a> <a href=\"#infra-JoshuaKGoldberg\" title=\"Infrastructure (Hosting, Build-Tools, etc)\">🚇</a> <a href=\"https://github.com/JoshuaKGoldberg/are-docs-informative/commits?author=JoshuaKGoldberg\" title=\"Code\">💻</a> <a href=\"#content-JoshuaKGoldberg\" title=\"Content\">🖋</a> <a href=\"#ideas-JoshuaKGoldberg\" title=\"Ideas, Planning, & Feedback\">🤔</a> <a href=\"#maintenance-JoshuaKGoldberg\" title=\"Maintenance\">🚧</a> <a href=\"#projectManagement-JoshuaKGoldberg\" title=\"Project Management\">📆</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n<!-- spellchecker: enable -->\n\n> 💝 This package was templated with [`create-typescript-app`](https://github.com/JoshuaKGoldberg/create-typescript-app) using the [Bingo engine](https://create.bingo).\n","publish_time":1749729648684,"_cnpm_publish_time":1749729648684,"dist-tags":{"latest":"0.1.1"}}