Installations
npm install eslint-plugin-require-jsdoc-except
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
14.8.0
NPM Version
6.14.7
Score
64
Supply Chain
85.6
Quality
70.3
Maintenance
100
Vulnerability
96.4
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Developer
MaienM
Download Statistics
Total Downloads
261,379
Last Day
71
Last Week
295
Last Month
1,517
Last Year
18,915
GitHub Statistics
10 Stars
16 Commits
5 Forks
3 Watching
5 Branches
2 Contributors
Bundle Size
7.88 kB
Minified
3.05 kB
Minified + Gzipped
Package Meta Information
Latest Version
1.5.0
Package Id
eslint-plugin-require-jsdoc-except@1.5.0
Unpacked Size
46.36 kB
Size
14.98 kB
File Count
11
NPM Version
6.14.7
Node Version
14.8.0
Total Downloads
Cumulative downloads
Total Downloads
261,379
Last day
6%
71
Compared to previous day
Last week
-22.2%
295
Compared to previous week
Last month
64.4%
1,517
Compared to previous month
Last year
-43%
18,915
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
2
Peer Dependencies
1
Dev Dependencies
3
eslint-plugin-require-jsdoc-except
This is a modified version of the built-in eslint rule require-jsdoc that allows you to exclude certain methods from requiring a JSDoc.
The rationale is that when using a framework such as React, there will be certain recurring method about which no useful docs can be made. There is no real point in describing each render method as "Renders the component", and any more than that will often just be a duplication of the component's JSDoc.
Installation
You'll first need to install ESLint:
npm install eslint --save-dev
Next, install eslint-plugin-require-jsdoc-except
:
npm install eslint-plugin-require-jsdoc-except --save-dev
Note: If you installed ESLint globally (using the -g
flag) then you must also install
eslint-plugin-require-jsdoc-except
globally.
Usage
Add require-jsdoc-except
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
1{ 2 "plugins": [ 3 "require-jsdoc-except" 4 ] 5}
Then configure the rule. The main usage is as the built-in eslint rule
require-jsdoc. In addition, this plugin adds a second option to the
option object: ignore
. This accepts a list of names for which the JSDoc requirement should not be enforced.
The following example would require all named functions to be documented, except for class constructors (or other functions named constructor).
1{ 2 "rules": { 3 "require-jsdoc-except/require-jsdoc": ["error", { 4 "require": { 5 "FunctionDeclaration": true, 6 "MethodDefinition": true, 7 "ClassDeclaration": true, 8 "ArrowFunctionExpression": true, 9 "FunctionExpression": true 10 }, 11 "ignore": ["constructor"], 12 }], 13 } 14}
NOTE: You may also need to disable the old require-jsdoc
, as this will essentially replace it. If you do not, then
both rules will be running at the same time.
{
"rules": {
"require-jsdoc": "off",
}
}
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
Found 1/16 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 1 are checked with a SAST tool
Reason
13 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92
- Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c
- Warn: Project is vulnerable to: GHSA-ww39-953v-wcq6
- Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw
- Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9
- Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm
- Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3
- Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h
- Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9
- Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw
- Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7
Score
1.7
/10
Last Scanned on 2025-01-27
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More