@component-hook/eslint-plugin 0.1.3 → 0.1.4-alpha.1

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
@@ -64,12 +64,19 @@ See [basic](./index.ts) and [ignores](./configs/ignores.ts) for more details.
64
64
  ```js
65
65
  import {
66
66
  reactPreset, // Includes basic, react, markdown, prettier, sonarjs, security configs
67
- vuePreset, // Includes basic, vue, markdown, prettier, sonarjs, security configs
68
67
  } from '@component-hook/eslint-plugin';
69
68
 
70
69
  export default reactPreset;
71
70
  ```
72
71
 
72
+ ```js
73
+ import {
74
+ vuePreset, // Includes basic, vue, markdown, prettier, sonarjs, security configs
75
+ } from '@component-hook/eslint-plugin';
76
+
77
+ export default vuePreset;
78
+ ```
79
+
73
80
  ## Configs
74
81
 
75
82
  | Name | Type | Reference |
package/dist/index.js CHANGED
@@ -491,8 +491,18 @@ var prettierConfig = {
491
491
 
492
492
  // configs/sonarjs.ts
493
493
  var sonarjsConfig = {
494
- ...default12.configs.recommended,
495
- name: "component-hook/sonarjs"
494
+ name: "component-hook/sonarjs",
495
+ plugins: {
496
+ sonarjs: fixupPluginRules({ rules: default12.rules })
497
+ },
498
+ rules: {
499
+ ...default12.configs.recommended.rules,
500
+ "sonarjs/no-commented-code": "warn",
501
+ "sonarjs/no-vue-bypass-sanitization": "warn",
502
+ // TypeError: Cannot read properties of undefined (reading 'members')
503
+ "sonarjs/prefer-enum-initializers": "off"
504
+ },
505
+ settings: default12.configs.recommended.settings
496
506
  };
497
507
 
498
508
  // configs/security.ts
@@ -695,6 +705,7 @@ var ignores = {
695
705
  "**/bun.lockb",
696
706
  "**/output",
697
707
  "**/coverage",
708
+ "**/playwright-report",
698
709
  "**/temp",
699
710
  "**/fixtures",
700
711
  "**/.vitepress/cache",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@component-hook/eslint-plugin",
3
- "version": "0.1.3",
3
+ "version": "0.1.4-alpha.1",
4
4
  "description": "ESLint config for component hook",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -35,20 +35,20 @@
35
35
  "dependencies": {
36
36
  "@eslint/compat": "^1.1.1",
37
37
  "eslint-config-prettier": "^9.1.0",
38
- "eslint-plugin-import": "^2.29.1",
39
- "eslint-plugin-jsx-a11y": "^6.9.0",
38
+ "eslint-plugin-import": "^2.30.0",
39
+ "eslint-plugin-jsx-a11y": "^6.10.0",
40
40
  "eslint-plugin-markdown": "^5.1.0",
41
41
  "eslint-plugin-playwright": "^1.6.2",
42
42
  "eslint-plugin-prettier": "^5.2.1",
43
- "eslint-plugin-react": "^7.35.0",
43
+ "eslint-plugin-react": "^7.35.2",
44
44
  "eslint-plugin-react-hooks": "^4.6.2",
45
45
  "eslint-plugin-regexp": "^2.6.0",
46
46
  "eslint-plugin-security": "^3.0.1",
47
- "eslint-plugin-sonarjs": "^1.0.4",
47
+ "eslint-plugin-sonarjs": "^2.0.2",
48
48
  "eslint-plugin-testing-library": "^6.3.0",
49
- "eslint-plugin-vue": "^9.27.0",
49
+ "eslint-plugin-vue": "^9.28.0",
50
50
  "globals": "^15.9.0",
51
- "typescript-eslint": "^8.3.0",
51
+ "typescript-eslint": "^8.4.0",
52
52
  "vue-eslint-parser": "^9.4.3"
53
53
  },
54
54
  "devDependencies": {