@hyeon/linter 7.3.1 → 7.3.2
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 +2 -2
- package/src/nestjs.mjs +7 -42
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyeon/linter",
|
|
3
|
-
"version": "7.3.
|
|
3
|
+
"version": "7.3.2",
|
|
4
4
|
"description": "Hansanghyun custom eslint settings",
|
|
5
5
|
"main": "./src/index.mjs",
|
|
6
6
|
"scripts": {
|
|
@@ -70,4 +70,4 @@
|
|
|
70
70
|
"access": "public"
|
|
71
71
|
},
|
|
72
72
|
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
|
|
73
|
-
}
|
|
73
|
+
}
|
package/src/nestjs.mjs
CHANGED
|
@@ -1,23 +1,11 @@
|
|
|
1
1
|
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
|
|
2
2
|
import eslintConfigPrettier from "eslint-config-prettier";
|
|
3
|
-
import tseslint from 'typescript-eslint';
|
|
4
3
|
|
|
5
4
|
export default [
|
|
6
5
|
eslintConfigPrettier,
|
|
6
|
+
eslintPluginPrettierRecommended,
|
|
7
7
|
{
|
|
8
|
-
...eslintPluginPrettierRecommended,
|
|
9
8
|
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
|
-
},
|
|
21
9
|
rules: {
|
|
22
10
|
"prettier/prettier": ["error", {
|
|
23
11
|
trailingComma: "all",
|
|
@@ -27,35 +15,19 @@ export default [
|
|
|
27
15
|
printWidth: 120,
|
|
28
16
|
arrowParens: "always",
|
|
29
17
|
jsxSingleQuote: false,
|
|
30
|
-
|
|
18
|
+
bracketSpacing: true,
|
|
19
|
+
plugins: [
|
|
31
20
|
"@trivago/prettier-plugin-sort-imports",
|
|
32
21
|
"prettier-plugin-tailwindcss"
|
|
33
22
|
],
|
|
34
|
-
|
|
23
|
+
importOrder: [
|
|
35
24
|
"^@nestjs/(.*)$",
|
|
25
|
+
"^@(.*)$",
|
|
36
26
|
"^[^.](.*)$",
|
|
37
27
|
"^[.]{1,2}/.*$"
|
|
38
28
|
],
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
// 데코레이터 관련 설정
|
|
42
|
-
"bracketSpacing": true,
|
|
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
|
-
]
|
|
29
|
+
importOrderSeparation: true,
|
|
30
|
+
importOrderSortSpecifiers: true,
|
|
59
31
|
}],
|
|
60
32
|
'arrow-body-style': ['error', 'as-needed'],
|
|
61
33
|
'prefer-arrow-callback': 'error',
|
|
@@ -71,7 +43,6 @@ export default [
|
|
|
71
43
|
allowObjectEnd: true,
|
|
72
44
|
allowArrayStart: true,
|
|
73
45
|
allowArrayEnd: true,
|
|
74
|
-
// 데코레이터 위의 주석 허용
|
|
75
46
|
allowClassStart: true,
|
|
76
47
|
allowClassEnd: true,
|
|
77
48
|
}],
|
|
@@ -85,12 +56,6 @@ export default [
|
|
|
85
56
|
avoidEscape: true,
|
|
86
57
|
allowTemplateLiterals: false,
|
|
87
58
|
}],
|
|
88
|
-
// NestJS 데코레이터 관련 규칙 완화
|
|
89
|
-
'@typescript-eslint/no-unused-vars': ['error', {
|
|
90
|
-
argsIgnorePattern: '^_',
|
|
91
|
-
varsIgnorePattern: '^_',
|
|
92
|
-
ignoreRestSiblings: true,
|
|
93
|
-
}],
|
|
94
59
|
},
|
|
95
60
|
},
|
|
96
61
|
]
|