
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
eslint-plugin-tsdoc
Advanced tools
This ESLint plugin provides a rule for validating that TypeScript doc comments conform to the TSDoc specification.
Configure ESLint for your TypeScript project. See the instructions provided by the typescript-eslint project. You will end up with some dependencies like this:
my-project/package.json (example)
{
"name": "my-project",
"version": "1.0.0",
"dependencies": {},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "~2.6.1",
"@typescript-eslint/parser": "~2.6.1",
"eslint": "~6.6.0",
"typescript": "~3.7.2"
},
"scripts": {
"lint": "eslint -f unix \"src/**/*.{ts,tsx}\""
}
}
Add the eslint-plugin-tsdoc
dependency to your project:
$ cd my-project
$ npm install --save-dev eslint-plugin-tsdoc
In your ESLint config file, add the "eslint-plugin-tsdoc"
package to your plugins
field,
and enable the "tsdoc/syntax"
rule. For example:
my-project/.eslintrc.js (example)
module.exports = {
plugins: [
"@typescript-eslint/eslint-plugin",
"eslint-plugin-tsdoc"
],
extends: [
'plugin:@typescript-eslint/recommended'
],
parser: '@typescript-eslint/parser',
parserOptions: {
project: "./tsconfig.json",
tsconfigRootDir: __dirname,
ecmaVersion: 2018,
sourceType: "module"
},
rules: {
"tsdoc/syntax": "warn"
}
};
This package is maintained by the TSDoc project. If you have questions or feedback, please let us know!
FAQs
An ESLint plugin that validates TypeScript doc comments
The npm package eslint-plugin-tsdoc receives a total of 576,422 weekly downloads. As such, eslint-plugin-tsdoc popularity was classified as popular.
We found that eslint-plugin-tsdoc demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.