eslint-plugin-jest 27.1.6 β†’ 27.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -210,58 +210,59 @@ set to warn in.\
210
210
  πŸ’‘ Manually fixable by [editor suggestions](https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions).\
211
211
  ❌ Deprecated.
212
212
 
213
- | NameΒ Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β  | Description | πŸ’Ό | ⚠️ | πŸ”§ | πŸ’‘ | ❌ |
214
- | :--------------------------------------------------------------------------- | :------------------------------------------------------------------ | :-- | :-- | :-- | :-- | :-- |
215
- | [consistent-test-it](docs/rules/consistent-test-it.md) | Enforce `test` and `it` usage conventions | | | πŸ”§ | | |
216
- | [expect-expect](docs/rules/expect-expect.md) | Enforce assertion to be made in a test body | | βœ… | | | |
217
- | [max-expects](docs/rules/max-expects.md) | Enforces a maximum number assertion calls in a test body | | | | | |
218
- | [max-nested-describe](docs/rules/max-nested-describe.md) | Enforces a maximum depth to nested describe calls | | | | | |
219
- | [no-alias-methods](docs/rules/no-alias-methods.md) | Disallow alias methods | βœ… | 🎨 | πŸ”§ | | |
220
- | [no-commented-out-tests](docs/rules/no-commented-out-tests.md) | Disallow commented out tests | | βœ… | | | |
221
- | [no-conditional-expect](docs/rules/no-conditional-expect.md) | Disallow calling `expect` conditionally | βœ… | | | | |
222
- | [no-conditional-in-test](docs/rules/no-conditional-in-test.md) | Disallow conditional logic in tests | | | | | |
223
- | [no-deprecated-functions](docs/rules/no-deprecated-functions.md) | Disallow use of deprecated functions | βœ… | | πŸ”§ | | |
224
- | [no-disabled-tests](docs/rules/no-disabled-tests.md) | Disallow disabled tests | | βœ… | | | |
225
- | [no-done-callback](docs/rules/no-done-callback.md) | Disallow using a callback in asynchronous tests and hooks | βœ… | | | πŸ’‘ | |
226
- | [no-duplicate-hooks](docs/rules/no-duplicate-hooks.md) | Disallow duplicate setup and teardown hooks | | | | | |
227
- | [no-export](docs/rules/no-export.md) | Disallow using `exports` in files containing tests | βœ… | | | | |
228
- | [no-focused-tests](docs/rules/no-focused-tests.md) | Disallow focused tests | βœ… | | | πŸ’‘ | |
229
- | [no-hooks](docs/rules/no-hooks.md) | Disallow setup and teardown hooks | | | | | |
230
- | [no-identical-title](docs/rules/no-identical-title.md) | Disallow identical titles | βœ… | | | | |
231
- | [no-if](docs/rules/no-if.md) | Disallow conditional logic | | | | | ❌ |
232
- | [no-interpolation-in-snapshots](docs/rules/no-interpolation-in-snapshots.md) | Disallow string interpolation inside snapshots | βœ… | | | | |
233
- | [no-jasmine-globals](docs/rules/no-jasmine-globals.md) | Disallow Jasmine globals | βœ… | | πŸ”§ | | |
234
- | [no-large-snapshots](docs/rules/no-large-snapshots.md) | Disallow large snapshots | | | | | |
235
- | [no-mocks-import](docs/rules/no-mocks-import.md) | Disallow manually importing from `__mocks__` | βœ… | | | | |
236
- | [no-restricted-jest-methods](docs/rules/no-restricted-jest-methods.md) | Disallow specific `jest.` methods | | | | | |
237
- | [no-restricted-matchers](docs/rules/no-restricted-matchers.md) | Disallow specific matchers & modifiers | | | | | |
238
- | [no-standalone-expect](docs/rules/no-standalone-expect.md) | Disallow using `expect` outside of `it` or `test` blocks | βœ… | | | | |
239
- | [no-test-prefixes](docs/rules/no-test-prefixes.md) | Require using `.only` and `.skip` over `f` and `x` | βœ… | | πŸ”§ | | |
240
- | [no-test-return-statement](docs/rules/no-test-return-statement.md) | Disallow explicitly returning from tests | | | | | |
241
- | [prefer-called-with](docs/rules/prefer-called-with.md) | Suggest using `toBeCalledWith()` or `toHaveBeenCalledWith()` | | | | | |
242
- | [prefer-comparison-matcher](docs/rules/prefer-comparison-matcher.md) | Suggest using the built-in comparison matchers | | | πŸ”§ | | |
243
- | [prefer-each](docs/rules/prefer-each.md) | Prefer using `.each` rather than manual loops | | | | | |
244
- | [prefer-equality-matcher](docs/rules/prefer-equality-matcher.md) | Suggest using the built-in equality matchers | | | | πŸ’‘ | |
245
- | [prefer-expect-assertions](docs/rules/prefer-expect-assertions.md) | Suggest using `expect.assertions()` OR `expect.hasAssertions()` | | | | πŸ’‘ | |
246
- | [prefer-expect-resolves](docs/rules/prefer-expect-resolves.md) | Prefer `await expect(...).resolves` over `expect(await ...)` syntax | | | πŸ”§ | | |
247
- | [prefer-hooks-in-order](docs/rules/prefer-hooks-in-order.md) | Prefer having hooks in a consistent order | | | | | |
248
- | [prefer-hooks-on-top](docs/rules/prefer-hooks-on-top.md) | Suggest having hooks before any test cases | | | | | |
249
- | [prefer-lowercase-title](docs/rules/prefer-lowercase-title.md) | Enforce lowercase test names | | | πŸ”§ | | |
250
- | [prefer-mock-promise-shorthand](docs/rules/prefer-mock-promise-shorthand.md) | Prefer mock resolved/rejected shorthands for promises | | | πŸ”§ | | |
251
- | [prefer-snapshot-hint](docs/rules/prefer-snapshot-hint.md) | Prefer including a hint with external snapshots | | | | | |
252
- | [prefer-spy-on](docs/rules/prefer-spy-on.md) | Suggest using `jest.spyOn()` | | | πŸ”§ | | |
253
- | [prefer-strict-equal](docs/rules/prefer-strict-equal.md) | Suggest using `toStrictEqual()` | | | | πŸ’‘ | |
254
- | [prefer-to-be](docs/rules/prefer-to-be.md) | Suggest using `toBe()` for primitive literals | 🎨 | | πŸ”§ | | |
255
- | [prefer-to-contain](docs/rules/prefer-to-contain.md) | Suggest using `toContain()` | 🎨 | | πŸ”§ | | |
256
- | [prefer-to-have-length](docs/rules/prefer-to-have-length.md) | Suggest using `toHaveLength()` | 🎨 | | πŸ”§ | | |
257
- | [prefer-todo](docs/rules/prefer-todo.md) | Suggest using `test.todo` | | | πŸ”§ | | |
258
- | [require-hook](docs/rules/require-hook.md) | Require setup and teardown code to be within a hook | | | | | |
259
- | [require-to-throw-message](docs/rules/require-to-throw-message.md) | Require a message for `toThrow()` | | | | | |
260
- | [require-top-level-describe](docs/rules/require-top-level-describe.md) | Require test cases and hooks to be inside a `describe` block | | | | | |
261
- | [valid-describe-callback](docs/rules/valid-describe-callback.md) | Enforce valid `describe()` callback | βœ… | | | | |
262
- | [valid-expect](docs/rules/valid-expect.md) | Enforce valid `expect()` usage | βœ… | | | | |
263
- | [valid-expect-in-promise](docs/rules/valid-expect-in-promise.md) | Require promises that have expectations in their chain to be valid | βœ… | | | | |
264
- | [valid-title](docs/rules/valid-title.md) | Enforce valid titles | βœ… | | πŸ”§ | | |
213
+ | NameΒ Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β  | Description | πŸ’Ό | ⚠️ | πŸ”§ | πŸ’‘ | ❌ |
214
+ | :--------------------------------------------------------------------------- | :------------------------------------------------------------------------ | :-- | :-- | :-- | :-- | :-- |
215
+ | [consistent-test-it](docs/rules/consistent-test-it.md) | Enforce `test` and `it` usage conventions | | | πŸ”§ | | |
216
+ | [expect-expect](docs/rules/expect-expect.md) | Enforce assertion to be made in a test body | | βœ… | | | |
217
+ | [max-expects](docs/rules/max-expects.md) | Enforces a maximum number assertion calls in a test body | | | | | |
218
+ | [max-nested-describe](docs/rules/max-nested-describe.md) | Enforces a maximum depth to nested describe calls | | | | | |
219
+ | [no-alias-methods](docs/rules/no-alias-methods.md) | Disallow alias methods | βœ… | 🎨 | πŸ”§ | | |
220
+ | [no-commented-out-tests](docs/rules/no-commented-out-tests.md) | Disallow commented out tests | | βœ… | | | |
221
+ | [no-conditional-expect](docs/rules/no-conditional-expect.md) | Disallow calling `expect` conditionally | βœ… | | | | |
222
+ | [no-conditional-in-test](docs/rules/no-conditional-in-test.md) | Disallow conditional logic in tests | | | | | |
223
+ | [no-deprecated-functions](docs/rules/no-deprecated-functions.md) | Disallow use of deprecated functions | βœ… | | πŸ”§ | | |
224
+ | [no-disabled-tests](docs/rules/no-disabled-tests.md) | Disallow disabled tests | | βœ… | | | |
225
+ | [no-done-callback](docs/rules/no-done-callback.md) | Disallow using a callback in asynchronous tests and hooks | βœ… | | | πŸ’‘ | |
226
+ | [no-duplicate-hooks](docs/rules/no-duplicate-hooks.md) | Disallow duplicate setup and teardown hooks | | | | | |
227
+ | [no-export](docs/rules/no-export.md) | Disallow using `exports` in files containing tests | βœ… | | | | |
228
+ | [no-focused-tests](docs/rules/no-focused-tests.md) | Disallow focused tests | βœ… | | | πŸ’‘ | |
229
+ | [no-hooks](docs/rules/no-hooks.md) | Disallow setup and teardown hooks | | | | | |
230
+ | [no-identical-title](docs/rules/no-identical-title.md) | Disallow identical titles | βœ… | | | | |
231
+ | [no-if](docs/rules/no-if.md) | Disallow conditional logic | | | | | ❌ |
232
+ | [no-interpolation-in-snapshots](docs/rules/no-interpolation-in-snapshots.md) | Disallow string interpolation inside snapshots | βœ… | | | | |
233
+ | [no-jasmine-globals](docs/rules/no-jasmine-globals.md) | Disallow Jasmine globals | βœ… | | πŸ”§ | | |
234
+ | [no-large-snapshots](docs/rules/no-large-snapshots.md) | Disallow large snapshots | | | | | |
235
+ | [no-mocks-import](docs/rules/no-mocks-import.md) | Disallow manually importing from `__mocks__` | βœ… | | | | |
236
+ | [no-restricted-jest-methods](docs/rules/no-restricted-jest-methods.md) | Disallow specific `jest.` methods | | | | | |
237
+ | [no-restricted-matchers](docs/rules/no-restricted-matchers.md) | Disallow specific matchers & modifiers | | | | | |
238
+ | [no-standalone-expect](docs/rules/no-standalone-expect.md) | Disallow using `expect` outside of `it` or `test` blocks | βœ… | | | | |
239
+ | [no-test-prefixes](docs/rules/no-test-prefixes.md) | Require using `.only` and `.skip` over `f` and `x` | βœ… | | πŸ”§ | | |
240
+ | [no-test-return-statement](docs/rules/no-test-return-statement.md) | Disallow explicitly returning from tests | | | | | |
241
+ | [no-untyped-mock-factory](docs/rules/no-untyped-mock-factory.md) | Disallow using `jest.mock()` factories without an explicit type parameter | | | πŸ”§ | | |
242
+ | [prefer-called-with](docs/rules/prefer-called-with.md) | Suggest using `toBeCalledWith()` or `toHaveBeenCalledWith()` | | | | | |
243
+ | [prefer-comparison-matcher](docs/rules/prefer-comparison-matcher.md) | Suggest using the built-in comparison matchers | | | πŸ”§ | | |
244
+ | [prefer-each](docs/rules/prefer-each.md) | Prefer using `.each` rather than manual loops | | | | | |
245
+ | [prefer-equality-matcher](docs/rules/prefer-equality-matcher.md) | Suggest using the built-in equality matchers | | | | πŸ’‘ | |
246
+ | [prefer-expect-assertions](docs/rules/prefer-expect-assertions.md) | Suggest using `expect.assertions()` OR `expect.hasAssertions()` | | | | πŸ’‘ | |
247
+ | [prefer-expect-resolves](docs/rules/prefer-expect-resolves.md) | Prefer `await expect(...).resolves` over `expect(await ...)` syntax | | | πŸ”§ | | |
248
+ | [prefer-hooks-in-order](docs/rules/prefer-hooks-in-order.md) | Prefer having hooks in a consistent order | | | | | |
249
+ | [prefer-hooks-on-top](docs/rules/prefer-hooks-on-top.md) | Suggest having hooks before any test cases | | | | | |
250
+ | [prefer-lowercase-title](docs/rules/prefer-lowercase-title.md) | Enforce lowercase test names | | | πŸ”§ | | |
251
+ | [prefer-mock-promise-shorthand](docs/rules/prefer-mock-promise-shorthand.md) | Prefer mock resolved/rejected shorthands for promises | | | πŸ”§ | | |
252
+ | [prefer-snapshot-hint](docs/rules/prefer-snapshot-hint.md) | Prefer including a hint with external snapshots | | | | | |
253
+ | [prefer-spy-on](docs/rules/prefer-spy-on.md) | Suggest using `jest.spyOn()` | | | πŸ”§ | | |
254
+ | [prefer-strict-equal](docs/rules/prefer-strict-equal.md) | Suggest using `toStrictEqual()` | | | | πŸ’‘ | |
255
+ | [prefer-to-be](docs/rules/prefer-to-be.md) | Suggest using `toBe()` for primitive literals | 🎨 | | πŸ”§ | | |
256
+ | [prefer-to-contain](docs/rules/prefer-to-contain.md) | Suggest using `toContain()` | 🎨 | | πŸ”§ | | |
257
+ | [prefer-to-have-length](docs/rules/prefer-to-have-length.md) | Suggest using `toHaveLength()` | 🎨 | | πŸ”§ | | |
258
+ | [prefer-todo](docs/rules/prefer-todo.md) | Suggest using `test.todo` | | | πŸ”§ | | |
259
+ | [require-hook](docs/rules/require-hook.md) | Require setup and teardown code to be within a hook | | | | | |
260
+ | [require-to-throw-message](docs/rules/require-to-throw-message.md) | Require a message for `toThrow()` | | | | | |
261
+ | [require-top-level-describe](docs/rules/require-top-level-describe.md) | Require test cases and hooks to be inside a `describe` block | | | | | |
262
+ | [valid-describe-callback](docs/rules/valid-describe-callback.md) | Enforce valid `describe()` callback | βœ… | | | | |
263
+ | [valid-expect](docs/rules/valid-expect.md) | Enforce valid `expect()` usage | βœ… | | | | |
264
+ | [valid-expect-in-promise](docs/rules/valid-expect-in-promise.md) | Require promises that have expectations in their chain to be valid | βœ… | | | | |
265
+ | [valid-title](docs/rules/valid-title.md) | Enforce valid titles | βœ… | | πŸ”§ | | |
265
266
 
