
Security News
Official Go SDK for MCP in Development, Stable Release Expected in August
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.
eslint-plugin-license-header
Advanced tools
Rules to validate the presence of license headers in source files.
npm install eslint-plugin-license-header --save-dev
Add license-header
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"license-header"
]
}
When enabling the rule specify the license header template as a path:
{
"rules": {
"license-header/header": [ "error", "./resources/license-header.js" ]
}
}
Alternatively, specify the license header as raw text:
{
"rules": {
"license-header/header": [
"error",
[
"/***********************************************",
" * Copyright My Company",
" * Copyright " + new Date().getFullYear(),
" ***********************************************/",
]
]
}
}
In eslint@9
you can consume the library using a flat configuration, too:
import licenseHeader from "eslint-plugin-license-header";
export default [
{
files: '**/*.js',
plugins: {
'license-header': licenseHeader
},
rules: {
"license-header/header": ...
}
}
];
You may auto-fix your source files, adding or updating a given license header:
eslint --fix .
license-header/header
: checks a source file for the presence of a license header0.8.0
FEAT
: recognize SPDX-License-Identifier
headers (#21)FAQs
Validates the presence of a license header
The npm package eslint-plugin-license-header receives a total of 174,695 weekly downloads. As such, eslint-plugin-license-header popularity was classified as popular.
We found that eslint-plugin-license-header demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.
Security News
New research reveals that LLMs often fake understanding, passing benchmarks but failing to apply concepts or stay internally consistent.
Security News
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.