@ofk/eslint-config 0.2.2 → 0.2.4

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/dist/index.js CHANGED
@@ -708,17 +708,11 @@ function react(config) {
708
708
 
709
709
  // src/configs/react-hooks.ts
710
710
  var _eslintpluginreacthooks = require('eslint-plugin-react-hooks'); var _eslintpluginreacthooks2 = _interopRequireDefault(_eslintpluginreacthooks);
711
- var reactHooksStrict = mergeRules(
712
- // Flat Config version has not been released yet.
713
- {
714
- plugins: { "react-hooks": _eslintpluginreacthooks2.default },
715
- rules: _eslintpluginreacthooks2.default.configs.recommended.rules
716
- }
717
- );
711
+ var reactHooksStrict = mergeRules(_eslintpluginreacthooks2.default.configs["recommended-latest"]);
718
712
 
719
713
  // src/configs/react-refresh.ts
720
714
  var _eslintpluginreactrefresh = require('eslint-plugin-react-refresh'); var _eslintpluginreactrefresh2 = _interopRequireDefault(_eslintpluginreactrefresh);
721
- var reactRefreshStrict = mergeRules(_eslintpluginreactrefresh2.default.configs.recommended);
715
+ var reactRefreshStrict = mergeRules(_eslintpluginreactrefresh2.default.configs.vite);
722
716
 
723
717
  // src/configs/ts.ts
724
718
 
@@ -940,7 +934,8 @@ var vitestStrict = mergeRules(_eslintplugin2.default.configs.recommended, {
940
934
  // conflict with vitest/prefer-called-once
941
935
  "vitest/prefer-called-with": "error",
942
936
  "vitest/prefer-comparison-matcher": "error",
943
- "vitest/prefer-describe-function-title": "error",
937
+ "vitest/prefer-describe-function-title": "off",
938
+ // conflict with vitest/valid-title
944
939
  "vitest/prefer-each": "error",
945
940
  "vitest/prefer-equality-matcher": "error",
946
941
  "vitest/prefer-expect-assertions": "off",
package/dist/index.mjs CHANGED
@@ -708,17 +708,11 @@ function react(config) {
708
708
 
709
709
  // src/configs/react-hooks.ts
710
710
  import pluginReactHooks from "eslint-plugin-react-hooks";
711
- var reactHooksStrict = mergeRules(
712
- // Flat Config version has not been released yet.
713
- {
714
- plugins: { "react-hooks": pluginReactHooks },
715
- rules: pluginReactHooks.configs.recommended.rules
716
- }
717
- );
711
+ var reactHooksStrict = mergeRules(pluginReactHooks.configs["recommended-latest"]);
718
712
 
719
713
  // src/configs/react-refresh.ts
720
714
  import pluginReactRefresh from "eslint-plugin-react-refresh";
721
- var reactRefreshStrict = mergeRules(pluginReactRefresh.configs.recommended);
715
+ var reactRefreshStrict = mergeRules(pluginReactRefresh.configs.vite);
722
716
 
723
717
  // src/configs/ts.ts
724
718
  import pluginTs4 from "typescript-eslint";
@@ -940,7 +934,8 @@ var vitestStrict = mergeRules(pluginVitest.configs.recommended, {
940
934
  // conflict with vitest/prefer-called-once
941
935
  "vitest/prefer-called-with": "error",
942
936
  "vitest/prefer-comparison-matcher": "error",
943
- "vitest/prefer-describe-function-title": "error",
937
+ "vitest/prefer-describe-function-title": "off",
938
+ // conflict with vitest/valid-title
944
939
  "vitest/prefer-each": "error",
945
940
  "vitest/prefer-equality-matcher": "error",
946
941
  "vitest/prefer-expect-assertions": "off",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ofk/eslint-config",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "author": "ofk (https://github.com/ofk/)",
@@ -53,7 +53,7 @@
53
53
  "eslint-plugin-jsx-a11y": "^6.10.0",
54
54
  "eslint-plugin-perfectionist": "^4.0.0",
55
55
  "eslint-plugin-react": "^7.35.0",
56
- "eslint-plugin-react-hooks": "^5.0.0",
56
+ "eslint-plugin-react-hooks": "^5.2.0",
57
57
  "eslint-plugin-react-refresh": "^0.4.16",
58
58
  "eslint-plugin-unicorn": "^59.0.1",
59
59
  "eslint-plugin-unused-imports": "^4.1.1",