@lvce-editor/eslint-config 8.2.0 → 9.0.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 +6 -0
  2. package/package.json +11 -10
package/index.js CHANGED
@@ -5,6 +5,7 @@ import pluginJest from 'eslint-plugin-jest'
5
5
  import nodePlugin from 'eslint-plugin-n'
6
6
  import packageJson from 'eslint-plugin-package-json'
7
7
  import perfectionist from 'eslint-plugin-perfectionist'
8
+ import sonarjs from 'eslint-plugin-sonarjs'
8
9
  import eslintPluginUnicorn from 'eslint-plugin-unicorn'
9
10
  import eslintPluginYml from 'eslint-plugin-yml'
10
11
  import tseslint from 'typescript-eslint'
@@ -241,6 +242,10 @@ const defaultConfig = tseslint.config(
241
242
  },
242
243
  ],
243
244
  },
245
+ {
246
+ files: ['**/*.ts'],
247
+ ...sonarjs.configs.recommended,
248
+ },
244
249
  {
245
250
  files: ['**/*.ts'],
246
251
  rules: {
@@ -305,6 +310,7 @@ const defaultConfig = tseslint.config(
305
310
  },
306
311
  },
307
312
  rules: {
313
+ 'sonarjs/no-exclusive-tests': 'off',
308
314
  'unicorn/consistent-function-scoping': 'off',
309
315
  '@typescript-eslint/only-throw-error': 'off',
310
316
  '@typescript-eslint/prefer-promise-reject-errors': 'off',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/eslint-config",
3
- "version": "8.2.0",
3
+ "version": "9.0.0",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "types": "index.d.ts",
@@ -20,22 +20,23 @@
20
20
  "description": "",
21
21
  "dependencies": {
22
22
  "@cspell/eslint-plugin": "10.0.0",
23
- "@e18e/eslint-plugin": "^0.3.0",
23
+ "@e18e/eslint-plugin": "^0.4.1",
24
24
  "@eslint/css": "1.1.0",
25
25
  "@eslint/js": "10.0.1",
26
26
  "@eslint/json": "1.2.0",
27
27
  "@eslint/markdown": "8.0.1",
28
- "eslint-plugin-jest": "29.15.1",
28
+ "eslint-plugin-jest": "29.15.2",
29
29
  "eslint-plugin-n": "17.24.0",
30
- "eslint-plugin-package-json": "0.91.1",
31
- "eslint-plugin-perfectionist": "5.8.0",
30
+ "eslint-plugin-package-json": "0.91.2",
31
+ "eslint-plugin-perfectionist": "5.9.0",
32
+ "eslint-plugin-sonarjs": "4.0.3",
32
33
  "eslint-plugin-unicorn": "64.0.0",
33
34
  "eslint-plugin-yml": "3.3.1",
34
- "typescript-eslint": "8.58.1",
35
- "@lvce-editor/eslint-plugin-tsconfig": "8.2.0",
36
- "@lvce-editor/eslint-plugin-github-actions": "8.2.0",
37
- "@lvce-editor/eslint-plugin-regex": "8.2.0",
38
- "@lvce-editor/eslint-plugin-rpc": "8.2.0"
35
+ "typescript-eslint": "8.59.1",
36
+ "@lvce-editor/eslint-plugin-tsconfig": "9.0.0",
37
+ "@lvce-editor/eslint-plugin-github-actions": "9.0.0",
38
+ "@lvce-editor/eslint-plugin-regex": "9.0.0",
39
+ "@lvce-editor/eslint-plugin-rpc": "9.0.0"
39
40
  },
40
41
  "peerDependencies": {
41
42
  "eslint": "^10"