@lvce-editor/eslint-config 1.52.0 → 1.53.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 +8 -0
  2. package/package.json +8 -8
package/index.js CHANGED
@@ -145,6 +145,14 @@ const defaultConfig = tseslint.config(
145
145
  unstable_mockModule: "Don't use module mocks",
146
146
  },
147
147
  ],
148
+ 'no-restricted-syntax': [
149
+ 'error',
150
+
151
+ {
152
+ selector: "CallExpression[callee.type='MemberExpression'][callee.object.name='Promise'][callee.property.name='resolve']",
153
+ message: 'Dont use Promise resolve.',
154
+ },
155
+ ],
148
156
  },
149
157
  },
150
158
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/eslint-config",
3
- "version": "1.52.0",
3
+ "version": "1.53.0",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "types": "index.d.ts",
@@ -19,18 +19,18 @@
19
19
  "homepage": "https://github.com/lvce-editor/eslint-config#readme",
20
20
  "description": "",
21
21
  "dependencies": {
22
- "@eslint/css": "0.9.0",
23
- "@eslint/js": "9.30.0",
24
- "@eslint/json": "0.12.0",
25
- "@eslint/markdown": "6.6.0",
22
+ "@eslint/css": "0.10.0",
23
+ "@eslint/js": "9.31.0",
24
+ "@eslint/json": "0.13.0",
25
+ "@eslint/markdown": "7.0.0",
26
26
  "eslint-plugin-jest": "29.0.1",
27
- "eslint-plugin-n": "17.20.0",
28
- "eslint-plugin-package-json": "0.42.0",
27
+ "eslint-plugin-n": "17.21.0",
28
+ "eslint-plugin-package-json": "0.44.1",
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",
32
32
  "eslint-plugin-yml": "1.18.0",
33
- "typescript-eslint": "8.35.0"
33
+ "typescript-eslint": "8.36.0"
34
34
  },
35
35
  "peerDependencies": {
36
36
  "eslint": ">= 9"