@dpuse/dpuse-development 0.3.497 → 0.3.504

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.
@@ -0,0 +1,2 @@
1
+ declare const _default: import('eslint/config').Config[];
2
+ export default _default;
@@ -1,4 +1,3 @@
1
- export declare function buildDirectoryIndex(id: string): Promise<void>;
2
1
  export { buildProject, releaseProject, syncProjectWithGitHub, testProject } from './operations/manageProject';
3
2
  export { auditDependencies } from './operations/auditDependencies';
4
3
  export { checkDependencies } from './operations/checkDependencies';
package/eslint.config.ts CHANGED
@@ -1,5 +1,74 @@
1
- // DPUse Framework
2
- import dpuse from '@dpuse/eslint-config-dpuse';
1
+ // ── External Dependencies
2
+ import type { Linter } from 'eslint';
3
+ import pluginComments from '@eslint-community/eslint-plugin-eslint-comments';
4
+ import { flatConfigs as pluginImportFlatConfigs } from 'eslint-plugin-import-x';
5
+ import { configs as pluginRegexpConfigs } from 'eslint-plugin-regexp';
6
+ import pluginSecurity from 'eslint-plugin-security';
7
+ import pluginSonarJS from 'eslint-plugin-sonarjs';
8
+ import pluginUnicorn from 'eslint-plugin-unicorn';
9
+ import skipFormatting from 'eslint-config-prettier';
10
+ import tseslint from 'typescript-eslint';
11
+ import { defineConfig, globalIgnores } from 'eslint/config';
3
12
 
4
- // ESlint Configuration
5
- export default [...dpuse];
13
+ // ── Configuration ────────────────────────────────────────────────────────────────────────────────────────────────────
14
+
15
+ export default defineConfig(
16
+ // Linting scope, strict TypeScript type-checking, and module resolver.
17
+ {
18
+ files: ['eslint.config.ts', 'src/**/*.ts', 'vite.config.ts', 'vitest.config.ts'],
19
+ extends: [...tseslint.configs.strictTypeChecked, ...tseslint.configs.stylisticTypeChecked],
20
+ languageOptions: {
21
+ parserOptions: { project: './tsconfig.json' }
22
+ },
23
+ settings: {
24
+ 'import-x/core-modules': ['cloudflare:workers'],
25
+ 'import-x/resolver': {
26
+ // node: { extensions: ['.js', '.mjs', '.ts'] }, TODO: Do not think this is required.
27
+ typescript: { project: ['./tsconfig.json'] }
28
+ }
29
+ }
30
+ },
31
+
32
+ // Ignores.
33
+ globalIgnores(['bundle-analysis-reports/**', 'dependency-check-bin/**', 'dependency-check-reports/**', 'dist/**', 'licenses/**']),
34
+
35
+ // Plugin configurations.
36
+ {
37
+ // '@eslint-community/eslint-comments' only ships a legacy config; manually convert to flat format.
38
+ plugins: { '@eslint-community/eslint-comments': pluginComments },
39
+ rules: {
40
+ '@eslint-community/eslint-comments/disable-enable-pair': 'error',
41
+ '@eslint-community/eslint-comments/no-aggregating-enable': 'error',
42
+ '@eslint-community/eslint-comments/no-duplicate-disable': 'error',
43
+ '@eslint-community/eslint-comments/no-unlimited-disable': 'error',
44
+ '@eslint-community/eslint-comments/no-unused-enable': 'error'
45
+ }
46
+ },
47
+ pluginImportFlatConfigs.recommended,
48
+ pluginRegexpConfigs['flat/recommended'],
49
+ pluginSecurity.configs.recommended,
50
+ (pluginSonarJS.configs?.['recommended'] ?? {}) as Linter.Config,
51
+ pluginUnicorn.configs.recommended,
52
+ skipFormatting,
53
+
54
+ // Rule overrides.
55
+ {
56
+ rules: {
57
+ '@typescript-eslint/no-unused-vars': 'warn',
58
+
59
+ 'import-x/no-duplicates': 'warn',
60
+ 'sort-imports': ['warn', { allowSeparatedGroups: true, ignoreCase: true, memberSyntaxSortOrder: ['none', 'all', 'single', 'multiple'] }],
61
+
62
+ '@eslint-community/eslint-comments/require-description': 'warn',
63
+
64
+ 'sonarjs/no-commented-code': 'warn',
65
+ 'sonarjs/no-dead-store': 'warn',
66
+ 'sonarjs/no-unused-vars': 'warn',
67
+ 'sonarjs/todo-tag': 'warn',
68
+
69
+ 'unicorn/filename-case': ['error', { cases: { camelCase: true, pascalCase: true }, ignore: ['updateDPUseDependencies'] }],
70
+ 'unicorn/no-null': 'off',
71
+ 'unicorn/switch-case-braces': ['warn', 'avoid']
72
+ }
73
+ }
74
+ );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dpuse/dpuse-development",
3
- "version": "0.3.497",
3
+ "version": "0.3.504",
4
4
  "description": "Actions for managing DPUse projects.",
5
5
  "license": "MIT",
6
6
  "author": "Jonathan Terrell <terrell.jm@gmail.com>",
@@ -41,40 +41,41 @@
41
41
  "vitest.config.ts"
