@noxickon/codex 1.2.3 → 1.3.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.
package/README.md CHANGED
@@ -35,8 +35,8 @@ npm install --save-dev \
35
35
 
36
36
  ```bash
37
37
  npm install --save-dev \
38
+ @eslint-react/eslint-plugin \
38
39
  eslint-plugin-better-tailwindcss \
39
- eslint-plugin-react-hooks \
40
40
  eslint-plugin-react-compiler \
41
41
  eslint-plugin-react-refresh
42
42
  ```
@@ -66,8 +66,8 @@ npm install --save-dev \
66
66
  eslint-plugin-sort-destructure-keys \
67
67
  eslint-plugin-unused-imports \
68
68
  prettier-plugin-tailwindcss \
69
+ @eslint-react/eslint-plugin \
69
70
  eslint-plugin-better-tailwindcss \
70
- eslint-plugin-react-hooks \
71
71
  eslint-plugin-react-compiler \
72
72
  eslint-plugin-react-refresh
73
73
  ```
@@ -178,7 +178,7 @@ export default createPrettierConfig({
178
178
 
179
179
  **React (additional):**
180
180
 
181
- - React Hooks
181
+ - ESLint React (Rules of Hooks, JSX, DOM, RSC, Web API leak detection)
182
182
  - React Compiler
183
183
  - React Refresh (Vite)
184
184
  - Better Tailwind CSS
@@ -6,9 +6,9 @@
6
6
  * @returns {Array} ESLint flat config array
7
7
  */
8
8
 
9
+ import eslintReact from '@eslint-react/eslint-plugin';
9
10
  import perfectionist from 'eslint-plugin-perfectionist';
10
11
  import reactCompiler from 'eslint-plugin-react-compiler';
11
- import reactHooks from 'eslint-plugin-react-hooks';
12
12
  import { reactRefresh } from 'eslint-plugin-react-refresh';
13
13
 
14
14
  import { createBaseConfig } from './base.config.js';
@@ -18,15 +18,15 @@ export function createReactConfig(options = {}) {
18
18
 
19
19
  const reactConfig = {
20
20
  files: ['**/*.{ts,tsx,js,jsx}'],
21
+ ...eslintReact.configs['recommended-typescript'],
21
22
  plugins: {
23
+ ...eslintReact.configs['recommended-typescript'].plugins,
22
24
  perfectionist,
23
25
  'react-compiler': reactCompiler,
24
- 'react-hooks': reactHooks,
25
26
  'react-refresh': reactRefresh.plugin,
26
27
  },
27
28
  rules: {
28
- // React
29
- ...reactHooks.configs.recommended.rules,
29
+ ...eslintReact.configs['recommended-typescript'].rules,
30
30
  'react-compiler/react-compiler': 'error',
31
31
  'react-refresh/only-export-components': ['warn', { allowConstantExport: true }],
32
32
 
@@ -55,6 +55,3 @@ export function createReactConfig(options = {}) {
55
55
 
56
56
  return [...baseConfig, reactConfig];
57
57
  }
58
-
59
-
60
-
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@noxickon/codex",
3
- "version": "1.2.3",
3
+ "version": "1.3.1",
4
4
  "author": "noxickon",
5
5
  "license": "MIT",
6
6
  "description": "Shared ESLint & Prettier configuration for noxickon projects",
@@ -31,8 +31,8 @@
31
31
  "eslint-plugin-n": ">=17.0.0",
32
32
  "eslint-plugin-perfectionist": ">=5.6.0",
33
33
  "eslint-plugin-regexp": ">=3.0.0",
34
+ "@eslint-react/eslint-plugin": ">=4.0.0",
34
35
  "eslint-plugin-react-compiler": "*",
35
- "eslint-plugin-react-hooks": ">=7.0.0",
36
36
  "eslint-plugin-react-refresh": ">=0.5.0",
37
37
  "eslint-plugin-sonarjs": ">=4.0.0",
38
38
  "eslint-plugin-sort-destructure-keys": ">=3.0.0",
@@ -50,7 +50,7 @@
50
50
  "eslint-plugin-n": {
51
51
  "optional": true
52
52
  },
53
- "eslint-plugin-react-hooks": {
53
+ "@eslint-react/eslint-plugin": {
54
54
  "optional": true
55
55
  },
56
56
  "eslint-plugin-react-compiler": {