@component-hook/eslint-plugin 0.1.7-alpha.0 → 0.2.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.
package/README.md CHANGED
@@ -41,10 +41,10 @@ import componentHookPlugin from '@component-hook/eslint-plugin';
41
41
  export default [
42
42
  ...componentHookPlugin.configs.basic,
43
43
  ...componentHookPlugin.configs.vue,
44
- ...componentHookPlugin.configs.markdown,
45
44
  componentHookPlugin.configs.prettier,
46
45
  ...componentHookPlugin.configs.sonarjs,
47
46
  componentHookPlugin.configs.security,
47
+ ...componentHookPlugin.configs.markdown,
48
48
  {
49
49
  files: ['**/__tests__/unit/**/*.test.[jt]s?(x)'],
50
50
  ...componentHookPlugin.configs['testing-library/vue'],
package/dist/index.js CHANGED
@@ -537,7 +537,9 @@ var markdownConfigs = default18.configs.recommended.map((config) => {
537
537
  "@typescript-eslint/no-unused-expressions": "off",
538
538
  "@typescript-eslint/no-unused-vars": "off",
539
539
  "@typescript-eslint/no-use-before-define": "off",
540
- "import/no-default-export": "off"
540
+ "import/no-default-export": "off",
541
+ "sonarjs/no-dead-store": "off",
542
+ "sonarjs/sonar-no-unused-vars": "off"
541
543
  };
542
544
  }
543
545
  return baseConfig;
@@ -619,18 +621,27 @@ var securityConfig = {
619
621
  // configs/react.ts
620
622
  var reactConfigs = [
621
623
  {
622
- ...default5.configs.flat.recommended,
624
+ ...default5.configs.flat?.recommended,
623
625
  name: "component-hook/react",
624
626
  settings: {
625
627
  react: {
626
628
  version: "detect"
627
629
  }
630
+ },
631
+ rules: {
632
+ ...default5.configs.flat?.recommended.rules,
633
+ ...default5.configs.flat?.["jsx-runtime"].rules
628
634
  }
629
635
  },
630
636
  {
631
- ...default6.configs.recommended,
632
637
  name: "component-hook/react-hooks",
633
- files: ["**/*.[jt]s?(x)"]
638
+ files: ["**/*.[jt]s?(x)"],
639
+ plugins: {
640
+ "react-hooks": default6
641
+ },
642
+ rules: {
643
+ ...default6.configs.recommended.rules
644
+ }
634
645
  },
635
646
  {
636
647
  ...default7.flatConfigs.recommended,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@component-hook/eslint-plugin",
3
- "version": "0.1.7-alpha.0",
3
+ "version": "0.2.0",
4
4
  "description": "ESLint config for component hook",
5
5
  "license": "MIT",
6
6
  "type": "module",