@hyeon/linter 7.2.2 → 7.3.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.
- package/package.json +12 -10
- package/src/nestjs.mjs +28 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyeon/linter",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.3.1",
|
|
4
4
|
"description": "Hansanghyun custom eslint settings",
|
|
5
5
|
"main": "./src/index.mjs",
|
|
6
6
|
"scripts": {
|
|
@@ -30,21 +30,23 @@
|
|
|
30
30
|
"homepage": "https://github.com/hansanghyeon/linter#readme",
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@trivago/prettier-plugin-sort-imports": "^5.2.2",
|
|
33
|
-
"eslint-config-prettier": "^
|
|
33
|
+
"eslint-config-prettier": "^10.1.5",
|
|
34
34
|
"eslint-plugin-import": "^2.31.0",
|
|
35
|
-
"eslint-plugin-prettier": "^5.
|
|
36
|
-
"eslint-plugin-react": "^7.37.
|
|
37
|
-
"eslint-plugin-react-refresh": "^0.4.
|
|
38
|
-
"prettier-plugin-tailwindcss": "^0.6.
|
|
39
|
-
"typescript-eslint": "^8.
|
|
35
|
+
"eslint-plugin-prettier": "^5.4.1",
|
|
36
|
+
"eslint-plugin-react": "^7.37.5",
|
|
37
|
+
"eslint-plugin-react-refresh": "^0.4.20",
|
|
38
|
+
"prettier-plugin-tailwindcss": "^0.6.12",
|
|
39
|
+
"typescript-eslint": "^8.33.0"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"eslint": "^9.
|
|
43
|
-
"prettier": "^3.
|
|
42
|
+
"eslint": "^9.28.0",
|
|
43
|
+
"prettier": "^3.5.3"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@actions/exec": "^1.1.1",
|
|
47
47
|
"@changesets/cli": "^2.26.2",
|
|
48
|
+
"eslint": "^9.28.0",
|
|
49
|
+
"prettier": "^3.5.3",
|
|
48
50
|
"semver": "^7.5.4"
|
|
49
51
|
},
|
|
50
52
|
"exports": {
|
|
@@ -68,4 +70,4 @@
|
|
|
68
70
|
"access": "public"
|
|
69
71
|
},
|
|
70
72
|
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
|
|
71
|
-
}
|
|
73
|
+
}
|
package/src/nestjs.mjs
CHANGED
|
@@ -1,10 +1,23 @@
|
|
|
1
1
|
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
|
|
2
2
|
import eslintConfigPrettier from "eslint-config-prettier";
|
|
3
|
+
import tseslint from 'typescript-eslint';
|
|
3
4
|
|
|
4
5
|
export default [
|
|
5
6
|
eslintConfigPrettier,
|
|
6
7
|
{
|
|
7
8
|
...eslintPluginPrettierRecommended,
|
|
9
|
+
files: ['**/*.ts', '**/*.tsx'],
|
|
10
|
+
languageOptions: {
|
|
11
|
+
parser: tseslint.parser,
|
|
12
|
+
parserOptions: {
|
|
13
|
+
ecmaVersion: 'latest',
|
|
14
|
+
sourceType: 'module',
|
|
15
|
+
project: true,
|
|
16
|
+
ecmaFeatures: {
|
|
17
|
+
decorators: true,
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
},
|
|
8
21
|
rules: {
|
|
9
22
|
"prettier/prettier": ["error", {
|
|
10
23
|
trailingComma: "all",
|
|
@@ -14,7 +27,6 @@ export default [
|
|
|
14
27
|
printWidth: 120,
|
|
15
28
|
arrowParens: "always",
|
|
16
29
|
jsxSingleQuote: false,
|
|
17
|
-
parser: "typescript",
|
|
18
30
|
"plugins": [
|
|
19
31
|
"@trivago/prettier-plugin-sort-imports",
|
|
20
32
|
"prettier-plugin-tailwindcss"
|
|
@@ -29,6 +41,21 @@ export default [
|
|
|
29
41
|
// 데코레이터 관련 설정
|
|
30
42
|
"bracketSpacing": true,
|
|
31
43
|
"bracketSameLine": false,
|
|
44
|
+
// TypeScript 파일에 대한 parser 설정
|
|
45
|
+
"overrides": [
|
|
46
|
+
{
|
|
47
|
+
"files": "*.ts",
|
|
48
|
+
"options": {
|
|
49
|
+
"parser": "typescript"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"files": "*.tsx",
|
|
54
|
+
"options": {
|
|
55
|
+
"parser": "typescript"
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
]
|
|
32
59
|
}],
|
|
33
60
|
'arrow-body-style': ['error', 'as-needed'],
|
|
34
61
|
'prefer-arrow-callback': 'error',
|