Gathering detailed insights and metrics for eslint-plugin-require-exact-proptypes
Gathering detailed insights and metrics for eslint-plugin-require-exact-proptypes
Gathering detailed insights and metrics for eslint-plugin-require-exact-proptypes
Gathering detailed insights and metrics for eslint-plugin-require-exact-proptypes
This eslint plugin includes rules to enforce the usage of the prop-types-exact package published by Airbnb.
npm install eslint-plugin-require-exact-proptypes
Typescript
Module System
Min. Node Version
Node Version
NPM Version
54.6
Supply Chain
79.5
Quality
65.7
Maintenance
25
Vulnerability
97.6
License
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
2 Stars
11 Commits
1 Forks
1 Branches
1 Contributors
Updated on Apr 07, 2020
Latest Version
1.0.3
Package Id
eslint-plugin-require-exact-proptypes@1.0.3
Unpacked Size
9.95 kB
Size
3.02 kB
File Count
8
NPM Version
5.6.0
Node Version
9.6.1
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
2
3
An eslint plugin to enforce the usage of the prop-types-exact package by AirBnb.
Note on usage: This eslint rule requires that the prop-types-exact
package be imported as exact
1import React from 'react'; 2import PropTypes from 'prop-types'; 3import exact from 'prop-types-exact'; 4 5const Foo = props => <span>Bar is: { props.bar }</span>; 6 7Foo.propTypes = exact({ bar: PropTypes.string, }); 8 9export default Foo;
-- or --
1import React, { Component } from 'react'; 2import PropTypes from 'prop-types'; 3import exact from 'prop-types-exact'; 4 5export default class Foo extends Component { 6 7 static propTypes = exact({ bar: PropTypes.string }); 8 9 render() { 10 return <span>Bar is: { props.bar }</span>; 11 } 12}
1import React from 'react'; 2import PropTypes from 'prop-types'; 3 4const Foo = props => <span>Bar is: { props.bar }</span>; 5 6Foo.propTypes = { bar: PropTypes.string, }; 7 8export default Foo;
-- or --
1import React, { Component } from 'react'; 2import PropTypes from 'prop-types'; 3 4export default class Foo extends Component { 5 6 static propTypes = { bar: PropTypes.string }; 7 8 render() { 9 return <span>Bar is: { props.bar }</span>; 10 } 11}
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install eslint-plugin-require-exact-proptypes
:
$ npm install eslint-plugin-require-exact-proptypes --save-dev
Note: If you installed ESLint globally (using the -g
flag) then you must also install eslint-plugin-require-exact-proptypes
globally.
Add require-exact-proptypes
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
1{ 2 "plugins": [ 3 "require-exact-proptypes" 4 ] 5}
Then configure the rules you want to use under the rules section.
1{ 2 "rules": { 3 "require-exact-proptypes/require-exact-proptypes": 2 4 } 5}
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/7 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
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
39 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
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