![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@rosen-group/tslint-custom-rule-checkfortag
Advanced tools
Custom TsLint rule to find a Tag (specified by rule option) in typescript api documentation (e.g. JsDoc) comments
Custom TsLint Rule that is doing almost the same as the default deprecation rule. But the rule is not seaching for the @deprecation tag but for custom tags. These unwanted tags can be specifiedin the rule options.
The rule is available as a npm package. First install the package:
npm install --save-dev @rosen-group/tslint-custom-rule-checkfortag
Inside your tslint.json file include the directory with the rule:
"rulesDirectory": [
"node_modules/@rosen-group/tslint-custom-rule-checkfortag/dist/"
]
And add a rule for the Tag you want to avoid. Tags are specified as an array of strings:
"check-for-tag": {
"options": [
true,
["ContactArchitectureBeforeUse"]
],
"severity": "warning"
}
Or specify multiple unwanted tags:
"check-for-tag": {
"options": [
true,
["ContactArchitectureBeforeUse", "MarkedForDeletion"]
],
"severity": "warning"
}
Important notice: the short config form "check-for-tag": [true, ["ContactArchitectureBeforeUse"]]
is not supported yet!
To allow the usage of tags in some cases just use the default TsLint syntax:
/* tslint:disable:check-for-tag */
/**
* Demo method
* @param message Text to output
* @ContactArchitectureBeforeUse
*/
public helloWorld(message : string) : string {
return 'Hello '+message;
}
/* tslint:enable:check-for-tag */
FAQs
Custom TsLint rule to find a Tag (specified by rule option) in typescript api documentation (e.g. JsDoc) comments
We found that @rosen-group/tslint-custom-rule-checkfortag demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.