@hyeon/linter 7.0.32 → 7.0.34

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
@@ -15,4 +15,10 @@ export default [
15
15
  ...hyeonLinter.prettier,
16
16
  ...hyeonLinter.typescript,
17
17
  ]
18
+ ```
19
+
20
+ ## vite
21
+
22
+ ```bash
23
+ npm uninstall eslint-plugin-react-hooks eslint-plugin-react-refresh typescript-eslin globals
18
24
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyeon/linter",
3
- "version": "7.0.32",
3
+ "version": "7.0.34",
4
4
  "description": "Hansanghyun custom eslint settings",
5
5
  "main": "./src/index.mjs",
6
6
  "scripts": {
@@ -33,7 +33,6 @@
33
33
  "eslint-plugin-import": "^2.31.0",
34
34
  "eslint-plugin-prettier": "^5.2.1",
35
35
  "eslint-plugin-react": "^7.37.2",
36
- "eslint-plugin-react-hooks": "^5.0.0",
37
36
  "eslint-plugin-react-refresh": "^0.4.14",
38
37
  "eslint-plugin-simple-import-sort": "^12.1.1",
39
38
  "typescript-eslint": "^8.16.0"
@@ -71,6 +71,7 @@ const custom = {
71
71
  ignoreRestSiblings: true,
72
72
  },
73
73
  ],
74
+ 'react/display-name': 'off',
74
75
  }
75
76
  }
76
77
 
package/src/react.mjs CHANGED
@@ -1,5 +1,4 @@
1
1
  import react from 'eslint-plugin-react'
2
- import reactHooks from 'eslint-plugin-react-hooks'
3
2
  import reactRefresh from 'eslint-plugin-react-refresh'
4
3
  import tseslint from 'typescript-eslint'
5
4
 
@@ -7,16 +6,10 @@ export default tseslint.config({
7
6
  settings: { react: { version: '18.3' } },
8
7
  plugins: {
9
8
  react,
10
- 'react-hooks': reactHooks,
11
9
  'react-refresh': reactRefresh,
12
10
  },
13
11
  rules: {
14
12
  ...react.configs.recommended.rules,
15
13
  ...react.configs['jsx-runtime'].rules,
16
- ...reactHooks.configs.recommended.rules,
17
- 'react-refresh/only-export-components': [
18
- 'warn',
19
- { allowConstantExport: true },
20
- ],
21
14
  },
22
15
  })