@hyeon/linter 7.0.44 → 7.1.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/README.md CHANGED
@@ -18,6 +18,8 @@ export default [
18
18
 
19
19
  ## vite
20
20
 
21
+ uninstall
22
+
21
23
  ```bash
22
- npm uninstall eslint-plugin-react-hooks eslint-plugin-react-refresh typescript-eslin globals
23
- ```
24
+ eslint-plugin-react-hooks eslint-plugin-react-refresh typescript-eslint globals @eslint/js
25
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyeon/linter",
3
- "version": "7.0.44",
3
+ "version": "7.1.0",
4
4
  "description": "Hansanghyun custom eslint settings",
5
5
  "main": "./src/index.mjs",
6
6
  "scripts": {
@@ -29,12 +29,12 @@
29
29
  },
30
30
  "homepage": "https://github.com/hansanghyeon/linter#readme",
31
31
  "dependencies": {
32
+ "@trivago/prettier-plugin-sort-imports": "^5.2.2",
32
33
  "eslint-config-prettier": "^9.1.0",
33
34
  "eslint-plugin-import": "^2.31.0",
34
35
  "eslint-plugin-prettier": "^5.2.1",
35
36
  "eslint-plugin-react": "^7.37.2",
36
37
  "eslint-plugin-react-refresh": "^0.4.16",
37
- "eslint-plugin-simple-import-sort": "^12.1.1",
38
38
  "typescript-eslint": "^8.17.0"
39
39
  },
40
40
  "peerDependencies": {
@@ -65,4 +65,4 @@
65
65
  "registry": "https://registry.npmjs.org/",
66
66
  "access": "public"
67
67
  }
68
- }
68
+ }
package/src/base.mjs CHANGED
@@ -2,7 +2,4 @@ import js from '@eslint/js';
2
2
 
3
3
  export default [
4
4
  js.configs.recommended,
5
- {
6
- ignores: ['node_modules/', 'dist/'],
7
- }
8
5
  ];
@@ -1,38 +1,9 @@
1
- import simpleImportSort from "eslint-plugin-simple-import-sort";
2
1
  import importPlugin from 'eslint-plugin-import';
3
2
 
4
- /**
5
- * import관련 플러그인, 설정
6
- * simpleImportSort - https://github.com/lydell/eslint-plugin-simple-import-sort
7
- */
8
3
  const _import = [
9
4
  importPlugin.flatConfigs.recommended,
10
5
  {
11
- plugins: {
12
- "simple-import-sort": simpleImportSort,
13
- },
14
6
  rules: {
15
- "simple-import-sort/imports": [
16
- "error",
17
- {
18
- "groups": [
19
- // 부수 효과가 있는 import.
20
- ["^\\u0000"],
21
- // `node:`로 시작하는 Node.js 기본 모듈.
22
- ["^node:"],
23
- // 패키지들.
24
- // 문자(또는 숫자, 밑줄)로 시작하거나 `@` 뒤에 문자가 오는 항목.
25
- ["^@?\\w"],
26
- // 절대 경로 import 및 Vue 스타일의 `@/foo`와 같은 기타 import.
27
- // 다른 그룹에서 매칭되지 않는 모든 항목.
28
- ["^"],
29
- // 상대 경로 import.
30
- // 점(`.`)으로 시작하는 모든 항목.
31
- ["^\\."],
32
- ],
33
- }
34
- ],
35
- "simple-import-sort/exports": "error",
36
7
  "import/first": "error",
37
8
  "import/newline-after-import": "error",
38
9
  "import/no-duplicates": "error",
@@ -53,6 +24,8 @@ const custom = {
53
24
  ignoreEOLComments: true,
54
25
  },
55
26
  ],
27
+ // 보일러플레이트 코드를 생성할때 {} 를 사용하는 경우가 많아서 off
28
+ '@typescript-eslint/no-empty-object-type': 'off',
56
29
  '@typescript-eslint/no-explicit-any': 'off',
57
30
  '@typescript-eslint/no-unused-vars': [
58
31
  'error',
@@ -68,6 +41,7 @@ const custom = {
68
41
  },
69
42
  ],
70
43
  'react/display-name': 'off',
44
+ 'no-confusing-arrow': 'off'
71
45
  },
72
46
  ignores: [".config/*", "eslint.config.mjs", "eslint.config.js"]
73
47
  }
package/src/prettier.mjs CHANGED
@@ -14,6 +14,7 @@ export default [
14
14
  printWidth: 120,
15
15
  arrowParens: "always",
16
16
  jsxSingleQuote: false,
17
+ "plugins": ["@trivago/prettier-plugin-sort-imports"]
17
18
  }],
18
19
  'arrow-body-style': ['error', 'as-needed'],
19
20
  'prefer-arrow-callback': 'error',