42
42
  ],
43
43
  "dependencies": {
44
- "@dpuse/dpuse-shared": "^0.3.639",
45
- "acorn": "^8.16.0",
44
+ "@dpuse/dpuse-shared": "^0.3.671",
45
+ "acorn": "^8.17.0",
46
46
  "acorn-typescript": "^1.4.13",
47
47
  "acorn-walk": "^8.3.5",
48
- "nanoid": "^5.1.9",
49
- "valibot": "^1.3.1"
48
+ "nanoid": "^5.1.11",
49
+ "valibot": "^1.4.1"
50
50
  },
51
51
  "devDependencies": {
52
- "@dpuse/eslint-config-dpuse": "^1.0.55",
52
+ "@eslint-community/eslint-plugin-eslint-comments": "^4.7.2",
53
53
  "@types/eslint-plugin-security": "^3.0.1",
54
- "@types/node": "^25.6.0",
55
- "@typescript-eslint/eslint-plugin": "^8.59.0",
56
- "@typescript-eslint/parser": "^8.59.0",
57
- "eslint": "^9.39.2",
58
- "eslint-import-resolver-typescript": "^4.4.4",
59
- "eslint-plugin-import": "^2.32.0",
60
- "eslint-plugin-security": "^4.0.0",
54
+ "@types/node": "^25.9.3",
55
+ "eslint": "^10.5.0",
56
+ "eslint-config-prettier": "^10.1.8",
57
+ "eslint-import-resolver-typescript": "^4.4.5",
58
+ "eslint-plugin-import-x": "^4.16.2",
59
+ "eslint-plugin-regexp": "^3.1.0",
60
+ "eslint-plugin-security": "^4.0.1",
61
61
  "eslint-plugin-sonarjs": "^4.0.3",
62
- "eslint-plugin-unicorn": "^63.0.0",
63
- "jiti": "^2.6.1",
64
- "license-downloader": "^1.3.3",
65
- "license-report": "^6.8.2",
62
+ "eslint-plugin-unicorn": "^66.0.0",
63
+ "jiti": "^2.7.0",
64
+ "license-downloader": "^2.0.0",
65
+ "license-report": "^6.8.5",
66
66
  "license-report-check": "^1.0.0",
67
- "license-report-recursive": "^6.8.4",
68
- "npm-check-updates": "^21.0.2",
67
+ "license-report-recursive": "^6.8.5",
68
+ "npm-check-updates": "^22.2.3",
69
69
  "owasp-dependency-check": "^1.0.1",
70
- "prettier": "^3.8.3",
70
+ "prettier": "^3.8.4",
71
71
  "rollup-plugin-visualizer": "^7.0.1",
72
- "sonda": "^0.11.1",
73
- "type-fest": "^5.6.0",
74
- "typescript": "^5.9.3",
75
- "vite": "^8.0.9",
76
- "vite-plugin-dts": "^4.5.4",
77
- "vitest": "^4.1.4"
72
+ "sonda": "^0.13.0",
73
+ "type-fest": "^5.7.0",
74
+ "typescript": "^6.0.3",
75
+ "typescript-eslint": "^8.61.0",
76
+ "vite": "^8.0.16",
77
+ "vite-plugin-dts": "^5.0.2",
78
+ "vitest": "^4.1.8"
78
79
  },
79
80
  "scripts": {
80
81
  "audit": "op run --env-file=.env -- node -e \"import('./dist/dpuse-development.es.js').then(m => m.auditDependencies())\"",
package/tsconfig.json CHANGED
@@ -30,5 +30,5 @@
30
30
  "tsBuildInfoFile": "./node_modules/.cache/tsconfig.tsbuildinfo",
31
31
  "useDefineForClassFields": true
32
32
  },
33
- "include": ["src/**/*.ts", "tests/**/*.ts", "vite.config.*", "vitest.config.*"]
33
+ "include": ["eslint.config.ts", "src/**/*.ts", "tests/**/*.ts", "vite.config.*", "vitest.config.*"]
34
34
  }
package/vite.config.ts CHANGED
@@ -42,7 +42,7 @@ export default defineConfig({
42
42
  sourcemap: true,
43
43
  target: 'ESNext' // Emit modern JavaScript for consumers.
44
44
  },
45
- plugins: [dts({ outDir: 'dist/types' })], // Generate type declarations in dist/types.
45
+ plugins: [dts({ outDirs: 'dist/types' })], // Generate type declarations in dist/types.
46
46
  resolve: {
47
47
  alias: {
48
48
  '~': fileURLToPath(new URL('./', import.meta.url)), // Base alias matching tsconfig.
package/vitest.config.ts CHANGED
@@ -4,13 +4,13 @@
4
4
 
5
5
  // Dependencies - Vendor.
6
6
  import { defineConfig } from 'vitest/config';
7
- import { resolve } from 'node:path';
7
+ import path from 'node:path';
8
8
 
9
9
  // Exposures - Configuration.
10
10
  export default defineConfig({
11
11
  resolve: {
12
12
  alias: {
13
- '@': resolve(__dirname, './src')
13
+ '@': path.resolve(__dirname, './src')
14
14
  }
15
15
  },
16
16
  test: {