@lvce-editor/eslint-config 1.51.0 → 1.52.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.
Files changed (2) hide show
  1. package/index.js +7 -0
  2. package/package.json +3 -3
package/index.js CHANGED
@@ -138,6 +138,13 @@ const defaultConfig = tseslint.config(
138
138
  rules: {
139
139
  '@typescript-eslint/only-throw-error': 'off',
140
140
  '@typescript-eslint/prefer-promise-reject-errors': 'off',
141
+ 'jest/no-restricted-jest-methods': [
142
+ 'error',
143
+ {
144
+ advanceTimersByTime: `Don't use timers`,
145
+ unstable_mockModule: "Don't use module mocks",
146
+ },
147
+ ],
141
148
  },
142
149
  },
143
150
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/eslint-config",
3
- "version": "1.51.0",
3
+ "version": "1.52.0",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "types": "index.d.ts",
@@ -20,12 +20,12 @@
20
20
  "description": "",
21
21
  "dependencies": {
22
22
  "@eslint/css": "0.9.0",
23
- "@eslint/js": "9.29.0",
23
+ "@eslint/js": "9.30.0",
24
24
  "@eslint/json": "0.12.0",
25
25
  "@eslint/markdown": "6.6.0",
26
26
  "eslint-plugin-jest": "29.0.1",
27
27
  "eslint-plugin-n": "17.20.0",
28
- "eslint-plugin-package-json": "0.41.0",
28
+ "eslint-plugin-package-json": "0.42.0",
29
29
  "eslint-plugin-perfectionist": "4.15.0",
30
30
  "eslint-plugin-project-structure": "3.13.3",
31
31
  "eslint-plugin-unicorn": "59.0.1",