@hyeon/linter 7.4.6 → 10.0.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyeon/linter",
3
- "version": "7.4.6",
3
+ "version": "10.0.0",
4
4
  "description": "Hansanghyun custom eslint settings",
5
5
  "main": "./src/index.mjs",
6
6
  "scripts": {
@@ -29,21 +29,25 @@
29
29
  },
30
30
  "homepage": "https://git.hyeon.pro/hansanghyeon/linter#readme",
31
31
  "dependencies": {
32
- "@eslint/js": "^9.5.0",
33
- "@trivago/prettier-plugin-sort-imports": "^5.2.2",
34
- "eslint-config-prettier": "^10.1.5",
35
- "eslint-plugin-import": "^2.31.0",
36
- "eslint-plugin-prettier": "^5.4.1",
32
+ "@eslint/js": "^10.0.1",
33
+ "@trivago/prettier-plugin-sort-imports": "^6.0.2",
34
+ "eslint-config-prettier": "^10.1.8",
35
+ "eslint-plugin-import-x": "^4.16.1",
36
+ "eslint-plugin-prettier": "^5.5.5",
37
37
  "eslint-plugin-react": "^7.37.5",
38
- "eslint-plugin-react-refresh": "^0.4.20",
39
- "prettier-plugin-tailwindcss": "^0.6.12",
40
- "typescript-eslint": "^8.33.0"
38
+ "eslint-plugin-react-refresh": "^0.5.0",
39
+ "prettier": "^3.5.3",
40
+ "prettier-plugin-tailwindcss": "^0.7.2",
41
+ "typescript": "^5.9.3",
42
+ "typescript-eslint": "^8.55.0"
41
43
  },
42
44
  "peerDependencies": {
43
- "eslint": "^9.28.0",
45
+ "eslint": "^10.0.0",
44
46
  "prettier": "^3.5.3"
45
47
  },
46
- "devDependencies": {},
48
+ "devDependencies": {
49
+ "eslint": "^10.0.0"
50
+ },
47
51
  "exports": {
48
52
  ".": {
49
53
  "import": "./src/index.mjs",
@@ -63,4 +67,4 @@
63
67
  "prettier",
64
68
  "src"
65
69
  ]
66
- }
70
+ }
@@ -1,13 +1,13 @@
1
- import importPlugin from 'eslint-plugin-import'
1
+ import importX from 'eslint-plugin-import-x'
2
2
 
3
3
  const _import = [
4
- importPlugin.flatConfigs.recommended,
4
+ importX.flatConfigs.recommended,
5
5
  {
6
6
  rules: {
7
- 'import/first': 'error',
8
- 'import/newline-after-import': 'error',
9
- 'import/no-duplicates': 'error',
10
- 'import/no-unresolved': 'off',
7
+ 'import-x/first': 'error',
8
+ 'import-x/newline-after-import': 'error',
9
+ 'import-x/no-duplicates': 'error',
10
+ 'import-x/no-unresolved': 'off',
11
11
  },
12
12
  },
13
13
  ]
@@ -42,7 +42,6 @@ const custom = {
42
42
  ignoreRestSiblings: true,
43
43
  },
44
44
  ],
45
- 'react/display-name': 'off',
46
45
  'no-confusing-arrow': 'off',
47
46
  },
48
47
  ignores: ['.config/*', 'eslint.config.mjs', 'eslint.config.js'],
package/src/react.mjs CHANGED
@@ -1,15 +1,17 @@
1
1
  import react from 'eslint-plugin-react'
2
- import reactRefresh from 'eslint-plugin-react-refresh'
3
- import tseslint from 'typescript-eslint'
2
+ import { reactRefresh } from 'eslint-plugin-react-refresh'
4
3
 
5
- export default tseslint.config({
6
- settings: { react: { version: '18.3' } },
7
- plugins: {
8
- react,
9
- 'react-refresh': reactRefresh,
4
+ export default [
5
+ {
6
+ settings: { react: { version: '19.0' } },
7
+ plugins: {
8
+ react,
9
+ 'react-refresh': reactRefresh.plugin,
10
+ },
11
+ rules: {
12
+ ...react.configs.recommended.rules,
13
+ ...react.configs['jsx-runtime'].rules,
14
+ ...reactRefresh.configs.recommended().rules,
15
+ },
10
16
  },
11
- rules: {
12
- ...react.configs.recommended.rules,
13
- ...react.configs['jsx-runtime'].rules,
14
- },
15
- })
17
+ ]
@@ -24,7 +24,6 @@ const config = [
24
24
  },
25
25
  },
26
26
  rules: {
27
- 'react/prop-types': 'off',
28
27
  '@typescript-eslint/no-explicit-any': 'off',
29
28
  '@typescript-eslint/no-unused-vars': [
30
29
  'error',
@@ -33,7 +32,14 @@ const config = [
33
32
  varsIgnorePattern: '^_',
34
33
  },
35
34
  ],
36
- '@typescript-eslint/interface-name-prefix': 'off',
35
+ '@typescript-eslint/consistent-type-imports': [
36
+ 'error',
37
+ {
38
+ prefer: 'type-imports',
39
+ fixStyle: 'inline-type-imports',
40
+ disallowTypeAnnotations: false,
41
+ },
42
+ ],
37
43
  '@typescript-eslint/explicit-function-return-type': 'off',
38
44
  '@typescript-eslint/explicit-module-boundary-types': 'off',
39
45
  '@typescript-eslint/no-non-null-assertion': 'off',