@cocopalm/oxc-linter-config 0.2.0 → 0.2.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 (3) hide show
  1. package/README.ko.md +20 -1
  2. package/README.md +20 -1
  3. package/package.json +8 -2
package/README.ko.md CHANGED
@@ -107,7 +107,26 @@ export default defineConfig({
107
107
  })
108
108
  ```
109
109
 
110
- 3. **Node.js 프로젝트**
110
+ 3. **React Compiler를 사용하는 React 프로젝트**
111
+
112
+ > **참고:** `/react-compiler` 설정을 사용하려면 `eslint-plugin-react-hooks` 패키지가 필요합니다:
113
+ >
114
+ > ```bash
115
+ > pnpm add -D eslint-plugin-react-hooks
116
+ > ```
117
+
118
+ ```ts
119
+ import { defineConfig } from 'oxlint'
120
+ import baseConfig from '@cocopalm/oxc-linter-config/base'
121
+ import reactConfig from '@cocopalm/oxc-linter-config/react'
122
+ import reactCompilerConfig from '@cocopalm/oxc-linter-config/react-compiler'
123
+
124
+ export default defineConfig({
125
+ extends: [baseConfig, reactConfig, reactCompilerConfig],
126
+ })
127
+ ```
128
+
129
+ 4. **Node.js 프로젝트**
111
130
 
112
131
  ```ts
113
132
  import { defineConfig } from 'oxlint'
package/README.md CHANGED
@@ -107,7 +107,26 @@ export default defineConfig({
107
107
  })
108
108
  ```
109
109
 
110
- 3. **Node.js projects**
110
+ 3. **React projects with React Compiler**
111
+
112
+ > **Note:** Using the `/react-compiler` config requires `eslint-plugin-react-hooks` to be installed:
113
+ >
114
+ > ```bash
115
+ > pnpm add -D eslint-plugin-react-hooks
116
+ > ```
117
+
118
+ ```ts
119
+ import { defineConfig } from 'oxlint'
120
+ import baseConfig from '@cocopalm/oxc-linter-config/base'
121
+ import reactConfig from '@cocopalm/oxc-linter-config/react'
122
+ import reactCompilerConfig from '@cocopalm/oxc-linter-config/react-compiler'
123
+
124
+ export default defineConfig({
125
+ extends: [baseConfig, reactConfig, reactCompilerConfig],
126
+ })
127
+ ```
128
+
129
+ 4. **Node.js projects**
111
130
 
112
131
  ```ts
113
132
  import { defineConfig } from 'oxlint'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocopalm/oxc-linter-config",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "oxc linter configuration",
5
5
  "author": "puffcocos",
6
6
  "license": "MIT",
@@ -46,7 +46,13 @@
46
46
  "typescript": "^6.0.2"
47
47
  },
48
48
  "peerDependencies": {
49
- "oxlint": "^1.57.0"
49
+ "oxlint": "^1.57.0",
50
+ "eslint-plugin-react-hooks": "^6.0.0"
51
+ },
52
+ "peerDependenciesMeta": {
53
+ "eslint-plugin-react-hooks": {
54
+ "optional": true
55
+ }
50
56
  },
51
57
  "scripts": {
52
58
  "build": "tsdown"