Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
@side/eslint-config-jest
Advanced tools
An ESLint configuration which enables lint rules for Jest tests.
An ESLint configuration which enables lint rules for Jest tests.
Install this package, and ensure you have installed its peer dependencies.
yarn info @side/eslint-config-jest peerDependencies
yarn add -D @side/eslint-config-jest
Once all peer dependencies have been added to your project, extend this configuration in your project's .eslintrc.js
.
.eslintrc.js
module.exports = {
overrides: [
{
files: [
'**/__tests__/**',
'**/__mocks__/**',
'test.{js,jsx}',
'test-*.{js,jsx}',
'**/*{.,_}{test,spec}.{js,jsx}',
],
// Make sure you exclude any paths where Cypress tests are located
excludedFiles: ['**/cypress/**/*.js'],
extends: ['@side/jest'],
},
],
};
Note: Make sure to extend this as an override so you can specify the exact Jest test files you want these rules to be run against. Please reference the eslint-plugin-jest documentation for more details.
FAQs
An ESLint configuration which enables lint rules for Jest tests.
The npm package @side/eslint-config-jest receives a total of 984 weekly downloads. As such, @side/eslint-config-jest popularity was classified as not popular.
We found that @side/eslint-config-jest demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.