@lvce-editor/eslint-config 10.2.0 → 10.5.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 +15 -0
  2. package/package.json +9 -9
package/index.js CHANGED
@@ -376,6 +376,21 @@ const defaultConfig = tseslint.config(
376
376
  {
377
377
  files: ['**/*.ts'],
378
378
  rules: {
379
+ 'no-restricted-syntax': [
380
+ 'error',
381
+ {
382
+ selector: "CallExpression[callee.type='MemberExpression'][callee.object.name='Reflect'][callee.property.name='get']",
383
+ message: "Don't use Reflect.get.",
384
+ },
385
+ {
386
+ selector: "CallExpression[callee.type='MemberExpression'][callee.object.name='Reflect'][callee.property.name='deleteProperty']",
387
+ message: "Don't use Reflect.deleteProperty.",
388
+ },
389
+ {
390
+ selector: "NewExpression[callee.name='Proxy']",
391
+ message: "Don't use Proxy.",
392
+ },
393
+ ],
379
394
  'unicorn/filename-case': 'off',
380
395
  'unicorn/prefer-event-target': 'off',
381
396
  'unicorn/no-null': 'off',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/eslint-config",
3
- "version": "10.2.0",
3
+ "version": "10.5.0",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "types": "index.d.ts",
@@ -24,20 +24,20 @@
24
24
  "@eslint/css": "1.2.0",
25
25
  "@eslint/js": "10.0.1",
26
26
  "@eslint/json": "1.2.0",
27
- "@eslint/markdown": "8.0.1",
27
+ "@eslint/markdown": "8.0.2",
28
28
  "eslint-plugin-jest": "29.15.2",
29
29
  "eslint-plugin-n": "18.0.1",
30
- "eslint-plugin-package-json": "0.91.2",
30
+ "eslint-plugin-package-json": "1.1.0",
31
31
  "eslint-plugin-perfectionist": "5.9.0",
32
32
  "eslint-plugin-sonarjs": "4.0.3",
33
33
  "eslint-plugin-unicorn": "64.0.0",
34
34
  "eslint-plugin-yml": "3.3.2",
35
- "typescript-eslint": "8.59.3",
36
- "@lvce-editor/eslint-plugin-tsconfig": "10.2.0",
37
- "@lvce-editor/eslint-plugin-github-actions": "10.2.0",
38
- "@lvce-editor/eslint-plugin-regex": "10.2.0",
39
- "@lvce-editor/eslint-plugin-e2e": "10.2.0",
40
- "@lvce-editor/eslint-plugin-rpc": "10.2.0"
35
+ "typescript-eslint": "8.59.4",
36
+ "@lvce-editor/eslint-plugin-tsconfig": "10.5.0",
37
+ "@lvce-editor/eslint-plugin-github-actions": "10.5.0",
38
+ "@lvce-editor/eslint-plugin-regex": "10.5.0",
39
+ "@lvce-editor/eslint-plugin-e2e": "10.5.0",
40
+ "@lvce-editor/eslint-plugin-rpc": "10.5.0"
41
41
  },
42
42
  "peerDependencies": {
43
43
  "eslint": "^10"