From 9d443f7659f50f490f1417b6d742e7562496f9d3 Mon Sep 17 00:00:00 2001 From: tclindner Date: Thu, 25 Jul 2019 21:12:01 -0500 Subject: [PATCH] Add no-large-snapshots rule for jest. Bump for v7 (#52) --- CHANGELOG.md | 11 +++++++++++ index.js | 1 + package-lock.json | 43 ++++++++++++------------------------------- package.json | 2 +- 4 files changed, 25 insertions(+), 32 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d47d293..3590fae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,15 @@ This project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] ### Added + +### Changed + +### Fixed + +### Removed + +## [7.0.0] - 2019-07-25 +### Added * [`eslint-plugin-jest`](/~https://github.com/jest-community/eslint-plugin-jest) with the following rules: * [`jest/no-alias-methods`](/~https://github.com/jest-community/eslint-plugin-jest/blob/master/docs/rules/no-alias-methods.md) @@ -19,6 +28,7 @@ This project adheres to [Semantic Versioning](http://semver.org/). * [`consistent-test-it`](/~https://github.com/jest-community/eslint-plugin-jest/blob/master/docs/rules/consistent-test-it.md) * [`no-commented-out-tests`](/~https://github.com/jest-community/eslint-plugin-jest/blob/master/docs/rules/no-commented-out-tests.md) * [`no-empty-title`](/~https://github.com/jest-community/eslint-plugin-jest/blob/master/docs/rules/no-empty-title.md) + * [`no-large-snapshots`](/~https://github.com/jest-community/eslint-plugin-jest/blob/master/docs/rules/no-large-snapshots.md) * [`no-test-callback`](/~https://github.com/jest-community/eslint-plugin-jest/blob/master/docs/rules/no-test-callback.md) * [`no-test-return-statement`](/~https://github.com/jest-community/eslint-plugin-jest/blob/master/docs/rules/no-test-return-statement.md) * [`no-truthy-falsy`](/~https://github.com/jest-community/eslint-plugin-jest/blob/master/docs/rules/no-truthy-falsy.md) @@ -28,6 +38,7 @@ This project adheres to [Semantic Versioning](http://semver.org/). * [`require-tothrow-message`](/~https://github.com/jest-community/eslint-plugin-jest/blob/master/docs/rules/require-tothrow-message.md) * [`prefer-todo`](/~https://github.com/jest-community/eslint-plugin-jest/blob/master/docs/rules/prefer-todo.md) + ### Changed ### Fixed diff --git a/index.js b/index.js index b7aee65..4bfb711 100644 --- a/index.js +++ b/index.js @@ -59,6 +59,7 @@ module.exports = { ], 'jest/no-commented-out-tests': 'error', 'jest/no-empty-title': 'error', + 'jest/no-large-snapshots': 'error', 'jest/no-test-callback': 'error', 'jest/no-test-return-statement': 'error', 'jest/no-truthy-falsy': 'error', diff --git a/package-lock.json b/package-lock.json index f978795..5be8d23 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "eslint-config-tc", - "version": "6.5.0", + "version": "7.0.0", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -2065,8 +2065,7 @@ "ansi-regex": { "version": "2.1.1", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "aproba": { "version": "1.2.0", @@ -2087,14 +2086,12 @@ "balanced-match": { "version": "1.0.0", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "brace-expansion": { "version": "1.1.11", "bundled": true, "dev": true, - "optional": true, "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -2109,20 +2106,17 @@ "code-point-at": { "version": "1.1.0", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "concat-map": { "version": "0.0.1", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "console-control-strings": { "version": "1.1.0", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "core-util-is": { "version": "1.0.2", @@ -2239,8 +2233,7 @@ "inherits": { "version": "2.0.3", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "ini": { "version": "1.3.5", @@ -2252,7 +2245,6 @@ "version": "1.0.0", "bundled": true, "dev": true, - "optional": true, "requires": { "number-is-nan": "^1.0.0" } @@ -2267,7 +2259,6 @@ "version": "3.0.4", "bundled": true, "dev": true, - "optional": true, "requires": { "brace-expansion": "^1.1.7" } @@ -2275,14 +2266,12 @@ "minimist": { "version": "0.0.8", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "minipass": { "version": "2.3.5", "bundled": true, "dev": true, - "optional": true, "requires": { "safe-buffer": "^5.1.2", "yallist": "^3.0.0" @@ -2301,7 +2290,6 @@ "version": "0.5.1", "bundled": true, "dev": true, - "optional": true, "requires": { "minimist": "0.0.8" } @@ -2382,8 +2370,7 @@ "number-is-nan": { "version": "1.0.1", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "object-assign": { "version": "4.1.1", @@ -2395,7 +2382,6 @@ "version": "1.4.0", "bundled": true, "dev": true, - "optional": true, "requires": { "wrappy": "1" } @@ -2481,8 +2467,7 @@ "safe-buffer": { "version": "5.1.2", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "safer-buffer": { "version": "2.1.2", @@ -2518,7 +2503,6 @@ "version": "1.0.2", "bundled": true, "dev": true, - "optional": true, "requires": { "code-point-at": "^1.0.0", "is-fullwidth-code-point": "^1.0.0", @@ -2538,7 +2522,6 @@ "version": "3.0.1", "bundled": true, "dev": true, - "optional": true, "requires": { "ansi-regex": "^2.0.0" } @@ -2582,14 +2565,12 @@ "wrappy": { "version": "1.0.2", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "yallist": { "version": "3.0.3", "bundled": true, - "dev": true, - "optional": true + "dev": true } } }, diff --git a/package.json b/package.json index 5660c3e..dcbbcc0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "eslint-config-tc", - "version": "6.5.0", + "version": "7.0.0", "description": "ESLint shareable config for JavaScript projects", "keywords": [ "eslintconfig",