@dpuse/dpuse-development 0.3.500 → 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.
- package/dist/dpuse-development.es.js +459 -439
- package/dist/dpuse-development.es.js.map +1 -1
- package/dist/types/eslint.config.d.ts +2 -0
- package/eslint.config.ts +73 -4
- package/package.json +22 -21
- package/tsconfig.json +1 -1
- package/vitest.config.ts +2 -2
package/eslint.config.ts
CHANGED
|
@@ -1,5 +1,74 @@
|
|
|
1
|
-
//
|
|
2
|
-
import
|
|
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
|
-
//
|
|
5
|
-
|
|
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.
|
|
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.
|
|
45
|
-
"acorn": "^8.
|
|
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
48
|
"nanoid": "^5.1.11",
|
|
49
|
-
"valibot": "^1.4.
|
|
49
|
+
"valibot": "^1.4.1"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@
|
|
52
|
+
"@eslint-community/eslint-plugin-eslint-comments": "^4.7.2",
|
|
53
53
|
"@types/eslint-plugin-security": "^3.0.1",
|
|
54
|
-
"@types/node": "^25.
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"eslint": "^
|
|
58
|
-
"eslint-import-resolver-typescript": "^4.4.4",
|
|
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",
|
|
59
58
|
"eslint-plugin-import-x": "^4.16.2",
|
|
60
|
-
"eslint-plugin-
|
|
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": "^
|
|
62
|
+
"eslint-plugin-unicorn": "^66.0.0",
|
|
63
63
|
"jiti": "^2.7.0",
|
|
64
64
|
"license-downloader": "^2.0.0",
|
|
65
|
-
"license-report": "^6.8.
|
|
65
|
+
"license-report": "^6.8.5",
|
|
66
66
|
"license-report-check": "^1.0.0",
|
|
67
|
-
"license-report-recursive": "^6.8.
|
|
68
|
-
"npm-check-updates": "^22.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.
|
|
70
|
+
"prettier": "^3.8.4",
|
|
71
71
|
"rollup-plugin-visualizer": "^7.0.1",
|
|
72
|
-
"sonda": "^0.
|
|
73
|
-
"type-fest": "^5.
|
|
72
|
+
"sonda": "^0.13.0",
|
|
73
|
+
"type-fest": "^5.7.0",
|
|
74
74
|
"typescript": "^6.0.3",
|
|
75
|
-
"
|
|
76
|
-
"vite
|
|
77
|
-
"
|
|
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/vitest.config.ts
CHANGED
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
|
|
5
5
|
// Dependencies - Vendor.
|
|
6
6
|
import { defineConfig } from 'vitest/config';
|
|
7
|
-
import
|
|
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: {
|