{"id":22337968,"url":"https://github.com/fallaciousreasoning/eslint-plugin-licenses","last_synced_at":"2026-05-08T08:12:17.927Z","repository":{"id":65329803,"uuid":"561127105","full_name":"fallaciousreasoning/eslint-plugin-licenses","owner":"fallaciousreasoning","description":"An eslint plugin for detecting and generating missing license headers","archived":false,"fork":false,"pushed_at":"2026-03-03T21:50:28.000Z","size":160,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-03-04T01:41:23.881Z","etag":null,"topics":["eslint","eslint-plugin","eslint-rules","javascript","license","license-header","license-management","typescript"],"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/fallaciousreasoning.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2022-11-03T02:14:41.000Z","updated_at":"2026-03-03T21:50:32.000Z","dependencies_parsed_at":"2023-01-21T13:46:00.413Z","dependency_job_id":null,"html_url":"https://github.com/fallaciousreasoning/eslint-plugin-licenses","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fallaciousreasoning/eslint-plugin-licenses","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fallaciousreasoning%2Feslint-plugin-licenses","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fallaciousreasoning%2Feslint-plugin-licenses/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fallaciousreasoning%2Feslint-plugin-licenses/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fallaciousreasoning%2Feslint-plugin-licenses/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fallaciousreasoning","download_url":"https://codeload.github.com/fallaciousreasoning/eslint-plugin-licenses/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fallaciousreasoning%2Feslint-plugin-licenses/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32772170,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T02:36:36.067Z","status":"ssl_error","status_checked_at":"2026-05-08T02:36:07.210Z","response_time":54,"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":["eslint","eslint-plugin","eslint-rules","javascript","license","license-header","license-management","typescript"],"created_at":"2024-12-04T06:12:40.474Z","updated_at":"2026-05-08T08:12:17.901Z","avatar_url":"https://github.com/fallaciousreasoning.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eslint-plugin-licenses\n\nEnsures all source files have a license header\n\n## Installation\n\nYou'll first need to install [ESLint](https://eslint.org/):\n\n```sh\nnpm i eslint --save-dev\n```\n\nNext, install `eslint-plugin-licenses`:\n\n```sh\nnpm install eslint-plugin-licenses --save-dev\n```\n\n## Usage\n\nAdd `licenses` to the plugins section of your `.eslintrc` configuration file. You can omit the `eslint-plugin-` prefix:\n\n```json\n{\n    \"plugins\": [\n        \"licenses\"\n    ]\n}\n```\n\n\nThen configure the header you want to use\n\n```json\n{\n    \"rules\": {\n        \"licenses/header\": [\n            2,\n            {\n                \"comment\": \"line\",\n                \"header\": [\n                    \"Copyright (c) {YEAR} fallaciousreasoning. All rights reserved.\"\n                ]\n            }\n        ]\n    }\n}\n```\n\nThe {YEAR} placeholder will be generated as the current year when running `eslint --fix` and will match any year (including ones in the future).\n\nIf you have existing headers with different formats, you can add them as `altHeaders`\n\n```json\n{\n    \"rules\": {\n        \"licenses/header\": [\n            2,\n            {\n                \"comment\": \"line\",\n                \"header\": [\n                    \"Copyright (c) {YEAR} fallaciousreasoning. All rights reserved.\"\n                ],\n                \"altHeaders\": [\n                    {\n                        \"comment\": \"block\",\n                        \"header\": [\n                            \"\",\n                            \"Copyright (c) Me, always \u0026 forever\",\n                            \"\"\n                        ]\n                    }\n                ]\n            }\n        ]\n    }\n}\n```\n\nThis will match the headers\n\n```js\n// Copyright (c) 2022 fallaciousreasoning. All rights reserved\n```\n\nand\n\n```js\n/*\n * Copyright (c) Me, always \u0026 forever\n */\n```\n\nbut when generating fixes will use the first format.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffallaciousreasoning%2Feslint-plugin-licenses","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffallaciousreasoning%2Feslint-plugin-licenses","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffallaciousreasoning%2Feslint-plugin-licenses/lists"}