266
267
  ### Requires Type Checking
267
268
 
@@ -273,7 +274,7 @@ set to warn in.\
273
274
 
274
275
  In order to use the rules powered by TypeScript type-checking, you must be using
275
276
  `@typescript-eslint/parser` & adjust your eslint config as outlined
276
- [here](https://github.com/typescript-eslint/typescript-eslint/blob/main/docs/linting/TYPED_LINTING.md).
277
+ [here](https://typescript-eslint.io/linting/typed-linting).
277
278
 
278
279
  Note that unlike the type-checking rules in `@typescript-eslint/eslint-plugin`,
279
280
  the rules here will fallback to doing nothing if type information is not
@@ -1,7 +1,7 @@
1
1
  # Disallow conditional logic (`no-if`)
2
2
 
3
3
  ❌ This rule is deprecated. It was replaced by
4
- [`no-conditional-in-test`](no-conditional-in-test.md).
4
+ [`jest/no-conditional-in-test`](../../docs/rules/no-conditional-in-test.md).
5
5
 
6
6
  <!-- end auto-generated rule header -->
7
7
 
@@ -0,0 +1,72 @@
1
+ # Disallow using `jest.mock()` factories without an explicit type parameter (`no-untyped-mock-factory`)
2
+
3
+ πŸ”§ This rule is automatically fixable by the
4
+ [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix).
5
+
6
+ <!-- end auto-generated rule header -->
7
+
8
+ By default, `jest.mock` and `jest.doMock` allow any type to be returned by a
9
+ mock factory. A generic type parameter can be used to enforce that the factory
10
+ returns an object with the same shape as the original module, or some other
11
+ strict type. Requiring a type makes it easier to use TypeScript to catch changes
12
+ needed in test mocks when the source module changes.
13
+
14
+ > **Warning**
15
+ >
16
+ > This rule expects to be run on TypeScript files **only**. If you are using a
17
+ > codebase that has a mix of JavaScript and TypeScript tests, you can use
18
+ > [overrides](https://eslint.org/docs/latest/user-guide/configuring/configuration-files#how-do-overrides-work)
19
+ > to apply this rule to just your TypeScript test files.
20
+
21
+ ## Rule details
22
+
23
+ This rule triggers a warning if `mock()` or `doMock()` is used without a generic
24
+ type parameter or return type.
25
+
26
+ The following patterns are considered errors:
27
+
28
+ ```ts
29
+ jest.mock('../moduleName', () => {
30
+ return jest.fn(() => 42);
31
+ });
32
+
33
+ jest.mock('./module', () => ({
34
+ ...jest.requireActual('./module'),
35
+ foo: jest.fn(),
36
+ }));
37
+
38
+ jest.mock('random-num', () => {
39
+ return jest.fn(() => 42);
40
+ });
41
+ ```
42
+
43
+ The following patterns are not considered errors:
44
+
45
+ ```ts
46
+ // Uses typeof import()
47
+ jest.mock<typeof import('../moduleName')>('../moduleName', () => {
48
+ return jest.fn(() => 42);
49
+ });
50
+
51
+ jest.mock<typeof import('./module')>('./module', () => ({
52
+ ...jest.requireActual('./module'),
53
+ foo: jest.fn(),
54
+ }));
55
+
56
+ // Uses custom type
57
+ jest.mock<() => number>('random-num', () => {
58
+ return jest.fn(() => 42);
59
+ });
60
+
61
+ // No factory
62
+ jest.mock('random-num');
63
+
64
+ // Virtual mock
65
+ jest.mock(
66
+ '../moduleName',
67
+ () => {
68
+ return jest.fn(() => 42);
69
+ },
70
+ { virtual: true },
71
+ );
72
+ ```
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _utils = require("@typescript-eslint/utils");
8
+ var _utils2 = require("./utils");
9
+ const findModuleName = node => {
10
+ if (node.type === _utils.AST_NODE_TYPES.Literal && typeof node.value === 'string') {
11
+ return node;
12
+ }
13
+ return null;
14
+ };
15
+ var _default = (0, _utils2.createRule)({
16
+ name: __filename,
17
+ meta: {
18
+ docs: {
19
+ category: 'Best Practices',
20
+ description: 'Disallow using `jest.mock()` factories without an explicit type parameter',
21
+ recommended: false
22
+ },
23
+ messages: {
24
+ addTypeParameterToModuleMock: 'Add a type parameter to the mock factory such as `typeof import({{ moduleName }})`'
25
+ },
26
+ fixable: 'code',
27
+ schema: [],
28
+ type: 'suggestion'
29
+ },
30
+ defaultOptions: [],
31
+ create(context) {
32
+ return {
33
+ CallExpression(node) {
34
+ const {
35
+ callee,
36
+ typeParameters
37
+ } = node;
38
+ if (callee.type !== _utils.AST_NODE_TYPES.MemberExpression) {
39
+ return;
40
+ }
41
+ const {
42
+ property
43
+ } = callee;
44
+ if (node.arguments.length === 2 && (0, _utils2.isTypeOfJestFnCall)(node, context, ['jest']) && (0, _utils2.isSupportedAccessor)(property) && ['mock', 'doMock'].includes((0, _utils2.getAccessorValue)(property))) {
45
+ const [nameNode, factoryNode] = node.arguments;
46
+ const hasTypeParameter = typeParameters !== undefined && typeParameters.params.length > 0;
47
+ const hasReturnType = (0, _utils2.isFunction)(factoryNode) && factoryNode.returnType !== undefined;
48
+ if (hasTypeParameter || hasReturnType) {
49
+ return;
50
+ }
51
+ const moduleName = findModuleName(nameNode);
52
+ context.report({
53
+ messageId: 'addTypeParameterToModuleMock',
54
+ data: {
55
+ moduleName: (moduleName === null || moduleName === void 0 ? void 0 : moduleName.raw) ?? './module-name'
56
+ },
57
+ node,
58
+ fix(fixer) {
59
+ if (!moduleName) return [];
60
+ return [fixer.insertTextAfter(callee, `<typeof import(${moduleName.raw})>`)];
61
+ }
62
+ });
63
+ }
64
+ }
65
+ };
66
+ }
67
+ });
68
+ exports.default = _default;
@@ -28,6 +28,16 @@ const getJestFnCall = node => {
28
28
  }
29
29
  return getJestFnCall(obj);
30
30
  };
31
+ const getAutoFixMockImplementation = (jestFnCall, context) => {
32
+ var _jestFnCall$parent;
33
+ const hasMockImplementationAlready = ((_jestFnCall$parent = jestFnCall.parent) === null || _jestFnCall$parent === void 0 ? void 0 : _jestFnCall$parent.type) === _utils.AST_NODE_TYPES.MemberExpression && jestFnCall.parent.property.type === _utils.AST_NODE_TYPES.Identifier && jestFnCall.parent.property.name === 'mockImplementation';
34
+ if (hasMockImplementationAlready) {
35
+ return '';
36
+ }
37
+ const [arg] = jestFnCall.arguments;
38
+ const argSource = arg && context.getSourceCode().getText(arg);
39
+ return argSource ? `.mockImplementation(${argSource})` : '.mockImplementation()';
40
+ };
31
41
  var _default = (0, _utils2.createRule)({
32
42
  name: __filename,
33
43
  meta: {
@@ -58,10 +68,8 @@ var _default = (0, _utils2.createRule)({
58
68
  node,
59
69
  messageId: 'useJestSpyOn',
60
70
  fix(fixer) {
61
- const leftPropQuote = left.property.type === _utils.AST_NODE_TYPES.Identifier ? "'" : '';
62
- const [arg] = jestFnCall.arguments;
63
- const argSource = arg && context.getSourceCode().getText(arg);
64
- const mockImplementation = argSource ? `.mockImplementation(${argSource})` : '.mockImplementation()';
71
+ const leftPropQuote = left.property.type === _utils.AST_NODE_TYPES.Identifier && !left.computed ? "'" : '';
72
+ const mockImplementation = getAutoFixMockImplementation(jestFnCall, context);
65
73
  return [fixer.insertTextBefore(left, `jest.spyOn(`), fixer.replaceTextRange([left.object.range[1], left.property.range[0]], `, ${leftPropQuote}`), fixer.replaceTextRange([left.property.range[1], jestFnCall.range[1]], `${leftPropQuote})${mockImplementation}`)];
66
74
  }
67
75
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-jest",
3
- "version": "27.1.6",
3
+ "version": "27.2.0",
4
4
  "description": "ESLint rules for Jest",
5
5
  "keywords": [
6
6
  "eslint",
@@ -29,7 +29,7 @@
29
29
  "prettier:write": "prettier --write 'docs/**/*.md' README.md '.github/**' package.json tsconfig.json src/globals.json .yarnrc.yml",
30
30
  "postpublish": "pinst --enable",
31
31
  "test": "jest",
32
- "tools:regenerate-docs": "yarn prepack && eslint-doc-generator && yarn prettier:write",
32
+ "tools:regenerate-docs": "yarn prepack && eslint-doc-generator",
33
33
  "typecheck": "tsc -p ."
34
34
  },
35
35
  "commitlint": {
@@ -121,7 +121,7 @@
121
121
  "dedent": "^0.7.0",
122
122
  "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0",
123
123
  "eslint-config-prettier": "^8.3.0",
124
- "eslint-doc-generator": "^0.26.0",
124
+ "eslint-doc-generator": "^1.0.0",
125
125
  "eslint-plugin-eslint-comments": "^3.1.2",
126
126
  "eslint-plugin-eslint-plugin": "^5.0.6",
127
127
  "eslint-plugin-import": "^2.25.1",
@@ -155,7 +155,7 @@
155
155
  "optional": true
156
156
  }
157
157
  },
158
- "packageManager": "yarn@3.3.0",
158
+ "packageManager": "yarn@3.3.1",
159
159
  "engines": {
160
160
  "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
161
161
  }