Socket
Socket
Sign inDemoInstall

@metamask/eslint-config-jest

Package Overview
Dependencies
Maintainers
9
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@metamask/eslint-config-jest - npm Package Compare versions

Comparing version 9.0.0 to 12.0.0

40

CHANGELOG.md

@@ -9,7 +9,37 @@ # Changelog

## [12.0.0]
### Changed
- **BREAKING:** Update peer dependency `@metamask/eslint-config` to v12
## [11.1.0]
### Changed
- Exclude test files from package ([#266](https://github.com/MetaMask/eslint-config/pull/266))
## [11.0.0]
### Changed
- **BREAKING:** Bump all ESLint dependencies to the latest version ([#252](https://github.com/MetaMask/eslint-config/pull/252))
- This includes peer dependencies.
## [10.0.0]
### Changed
- **BREAKING:** Update ESLint from v7 to v8 ([#233](https://github.com/MetaMask/eslint-config/pull/233))
- This is breaking because `eslint` is a `peerDependency`.
- Four new rules have been added:
- [`no-loss-of-precision`](https://eslint.org/docs/latest/rules/no-loss-of-precision)
- [`no-nonoctal-decimal-escape`](https://eslint.org/docs/latest/rules/no-nonoctal-decimal-escape)
- [`no-unsafe-optional-chaining`](https://eslint.org/docs/latest/rules/no-unsafe-optional-chaining)
- [`no-useless-backreference`](https://eslint.org/docs/latest/rules/no-useless-backreference)
- **BREAKING:** Bump eslint-plugin-jest to ^26.x ([#228](https://github.com/MetaMask/eslint-config/pull/228))
- This is breaking because `eslint-plugin-jest` is a `peerDependency`
- The rule [`jest/prefer-to-be`](https://github.com/jest-community/eslint-plugin-jest/blob/main/docs/rules/prefer-to-be.md) has replaced the old rules `jest/prefer-to-be-null` and `jest/prefer-to-be-undefined`. This is breaking because it is more broadly applicable than the two it replaces, and may force us to use `toBe` for all primatives (over `toBeEqual` or equivalent).
- Two rules were renamed (`jest/valid-describe` => `jest/valid-describe-callback`, and `jest/lowercase-name` => `jest/prefer-lowercase-title`)
- **BREAKING:** Update minimium Node.js version to v14 ([#225](https://github.com/MetaMask/eslint-config/pull/225))
## [9.0.0]
### Added
- **BREAKING** Add JSDoc ESLint rules ([#203](https://github.com/MetaMask/eslint-config/pull/203))
- **BREAKING:** Add JSDoc ESLint rules ([#203](https://github.com/MetaMask/eslint-config/pull/203))
## [8.0.0]
### Changed
- **BREAKING:** The peer dependency `@metamask/eslint-config` has been updated from v7 to v8.

@@ -26,3 +56,3 @@ ## [7.0.0]

### Changed
- **(BREAKING)** Set minimum Node.js version to `^12.0.0` ([#144](https://github.com/MetaMask/eslint-config/pull/144))
- **BREAKING:** Set minimum Node.js version to `^12.0.0` ([#144](https://github.com/MetaMask/eslint-config/pull/144))
- Publish this config as its own package ([#141](https://github.com/MetaMask/eslint-config/pull/141))

@@ -34,3 +64,7 @@ - The contents of this package were previously published as part of [`@metamask/eslint-config`](https://npmjs.com/package/@metamask/eslint-config).

[Unreleased]: https://github.com/MetaMask/eslint-config/compare/v9.0.0...HEAD
[Unreleased]: https://github.com/MetaMask/eslint-config/compare/v12.0.0...HEAD
[12.0.0]: https://github.com/MetaMask/eslint-config/compare/v11.1.0...v12.0.0
[11.1.0]: https://github.com/MetaMask/eslint-config/compare/v11.0.0...v11.1.0
[11.0.0]: https://github.com/MetaMask/eslint-config/compare/v10.0.0...v11.0.0
[10.0.0]: https://github.com/MetaMask/eslint-config/compare/v9.0.0...v10.0.0
[9.0.0]: https://github.com/MetaMask/eslint-config/compare/v8.0.0...v9.0.0

@@ -37,0 +71,0 @@ [8.0.0]: https://github.com/MetaMask/eslint-config/compare/v7.0.0...v8.0.0

58

package.json
{
"name": "@metamask/eslint-config-jest",
"version": "9.0.0",
"version": "12.0.0",
"description": "Shareable MetaMask ESLint config for Jest.",
"main": "src/index.js",
"publishConfig": {
"registry": "https://registry.npmjs.org/",
"access": "public"
"homepage": "https://github.com/MetaMask/eslint-config#readme",
"bugs": {
"url": "https://github.com/MetaMask/eslint-config/issues"
},
"files": [
"src/"
],
"engines": {
"node": ">=12.0.0"
},
"scripts": {
"test": "eslint .",
"publish": "npm publish"
},
"repository": {

@@ -25,16 +14,35 @@ "type": "git",

"license": "MIT",
"bugs": {
"url": "https://github.com/MetaMask/eslint-config/issues"
"main": "src/index.js",
"files": [
"src/",
"!src/**/*.test.js"
],
"scripts": {
"lint:changelog": "auto-changelog validate",
"publish": "npm publish",
"test": "eslint ."
},
"homepage": "https://github.com/MetaMask/eslint-config#readme",
"devDependencies": {
"@metamask/eslint-config": "^9.0.0",
"eslint": "^7.23.0",
"eslint-plugin-jest": "^24.1.3"
"@metamask/auto-changelog": "^3.0.0",
"@metamask/eslint-config": "^12.0.0",
"eslint": "^8.27.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jest": "^27.1.5",
"eslint-plugin-jsdoc": "^39.6.2",
"eslint-plugin-prettier": "^4.2.1",
"prettier": "^2.7.1"
},
"peerDependencies": {
"@metamask/eslint-config": "^9.0.0",
"eslint": "^7.23.0",
"eslint-plugin-jest": "^24.1.3"
"@metamask/eslint-config": "^12.0.0",
"eslint": "^8.27.0",
"eslint-plugin-jest": "^27.1.5"
},
"engines": {
"node": ">=14.0.0"
},
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org/"
}
}
}

@@ -9,11 +9,12 @@ # `@metamask/eslint-config-jest`

yarn add --dev \
@metamask/eslint-config@^9.0.0 \
@metamask/eslint-config-jest@^9.0.0 \
eslint@^7.23.0 \
eslint-config-prettier@^8.1.0 \
eslint-plugin-import@^2.22.1 \
eslint-plugin-jsdoc@^36.1.0 \
eslint-plugin-jest@^24.1.3 \
eslint-plugin-prettier@^3.3.1 \
prettier@^2.2.1
@metamask/eslint-config@^12.0.0 \
@metamask/eslint-config-jest@^12.0.0 \
eslint@^8.27.0 \
eslint-config-prettier@^8.5.0 \
eslint-plugin-import@^2.26.0 \
eslint-plugin-jsdoc@^39.6.2 \
eslint-plugin-jest@^27.1.5 \
eslint-plugin-prettier@^4.2.1 \
eslint-plugin-promise@^6.1.1 \
prettier@^2.7.1
```

@@ -20,0 +21,0 @@

@@ -12,3 +12,2 @@ module.exports = {

'jest/consistent-test-it': ['error', { fn: 'it' }],
'jest/lowercase-name': ['error', { ignore: ['describe'] }],
'jest/no-duplicate-hooks': 'error',

@@ -18,2 +17,3 @@ 'jest/no-if': 'error',

'jest/prefer-hooks-on-top': 'error',
'jest/prefer-lowercase-title': ['error', { ignore: ['describe'] }],
'jest/prefer-spy-on': 'error',

@@ -20,0 +20,0 @@ 'jest/prefer-strict-equal': 'error',

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc