@baseplate-dev/tools 0.5.0 → 0.5.2

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.
@@ -57,7 +57,16 @@ export const reactEslintConfig = tsEslint.config(
57
57
  },
58
58
 
59
59
  // React Hooks
60
- reactHooksPlugin.configs['recommended-latest'],
60
+ reactHooksPlugin.configs.flat['recommended-latest'],
61
+ {
62
+ rules: {
63
+ // Disable new strict rules from react-hooks v7 until we enable React Compiler
64
+ 'react-hooks/refs': 'off',
65
+ 'react-hooks/set-state-in-effect': 'off',
66
+ 'react-hooks/preserve-manual-memoization': 'off',
67
+ 'react-hooks/incompatible-library': 'off',
68
+ },
69
+ },
61
70
 
62
71
  // Import-X
63
72
  eslintPluginImportX.flatConfigs.react,
@@ -132,6 +132,9 @@ export function generateTypescriptEslintConfig(options = []) {
132
132
  allow: ['NotFoundError', 'Redirect'],
133
133
  },
134
134
  ],
135
+ '@typescript-eslint/no-unused-vars': KEEP_UNUSED_IMPORTS
136
+ ? 'error'
137
+ : 'off',
135
138
  },
136
139
  },
137
140
 
@@ -143,9 +146,6 @@ export function generateTypescriptEslintConfig(options = []) {
143
146
  rules: {
144
147
  // Prevent unused imports from being auto-removed if the environment variable is set to true
145
148
  // This is useful when AI agents are editing code part by part
146
- '@typescript-eslint/no-unused-vars': KEEP_UNUSED_IMPORTS
147
- ? 'error'
148
- : 'off',
149
149
  'unused-imports/no-unused-imports': KEEP_UNUSED_IMPORTS
150
150
  ? 'off'
151
151
  : 'error',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@baseplate-dev/tools",
3
- "version": "0.5.0",
3
+ "version": "0.5.2",
4
4
  "description": "Shared dev configurations for linting, formatting, and testing Baseplate projects",
5
5
  "keywords": [
6
6
  "development-tools",
@@ -49,36 +49,36 @@
49
49
  "src-subpath-import-plugin.js"
50
50
  ],
51
51
  "dependencies": {
52
- "@eslint/js": "9.32.0",
52
+ "@eslint/js": "9.39.2",
53
53
  "@tsconfig/node22": "22.0.5",
54
54
  "@tsconfig/vite-react": "7.0.2",
55
- "@vitest/eslint-plugin": "1.3.4",
55
+ "@vitest/eslint-plugin": "1.6.6",
56
56
  "eslint-config-prettier": "10.1.8",
57
57
  "eslint-import-resolver-typescript": "4.4.4",
58
58
  "eslint-plugin-import-x": "4.16.1",
59
59
  "eslint-plugin-jsx-a11y": "6.10.2",
60
- "eslint-plugin-perfectionist": "4.15.0",
60
+ "eslint-plugin-perfectionist": "5.4.0",
61
61
  "eslint-plugin-react": "7.37.5",
62
- "eslint-plugin-react-hooks": "5.2.0",
63
- "eslint-plugin-storybook": "10.1.10",
64
- "eslint-plugin-unicorn": "60.0.0",
62
+ "eslint-plugin-react-hooks": "7.0.1",
63
+ "eslint-plugin-storybook": "10.2.3",
64
+ "eslint-plugin-unicorn": "62.0.0",
65
65
  "eslint-plugin-unused-imports": "4.1.4",
66
- "globals": "16.4.0",
67
- "prettier-plugin-packagejson": "2.5.19",
68
- "prettier-plugin-tailwindcss": "0.6.14",
69
- "typescript-eslint": "8.38.0"
66
+ "globals": "17.3.0",
67
+ "prettier-plugin-packagejson": "3.0.0",
68
+ "prettier-plugin-tailwindcss": "0.7.2",
69
+ "typescript-eslint": "8.54.0"
70
70
  },
71
71
  "devDependencies": {
72
- "@types/eslint-plugin-jsx-a11y": "6.10.0",
73
- "eslint": "9.32.0",
74
- "prettier": "3.6.2",
75
- "typescript": "5.8.3",
72
+ "@types/eslint-plugin-jsx-a11y": "6.10.1",
73
+ "eslint": "9.39.2",
74
+ "prettier": "3.8.1",
75
+ "typescript": "5.9.3",
76
76
  "vite": "7.1.12"
77
77
  },
78
78
  "peerDependencies": {
79
- "eslint": "9.32.0",
79
+ "eslint": "9.39.2",
80
80
  "react": "19.1.0",
81
- "typescript": "5.8.3",
81
+ "typescript": "5.9.3",
82
82
  "vitest": "4.0.16"
83
83
  },
84
84
  "engines": {