@lionstone-digital/eslint-config-react 0.0.7 → 0.0.9

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/package.json +5 -5
  2. package/src/index.js +6 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lionstone-digital/eslint-config-react",
3
- "version": "0.0.7",
3
+ "version": "0.0.9",
4
4
  "description": "Helpful eslint config for projects with React",
5
5
  "keywords": [
6
6
  "eslint",
@@ -28,12 +28,12 @@
28
28
  "eslint-plugin-react": "^7.37.5",
29
29
  "eslint-plugin-react-hooks": "^5.2.0",
30
30
  "eslint-plugin-react-refresh": "^0.4.20",
31
- "@lionstone-digital/eslint-config": "0.0.6",
32
- "@lionstone-digital/eslint-config-typescript": "0.0.7"
31
+ "@lionstone-digital/eslint-config": "0.0.8",
32
+ "@lionstone-digital/eslint-config-typescript": "0.0.9"
33
33
  },
34
34
  "peerDependencies": {
35
- "eslint": ">= 9.29.0",
36
- "prettier": ">= 3.6.1",
35
+ "eslint": ">= 9.35.0",
36
+ "prettier": ">= 3.6.2",
37
37
  "react": ">= 18.3.1"
38
38
  },
39
39
  "publishConfig": {
package/src/index.js CHANGED
@@ -4,10 +4,11 @@ import eslintJsxA11y from 'eslint-plugin-jsx-a11y'
4
4
  import eslintReact from 'eslint-plugin-react'
5
5
  import eslintPluginReactHooks from 'eslint-plugin-react-hooks'
6
6
  import eslintReactRefresh from 'eslint-plugin-react-refresh'
7
+ import { defineConfig } from 'eslint/config'
7
8
 
8
- export default [
9
+ export default defineConfig(
9
10
  // Core
10
- ...eslintConfigTypescript,
11
+ eslintConfigTypescript,
11
12
 
12
13
  // For React
13
14
  eslintReact.configs.flat.recommended,
@@ -33,6 +34,7 @@ export default [
33
34
  }
34
35
  },
35
36
  eslintPluginReactHooks.configs['recommended-latest'],
37
+ // @ts-expect-error Small type-mismatch, safe to ignore
36
38
  eslintJsxA11y.flatConfigs.recommended,
37
39
  {
38
40
  rules: {
@@ -51,5 +53,5 @@ export default [
51
53
  },
52
54
 
53
55
  // Base Prettier
54
- ...eslintConfigBasePrettier
55
- ]
56
+ eslintConfigBasePrettier
57
+ )