@robot-inventor/eslint-config 10.2.1 → 11.0.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.
Files changed (2) hide show
  1. package/dist/index.js +2 -1
  2. package/package.json +8 -1
package/dist/index.js CHANGED
@@ -5,6 +5,7 @@ import eslintConfigPrettier from "eslint-config-prettier";
5
5
  import jsdoc from "eslint-plugin-jsdoc";
6
6
  import react from "eslint-plugin-react";
7
7
  import reactCompiler from "eslint-plugin-react-compiler";
8
+ import reactHooks from "eslint-plugin-react-hooks";
8
9
  // eslint-disable-next-line import-x/max-dependencies
9
10
  import { configs as tseslintConfigs } from "typescript-eslint";
10
11
  const eslintRules = {
@@ -101,7 +102,7 @@ const JSDocRule = defineConfig({
101
102
  }
102
103
  });
103
104
  const eslintConfig = defineConfig(...eslintConfigNoJSDoc, ...JSDocRule);
104
- const eslintReactConfigBase = defineConfig({
105
+ const eslintReactConfigBase = defineConfig(reactHooks.configs.flat["recommended-latest"], {
105
106
  files: ["**/*.tsx"],
106
107
  ...react.configs.flat["recommended"],
107
108
  plugins: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robot-inventor/eslint-config",
3
- "version": "10.2.1",
3
+ "version": "11.0.1",
4
4
  "description": "My ESLint config preset",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -10,6 +10,8 @@
10
10
  "scripts": {
11
11
  "build": "tsc",
12
12
  "lint": "eslint --flag unstable_native_nodejs_ts_config \"./src/**/*.ts\"",
13
+ "format": "prettier --write ./**/*.ts",
14
+ "format:check": "prettier --check ./**/*.ts",
13
15
  "ci:version": "changeset version",
14
16
  "ci:publish": "npm run build && changeset publish"
15
17
  },
@@ -39,6 +41,7 @@
39
41
  "eslint-plugin-jsdoc": "^61.0.0",
40
42
  "eslint-plugin-react": "^7.37.3",
41
43
  "eslint-plugin-react-compiler": "^19.0.0-beta-e552027-20250112",
44
+ "eslint-plugin-react-hooks": "^7.0.1",
42
45
  "typescript-eslint": "^8.26.0"
43
46
  },
44
47
  "devDependencies": {
@@ -47,6 +50,10 @@
47
50
  "@eslint-types/jsdoc": "^48.2.2",
48
51
  "@eslint-types/typescript-eslint": "^7.5.0",
49
52
  "@robot-inventor/tsconfig-base": "^6.0.0",
53
+ "prettier": "^3.6.2",
50
54
  "typescript": "^5.4.4"
55
+ },
56
+ "overrides": {
57
+ "zod-validation-error": "^5.0.0"
51
58
  }
52
59
  }