We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It would be really nice, if it would be possible to automatically add e.g. current year instead of using hard coded values.
In VSCode there is the possibility to use e.g. $CURRENT_YEAR in the snippets.
$CURRENT_YEAR
The text was updated successfully, but these errors were encountered:
You can do this with a template and a variable:
// eslintrc.js const year = new Date().getFullYear() module.exports = () => { "rules": { "header/header": [2, "block", [ {"pattern": " Copyright \\d{4}", "template": ` Copyright ${year}`}, "My Company" ]] } }
Sorry, something went wrong.
An ideal way to get the information needed for a proper copyright statement would be to analyze git history for the file.
No branches or pull requests
It would be really nice, if it would be possible to automatically add e.g. current year instead of using hard coded values.
In VSCode there is the possibility to use e.g.
$CURRENT_YEAR
in the snippets.The text was updated successfully, but these errors were encountered: