@metamask/eslint-config-jest
Advanced tools
Comparing version 7.0.0 to 11.1.0
@@ -9,2 +9,34 @@ # Changelog | ||
## [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)) | ||
## [8.0.0] | ||
### Changed | ||
- **BREAKING:** The peer dependency `@metamask/eslint-config` has been updated from v7 to v8. | ||
## [7.0.0] | ||
@@ -20,3 +52,3 @@ ### Changed | ||
### 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)) | ||
@@ -28,4 +60,9 @@ - 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/v7.0.0...HEAD | ||
[Unreleased]: https://github.com/MetaMask/eslint-config/compare/v11.1.0...HEAD | ||
[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 | ||
[8.0.0]: https://github.com/MetaMask/eslint-config/compare/v7.0.0...v8.0.0 | ||
[7.0.0]: https://github.com/MetaMask/eslint-config/compare/v6.0.0...v7.0.0 | ||
[6.0.0]: https://github.com/MetaMask/eslint-config/releases/tag/v6.0.0 |
{ | ||
"name": "@metamask/eslint-config-jest", | ||
"version": "7.0.0", | ||
"version": "11.1.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": "^7.0.0", | ||
"eslint": "^7.23.0", | ||
"eslint-plugin-jest": "^24.1.3" | ||
"@metamask/auto-changelog": "^3.0.0", | ||
"@metamask/eslint-config": "^11.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": "^7.0.0", | ||
"eslint": "^7.23.0", | ||
"eslint-plugin-jest": "^24.1.3" | ||
"@metamask/eslint-config": "^11.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,10 +9,11 @@ # `@metamask/eslint-config-jest` | ||
yarn add --dev \ | ||
@metamask/eslint-config@^7.0.0 \ | ||
@metamask/eslint-config-jest@^7.0.0 \ | ||
eslint@^7.23.0 \ | ||
eslint-config-prettier@^8.1.0 \ | ||
eslint-plugin-import@^2.22.1 \ | ||
eslint-plugin-jest@^24.1.3 \ | ||
eslint-plugin-prettier@^3.3.1 \ | ||
prettier@^2.2.1 | ||
@metamask/eslint-config@^11.0.1 \ | ||
@metamask/eslint-config-jest@^11.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 \ | ||
prettier@^2.7.1 | ||
``` | ||
@@ -19,0 +20,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', |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8304
2951
36
9
1