@hyeon/linter 7.3.2 → 7.3.4
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 +5 -4
- package/package.json +2 -4
- package/src/index.mjs +0 -2
- package/src/prettier.mjs +0 -3
- package/src/typescript.mjs +13 -1
- package/src/nestjs.mjs +0 -61
package/README.md
CHANGED
|
@@ -18,29 +18,30 @@ export default [
|
|
|
18
18
|
|
|
19
19
|
### NestJS
|
|
20
20
|
|
|
21
|
-
NestJS 프로젝트에서
|
|
21
|
+
NestJS 프로젝트에서 데코레이터를 포함한 모든 TypeScript 문법을 지원:
|
|
22
22
|
|
|
23
23
|
```js
|
|
24
|
+
// eslint.config.js
|
|
24
25
|
import hyeonLinter from '@hyeon/linter'
|
|
25
26
|
|
|
26
27
|
export default [
|
|
27
28
|
...hyeonLinter.nestjs,
|
|
28
|
-
...hyeonLinter.typescript,
|
|
29
29
|
]
|
|
30
30
|
```
|
|
31
31
|
|
|
32
32
|
또는 직접 import:
|
|
33
33
|
|
|
34
34
|
```js
|
|
35
|
+
// eslint.config.js
|
|
35
36
|
import hyeonNestjsConfig from '@hyeon/linter/nestjs'
|
|
36
|
-
import hyeonTypescriptConfig from '@hyeon/linter/typescript'
|
|
37
37
|
|
|
38
38
|
export default [
|
|
39
39
|
...hyeonNestjsConfig,
|
|
40
|
-
...hyeonTypescriptConfig,
|
|
41
40
|
]
|
|
42
41
|
```
|
|
43
42
|
|
|
43
|
+
**주의**: NestJS 설정은 TypeScript 설정을 이미 포함하고 있으므로, `typescript` 설정을 별도로 추가할 필요가 없습니다.
|
|
44
|
+
|
|
44
45
|
## vite
|
|
45
46
|
|
|
46
47
|
uninstall
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyeon/linter",
|
|
3
|
-
"version": "7.3.
|
|
3
|
+
"version": "7.3.4",
|
|
4
4
|
"description": "Hansanghyun custom eslint settings",
|
|
5
5
|
"main": "./src/index.mjs",
|
|
6
6
|
"scripts": {
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
},
|
|
30
30
|
"homepage": "https://github.com/hansanghyeon/linter#readme",
|
|
31
31
|
"dependencies": {
|
|
32
|
+
"@eslint/js": "^9.5.0",
|
|
32
33
|
"@trivago/prettier-plugin-sort-imports": "^5.2.2",
|
|
33
34
|
"eslint-config-prettier": "^10.1.5",
|
|
34
35
|
"eslint-plugin-import": "^2.31.0",
|
|
@@ -45,8 +46,6 @@
|
|
|
45
46
|
"devDependencies": {
|
|
46
47
|
"@actions/exec": "^1.1.1",
|
|
47
48
|
"@changesets/cli": "^2.26.2",
|
|
48
|
-
"eslint": "^9.28.0",
|
|
49
|
-
"prettier": "^3.5.3",
|
|
50
49
|
"semver": "^7.5.4"
|
|
51
50
|
},
|
|
52
51
|
"exports": {
|
|
@@ -56,7 +55,6 @@
|
|
|
56
55
|
"./react": "./src/react.mjs",
|
|
57
56
|
"./prettier": "./src/prettier.mjs",
|
|
58
57
|
"./hansanghyeon": "./src/hansanghyeon.mjs",
|
|
59
|
-
"./nestjs": "./src/nestjs.mjs",
|
|
60
58
|
"./package.json": "./package.json"
|
|
61
59
|
},
|
|
62
60
|
"files": [
|
package/src/index.mjs
CHANGED
|
@@ -3,7 +3,6 @@ import hyeonEslintConfigPrettier from './prettier.mjs'
|
|
|
3
3
|
import hyeonEslintConfigReact from './react.mjs'
|
|
4
4
|
import hyeonEslintConfigTypescript from './typescript.mjs'
|
|
5
5
|
import hyeonEslintConfigHansanghyeon from './hansanghyeon.mjs'
|
|
6
|
-
import hyeonEslintConfigNestjs from './nestjs.mjs'
|
|
7
6
|
|
|
8
7
|
export default {
|
|
9
8
|
recommended: hyeonEslintConfigBase,
|
|
@@ -11,5 +10,4 @@ export default {
|
|
|
11
10
|
react: hyeonEslintConfigReact,
|
|
12
11
|
typescript: hyeonEslintConfigTypescript,
|
|
13
12
|
hansanghyeon: hyeonEslintConfigHansanghyeon,
|
|
14
|
-
nestjs: hyeonEslintConfigNestjs,
|
|
15
13
|
}
|
package/src/prettier.mjs
CHANGED
|
@@ -21,9 +21,6 @@ export default [
|
|
|
21
21
|
"importOrder": ["^[^.](.*)$", "^[.]{1,2}/.*$"],
|
|
22
22
|
"importOrderSeparation": false,
|
|
23
23
|
"importOrderSortSpecifiers": true,
|
|
24
|
-
// 데코레이터 지원을 위한 기본 설정
|
|
25
|
-
"bracketSpacing": true,
|
|
26
|
-
"bracketSameLine": false,
|
|
27
24
|
}],
|
|
28
25
|
'arrow-body-style': ['error', 'as-needed'],
|
|
29
26
|
'prefer-arrow-callback': 'error',
|
package/src/typescript.mjs
CHANGED
|
@@ -3,7 +3,19 @@ import tseslint from 'typescript-eslint'
|
|
|
3
3
|
|
|
4
4
|
export default tseslint.config(
|
|
5
5
|
js.configs.recommended,
|
|
6
|
-
|
|
6
|
+
{
|
|
7
|
+
...tseslint.configs.recommended,
|
|
8
|
+
languageOptions: {
|
|
9
|
+
parser: tseslint.parser,
|
|
10
|
+
parserOptions: {
|
|
11
|
+
ecmaVersion: 'latest',
|
|
12
|
+
sourceType: 'module',
|
|
13
|
+
ecmaFeatures: {
|
|
14
|
+
decorators: true,
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
},
|
|
7
19
|
{
|
|
8
20
|
ignores: ['node_modules/', 'dist/'],
|
|
9
21
|
rules: {
|
package/src/nestjs.mjs
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
|
|
2
|
-
import eslintConfigPrettier from "eslint-config-prettier";
|
|
3
|
-
|
|
4
|
-
export default [
|
|
5
|
-
eslintConfigPrettier,
|
|
6
|
-
eslintPluginPrettierRecommended,
|
|
7
|
-
{
|
|
8
|
-
files: ['**/*.ts', '**/*.tsx'],
|
|
9
|
-
rules: {
|
|
10
|
-
"prettier/prettier": ["error", {
|
|
11
|
-
trailingComma: "all",
|
|
12
|
-
singleQuote: true,
|
|
13
|
-
semi: false,
|
|
14
|
-
tabWidth: 2,
|
|
15
|
-
printWidth: 120,
|
|
16
|
-
arrowParens: "always",
|
|
17
|
-
jsxSingleQuote: false,
|
|
18
|
-
bracketSpacing: true,
|
|
19
|
-
plugins: [
|
|
20
|
-
"@trivago/prettier-plugin-sort-imports",
|
|
21
|
-
"prettier-plugin-tailwindcss"
|
|
22
|
-
],
|
|
23
|
-
importOrder: [
|
|
24
|
-
"^@nestjs/(.*)$",
|
|
25
|
-
"^@(.*)$",
|
|
26
|
-
"^[^.](.*)$",
|
|
27
|
-
"^[.]{1,2}/.*$"
|
|
28
|
-
],
|
|
29
|
-
importOrderSeparation: true,
|
|
30
|
-
importOrderSortSpecifiers: true,
|
|
31
|
-
}],
|
|
32
|
-
'arrow-body-style': ['error', 'as-needed'],
|
|
33
|
-
'prefer-arrow-callback': 'error',
|
|
34
|
-
curly: ['error', 'all'],
|
|
35
|
-
'lines-around-comment': ['error', {
|
|
36
|
-
beforeBlockComment: true,
|
|
37
|
-
afterBlockComment: true,
|
|
38
|
-
beforeLineComment: true,
|
|
39
|
-
afterLineComment: true,
|
|
40
|
-
allowBlockStart: true,
|
|
41
|
-
allowBlockEnd: true,
|
|
42
|
-
allowObjectStart: true,
|
|
43
|
-
allowObjectEnd: true,
|
|
44
|
-
allowArrayStart: true,
|
|
45
|
-
allowArrayEnd: true,
|
|
46
|
-
allowClassStart: true,
|
|
47
|
-
allowClassEnd: true,
|
|
48
|
-
}],
|
|
49
|
-
'max-len': 'off',
|
|
50
|
-
'no-confusing-arrow': ['error', {
|
|
51
|
-
allowParens: false,
|
|
52
|
-
}],
|
|
53
|
-
'no-mixed-operators': 'error',
|
|
54
|
-
'no-tabs': 'error',
|
|
55
|
-
quotes: ['error', 'single', {
|
|
56
|
-
avoidEscape: true,
|
|
57
|
-
allowTemplateLiterals: false,
|
|
58
|
-
}],
|
|
59
|
-
},
|
|
60
|
-
},
|
|
61
|
-
]
|