@simplysm/eslint-plugin 12.16.38 → 12.16.40
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 +4 -4
- package/src/configs/root.js +28 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@simplysm/eslint-plugin",
|
|
3
|
-
"version": "12.16.
|
|
3
|
+
"version": "12.16.40",
|
|
4
4
|
"description": "심플리즘 패키지 - ESLINT 플러그인",
|
|
5
5
|
"author": "김석래",
|
|
6
6
|
"repository": {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"@angular-eslint/utils": "^20.7.0",
|
|
16
16
|
"@eslint/compat": "^2.0.3",
|
|
17
|
-
"@typescript-eslint/utils": "^8.57.
|
|
17
|
+
"@typescript-eslint/utils": "^8.57.2",
|
|
18
18
|
"angular-eslint": "^20.7.0",
|
|
19
19
|
"eslint": "^9.39.4",
|
|
20
20
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
"eslint-plugin-unused-imports": "^4.4.1",
|
|
23
23
|
"globals": "^16.5.0",
|
|
24
24
|
"typescript": "~5.8.3",
|
|
25
|
-
"typescript-eslint": "^8.57.
|
|
25
|
+
"typescript-eslint": "^8.57.2"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@typescript-eslint/rule-tester": "^8.57.
|
|
28
|
+
"@typescript-eslint/rule-tester": "^8.57.2"
|
|
29
29
|
}
|
|
30
30
|
}
|
package/src/configs/root.js
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { readdirSync, existsSync } from "node:fs";
|
|
2
|
+
import { fileURLToPath } from "node:url";
|
|
3
|
+
import path from "node:path";
|
|
1
4
|
import globals from "globals";
|
|
2
5
|
import tseslint from "typescript-eslint";
|
|
3
6
|
import plugin from "../plugin.js";
|
|
@@ -5,6 +8,15 @@ import ngeslint from "angular-eslint";
|
|
|
5
8
|
import importPlugin from "eslint-plugin-import";
|
|
6
9
|
import unusedImportsPlugin from "eslint-plugin-unused-imports";
|
|
7
10
|
|
|
11
|
+
const rootDir = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "../../../..");
|
|
12
|
+
const packagesDir = path.join(rootDir, "packages");
|
|
13
|
+
const allPackageDirs = [
|
|
14
|
+
rootDir,
|
|
15
|
+
...readdirSync(packagesDir, { withFileTypes: true })
|
|
16
|
+
.filter((d) => d.isDirectory() && existsSync(path.join(packagesDir, d.name, "package.json")))
|
|
17
|
+
.map((d) => path.join(packagesDir, d.name)),
|
|
18
|
+
];
|
|
19
|
+
|
|
8
20
|
export default [
|
|
9
21
|
{
|
|
10
22
|
ignores: ["**/node_modules/", "**/dist/", "**/tests/", "**/.*/", "**/_*/"],
|
|
@@ -252,7 +264,7 @@ export default [
|
|
|
252
264
|
"import/no-extraneous-dependencies": [
|
|
253
265
|
"error",
|
|
254
266
|
{
|
|
255
|
-
devDependencies: ["**/*.spec.ts"],
|
|
267
|
+
devDependencies: ["**/*.spec.ts", "**/vitest.config.ts"],
|
|
256
268
|
},
|
|
257
269
|
],
|
|
258
270
|
/*"@simplysm/ts-no-exported-types": [
|
|
@@ -321,4 +333,19 @@ export default [
|
|
|
321
333
|
"@simplysm/ng-template-sd-require-binding-attrs": ["error"],
|
|
322
334
|
},
|
|
323
335
|
},
|
|
336
|
+
{
|
|
337
|
+
files: ["**/vitest.config.*"],
|
|
338
|
+
plugins: {
|
|
339
|
+
"import": importPlugin,
|
|
340
|
+
},
|
|
341
|
+
rules: {
|
|
342
|
+
"import/no-extraneous-dependencies": [
|
|
343
|
+
"error",
|
|
344
|
+
{
|
|
345
|
+
devDependencies: true,
|
|
346
|
+
packageDir: allPackageDirs,
|
|
347
|
+
},
|
|
348
|
+
],
|
|
349
|
+
},
|
|
350
|
+
},
|
|
324
351
|
];
|