{"id":28233496,"url":"https://github.com/logdna/eslint-plugin-logdna","last_synced_at":"2026-01-20T18:10:07.001Z","repository":{"id":52944737,"uuid":"306684194","full_name":"logdna/eslint-plugin-logdna","owner":"logdna","description":"ESlint plugin containing a collection of rules for enforcing code style at LogDNA","archived":false,"fork":false,"pushed_at":"2023-10-20T21:13:36.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":5,"subscribers_count":20,"default_branch":"main","last_synced_at":"2025-08-09T05:48:21.836Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/logdna.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-10-23T16:03:21.000Z","updated_at":"2022-09-17T06:49:54.000Z","dependencies_parsed_at":"2022-09-14T15:02:09.249Z","dependency_job_id":null,"html_url":"https://github.com/logdna/eslint-plugin-logdna","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/logdna/eslint-plugin-logdna","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logdna%2Feslint-plugin-logdna","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logdna%2Feslint-plugin-logdna/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logdna%2Feslint-plugin-logdna/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logdna%2Feslint-plugin-logdna/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/logdna","download_url":"https://codeload.github.com/logdna/eslint-plugin-logdna/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logdna%2Feslint-plugin-logdna/sbom","scorecard":{"id":597146,"data":{"date":"2025-08-11","repo":{"name":"github.com/logdna/eslint-plugin-logdna","commit":"1ec8e9c653bfa70a42c6d7669e95b348d7732d46"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.6,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":4,"reason":"Found 4/9 approved changesets -- score normalized to 4","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v2.0.1 not signed: https://api.github.com/repos/logdna/eslint-plugin-logdna/releases/77447850","Warn: release artifact v2.0.0 not signed: https://api.github.com/repos/logdna/eslint-plugin-logdna/releases/41304343","Warn: release artifact v1.0.1 not signed: https://api.github.com/repos/logdna/eslint-plugin-logdna/releases/38131500","Warn: release artifact v2.0.1 does not have provenance: https://api.github.com/repos/logdna/eslint-plugin-logdna/releases/77447850","Warn: release artifact v2.0.0 does not have provenance: https://api.github.com/repos/logdna/eslint-plugin-logdna/releases/41304343","Warn: release artifact v1.0.1 does not have provenance: https://api.github.com/repos/logdna/eslint-plugin-logdna/releases/38131500"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 8 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-20T23:25:20.383Z","repository_id":52944737,"created_at":"2025-08-20T23:25:20.383Z","updated_at":"2025-08-20T23:25:20.383Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28608174,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T16:10:39.856Z","status":"ssl_error","status_checked_at":"2026-01-20T16:10:39.493Z","response_time":117,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-05-18T21:10:10.926Z","updated_at":"2026-01-20T18:10:06.995Z","avatar_url":"https://github.com/logdna.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `eslint-plugin-logdna`\n\u003c!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section --\u003e\n[![All Contributors](https://img.shields.io/badge/all_contributors-1-orange.svg?style=flat-square)](#contributors-)\n\u003c!-- ALL-CONTRIBUTORS-BADGE:END --\u003e\n\n\u003e ESlint plugin containing a collection of rules for enforcing code style at LogDNA\n\n## Installation\n\n**Requires eslint also**\n\nWe do not use peer dependencies, so make sure that `eslint` is also installed as a dev dependency.\n\n```shell\nnpm install eslint-plugin-logdna eslint --save-dev\n```\n\n## Usage\n\nAdd `logdna` to the plugins section of your ESLint configuration. You can omit \nthe `eslint-plugin-` prefix. Then you can configure the rules you want to use:\n\n```json\n{\n  \"plugins\": [\n    \"logdna\"\n  ],\n  \"rules\": {\n    \"logdna/grouped-require\": 2,\n    \"logdna/require-file-extension\": 2,\n    \"logdna/tap-no-deprecated-aliases\": 2,\n    \"logdna/tap-consistent-assertions\": [2, {\n      \"preferredMap\": {\n        \"error\": \"error\",\n        \"equal\": \"strictEqual\",\n      }\n    }]\n  }\n}\n```\n\n## Rules\n\n### `logdna/grouped-require`\n\n\u003e Enforce sorted require declarations within modules\n\n```js\n// Bad\nconst foo = require('./lib/foo.js') //local\nconst http = require('http') // builtin\nrequire('foo') // static\nconst logger = require('@logdna/logger') // scoped\nconst tap = require('tap') // contrib\n\n// Good\nrequire('foo') // static\nconst http = require('http') // builtin\nconst tap = require('tap') // contrib\nconst logger = require('@logdna/logger') // scoped\nconst foo = require('./lib/foo.js') //local\n```\n\n#### Options\n\n* `typeOrder` [`\u003cArray\u003e`][] - sort order of require types \n(default: `['static', 'builtin', 'contrib', 'scoped', 'local']`)\n\n### `logdna/tap-no-deprecated-aliases`\n\n\u003e Prevent usage of deprecated tap aliases (\u003e= tap@15.0.0)\n\nTap deprecated assertion aliases as of version [`15.0.0`](https://node-tap.org/changelog/#150---2021-03-30). \nThis rule supersedes `logdna/tap-consistent-assertions` and will enforce the use of unaliased\nassertion methods.  \n\n```js\n// Bad\ntest('foo', async (t) =\u003e {\n  t.is_equal(1, 1)\n  t.strictEqual(1, 1)\n  t.identical(1, 1)\n})\n\n// Good\ntest('foo', async (t) =\u003e {\n  t.equal(1, 1)\n  t.equal(1, 1)\n  t.equal(1, 1)\n})\n```\n\n#### Options\n* `calleePattern` [`\u003cString\u003e`][] - pattern to match for tap's `Test` object (default: `/^t+$/`)\n\n### [**Deprecated**] `logdna/tap-consistent-assertions`\n\n\u003e Enforce consistent aliases for tap assertions\n\n```js\n// {\n//   \"plugins\": [\n//     \"logdna\"\n//   ],\n//   \"rules\": {\n//     \"logdna/tap-consistent-assertions\": {\n//       \"preferredMap\": {\n//         \"equal\": \"strictEqual\"\n//       }\n//     }\n//   }\n// }\n\n// Bad\ntest('foo', async (t) =\u003e {\n  t.is_equal(1, 1)\n  t.equal(1, 1)\n  t.identical(1, 1)\n})\n\n// Good\ntest('foo', async (t) =\u003e {\n  t.strictEqual(1, 1)\n  t.strictEqual(1, 1)\n  t.strictEqual(1, 1)\n})\n```\n\n#### Options\n* `preferredMap` [`\u003cObject\u003e`][] -  maps the \"primary\" assertion method to the preferred alias\n* `calleePattern` [`\u003cString\u003e`][] - pattern to match for tap's `Test` object (default: `/^t+$/`)\n\n### `logdna/require-file-extension`\n\n\u003e Enforce file extension for local modules/files\n\n```js\n// Bad\nconst foo = require('./lib/foo')\n\n// Good\nconst foo = require('./lib/foo.js')\n```\n\n## Contributors ✨\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\u003c!-- prettier-ignore-start --\u003e\n\u003c!-- markdownlint-disable --\u003e\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://github.com/mdeltito\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/69520?v=4?s=100\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eMike Del Tito\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/logdna/eslint-plugin-logdna/commits?author=mdeltito\" title=\"Code\"\u003e💻\u003c/a\u003e \u003ca href=\"https://github.com/logdna/eslint-plugin-logdna/commits?author=mdeltito\" title=\"Documentation\"\u003e📖\u003c/a\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n\u003c!-- markdownlint-restore --\u003e\n\u003c!-- prettier-ignore-end --\u003e\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n\nThis project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!\n\n## License\n\nCopyright © [LogDNA](https://logdna.com), released under an MIT license. See the [LICENSE](./LICENSE) file and https://opensource.org/licenses/MIT\n\n*Happy Logging!*\n\n[`\u003cObject\u003e`]: https://mdn.io/object\n[`\u003cString\u003e`]: https://mdn.io/string\n[`\u003cArray\u003e`]: https://mdn.io/array\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flogdna%2Feslint-plugin-logdna","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flogdna%2Feslint-plugin-logdna","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flogdna%2Feslint-plugin-logdna/lists"}