Gathering detailed insights and metrics for eslint-plugin-jest-formatting
Gathering detailed insights and metrics for eslint-plugin-jest-formatting
Gathering detailed insights and metrics for eslint-plugin-jest-formatting
Gathering detailed insights and metrics for eslint-plugin-jest-formatting
eslint-plugin-jest
ESLint rules for Jest
eslint-config-react-app
ESLint configuration used by Create React App
eslint-plugin-jest-dom
ESLint plugin to follow best practices and anticipate common mistakes when writing tests with jest-dom
@vue/eslint-config-prettier
eslint-config-prettier for create-vue
ESLint rules for formatting test suites written for jest.
npm install eslint-plugin-jest-formatting
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
156 Stars
117 Commits
13 Forks
4 Watching
2 Branches
12 Contributors
Updated on 21 Nov 2024
JavaScript (52.17%)
TypeScript (47.83%)
Cumulative downloads
Total Downloads
Last day
-3.2%
111,306
Compared to previous day
Last week
5.4%
590,697
Compared to previous week
Last month
7.9%
2,536,036
Compared to previous month
Last year
17.6%
26,774,651
Compared to previous year
1
17
This package provides ESLint rules for jest test suites.
This project aims to provide formatting rules (auto-fixable where possible) to ensure consistency and readability in jest test suites.
Like this plugin? Say thanks with a ⭐️
Note: The master version may not be the version deployed to npm. Please treat https://www.npmjs.com/package/eslint-plugin-jest-formatting as the cannonical source for docs.
You'll first need to install ESLint:
$ yarn add eslint --dev
Next, install eslint-plugin-jest-formatting
:
$ yarn add eslint-plugin-jest-formatting --dev
Note: If you installed ESLint globally (using the -g
flag) then you must also install eslint-plugin-jest-formatting
globally.
Add jest-formatting
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
1{ 2 "plugins": ["jest-formatting"] 3}
Then configure the rules you want to use under the rules section.
1{ 2 "rules": { 3 "jest-formatting/padding-around-describe-blocks": 2, 4 "jest-formatting/padding-around-test-blocks": 2 5 } 6}
or
You can use our "recommended" settings which enables most of the rules for you
1{ 2 "extends": ["plugin:jest-formatting/recommended"] 3}
We also support a "strict" settings which enabled all of the rules for you
1{ 2 "extends": ["plugin:jest-formatting/strict"] 3}
This provides an extensive set of jest eslint rules
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
Found 13/16 approved changesets -- score normalized to 8
Reason
SAST tool detected but not run on all commits
Details
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
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
10 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-25
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