@simplysm/eslint-plugin 12.11.13 → 12.11.15
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@simplysm/eslint-plugin",
|
|
3
|
-
"version": "12.11.
|
|
3
|
+
"version": "12.11.15",
|
|
4
4
|
"description": "심플리즘 패키지 - ESLINT 플러그인",
|
|
5
5
|
"author": "김석래",
|
|
6
6
|
"repository": {
|
|
@@ -13,17 +13,17 @@
|
|
|
13
13
|
"main": "src/index.js",
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"@eslint/compat": "^1.2.9",
|
|
16
|
-
"@typescript-eslint/utils": "^8.33.
|
|
17
|
-
"angular-eslint": "^19.
|
|
16
|
+
"@typescript-eslint/utils": "^8.33.1",
|
|
17
|
+
"angular-eslint": "^19.7.1",
|
|
18
18
|
"eslint": "^9.28.0",
|
|
19
19
|
"eslint-import-resolver-typescript": "^4.4.2",
|
|
20
20
|
"eslint-plugin-import": "^2.31.0",
|
|
21
21
|
"globals": "^16.2.0",
|
|
22
22
|
"typescript": "~5.8.3",
|
|
23
|
-
"typescript-eslint": "^8.33.
|
|
23
|
+
"typescript-eslint": "^8.33.1"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@typescript-eslint/rule-tester": "^8.33.
|
|
27
|
-
"vitest": "^3.1
|
|
26
|
+
"@typescript-eslint/rule-tester": "^8.33.1",
|
|
27
|
+
"vitest": "^3.2.1"
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -3,13 +3,13 @@ export default {
|
|
|
3
3
|
type: "problem",
|
|
4
4
|
docs: {
|
|
5
5
|
description:
|
|
6
|
-
"@simplysm 패키지에서 서브경로 import를 금지합니다. (ex: @simplysm/pkg/src/x → 금지)",
|
|
6
|
+
"@simplysm 패키지에서 'src' 서브경로 import를 금지합니다. (ex: @simplysm/pkg/src/x → 금지)",
|
|
7
7
|
recommended: "error",
|
|
8
8
|
},
|
|
9
9
|
schema: [],
|
|
10
10
|
messages: {
|
|
11
11
|
noSubpathImport:
|
|
12
|
-
"'@simplysm/{{pkg}}' 패키지는
|
|
12
|
+
"'@simplysm/{{pkg}}' 패키지는 'src' 서브경로를 import할 수 없습니다. import '{{importPath}}'는 허용되지 않습니다.",
|
|
13
13
|
},
|
|
14
14
|
},
|
|
15
15
|
|
|
@@ -22,8 +22,10 @@ export default {
|
|
|
22
22
|
|
|
23
23
|
if (importPath.startsWith("@simplysm/")) {
|
|
24
24
|
const parts = importPath.split("/");
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
|
|
26
|
+
// 허용: @simplysm/pkg, @simplysm/pkg/xxx, @simplysm/pkg/xxx/yyy
|
|
27
|
+
// 금지: @simplysm/pkg/src, @simplysm/pkg/src/xxx
|
|
28
|
+
if (parts.length >= 3 && parts[2] === "src") {
|
|
27
29
|
context.report({
|
|
28
30
|
node: node.source,
|
|
29
31
|
messageId: "noSubpathImport",
|