@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 +16 -12
- package/src/hansanghyeon.mjs +6 -7
- package/src/react.mjs +14 -12
- package/src/typescript.mjs +8 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyeon/linter",
|
|
3
|
-
"version": "
|
|
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": "^
|
|
33
|
-
"@trivago/prettier-plugin-sort-imports": "^
|
|
34
|
-
"eslint-config-prettier": "^10.1.
|
|
35
|
-
"eslint-plugin-import": "^
|
|
36
|
-
"eslint-plugin-prettier": "^5.
|
|
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.
|
|
39
|
-
"prettier
|
|
40
|
-
"
|
|
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": "^
|
|
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
|
+
}
|
package/src/hansanghyeon.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import
|
|
1
|
+
import importX from 'eslint-plugin-import-x'
|
|
2
2
|
|
|
3
3
|
const _import = [
|
|
4
|
-
|
|
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
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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
|
-
|
|
12
|
-
...react.configs.recommended.rules,
|
|
13
|
-
...react.configs['jsx-runtime'].rules,
|
|
14
|
-
},
|
|
15
|
-
})
|
|
17
|
+
]
|
package/src/typescript.mjs
CHANGED
|
@@ -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/
|
|
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',
|