@dpuse/dpuse-development 0.3.633 → 0.3.635
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 +15 -16
- package/dist/dpuse-development.es.js +947 -966
- package/dist/dpuse-development.es.js.map +1 -1
- package/dist/types/eslint.config.d.ts +3 -2
- package/dist/types/eslint.config.default.d.ts +3 -0
- package/eslint.config.default.ts +9 -67
- package/package.json +5 -16
- package/vite.config.default.ts +1 -3
- package/vite.config.tool.ts +1 -3
- package/vite.config.wasm.ts +1 -3
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { Linter } from 'eslint';
|
|
2
|
+
declare const config: Linter.Config[];
|
|
3
|
+
export default config;
|
package/eslint.config.default.ts
CHANGED
|
@@ -1,73 +1,15 @@
|
|
|
1
1
|
// ── External Dependencies & Registrations
|
|
2
|
+
import { dpuseESLintConfig } from '@dpuse/eslint-config-dpuse';
|
|
2
3
|
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';
|
|
12
4
|
|
|
13
5
|
// ── ESLint Configuration ─────────────────────────────────────────────────────────────────────────────────────────────
|
|
14
6
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
},
|
|
23
|
-
settings: {
|
|
24
|
-
'import-x/core-modules': ['cloudflare:workers'],
|
|
25
|
-
'import-x/resolver': {
|
|
26
|
-
typescript: { project: ['./tsconfig.json'] }
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
},
|
|
7
|
+
const config: Linter.Config[] = dpuseESLintConfig({
|
|
8
|
+
files: ['eslint.config.ts', 'src/**/*.ts', 'vite.config.ts', 'vitest.config.ts'],
|
|
9
|
+
importCoreModules: ['cloudflare:workers'],
|
|
10
|
+
tsconfigPath: './tsconfig.json',
|
|
11
|
+
tsconfigRootDir: import.meta.dirname,
|
|
12
|
+
rules: {}
|
|
13
|
+
});
|
|
30
14
|
|
|
31
|
-
|
|
32
|
-
globalIgnores(['bundle-analysis-reports/**', 'dependency-check-bin/**', 'dependency-check-reports/**', 'dist/**', 'licenses/**', 'rust/**/pkg/**']),
|
|
33
|
-
|
|
34
|
-
// Plugin configurations.
|
|
35
|
-
{
|
|
36
|
-
// '@eslint-community/eslint-comments' only ships a legacy config; manually convert to flat format.
|
|
37
|
-
plugins: { '@eslint-community/eslint-comments': pluginComments },
|
|
38
|
-
rules: {
|
|
39
|
-
'@eslint-community/eslint-comments/disable-enable-pair': 'error',
|
|
40
|
-
'@eslint-community/eslint-comments/no-aggregating-enable': 'error',
|
|
41
|
-
'@eslint-community/eslint-comments/no-duplicate-disable': 'error',
|
|
42
|
-
'@eslint-community/eslint-comments/no-unlimited-disable': 'error',
|
|
43
|
-
'@eslint-community/eslint-comments/no-unused-enable': 'error'
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
pluginImportFlatConfigs.recommended,
|
|
47
|
-
pluginRegexpConfigs['flat/recommended'],
|
|
48
|
-
pluginSecurity.configs.recommended,
|
|
49
|
-
(pluginSonarJS.configs?.['recommended'] ?? {}) as Linter.Config,
|
|
50
|
-
pluginUnicorn.configs.recommended,
|
|
51
|
-
skipFormatting,
|
|
52
|
-
|
|
53
|
-
// Rule overrides.
|
|
54
|
-
{
|
|
55
|
-
rules: {
|
|
56
|
-
'sort-imports': ['warn', { allowSeparatedGroups: true, ignoreCase: true, memberSyntaxSortOrder: ['none', 'all', 'single', 'multiple'] }],
|
|
57
|
-
|
|
58
|
-
'@typescript-eslint/no-unused-vars': 'warn',
|
|
59
|
-
|
|
60
|
-
'@eslint-community/eslint-comments/require-description': 'warn',
|
|
61
|
-
|
|
62
|
-
'security/detect-object-injection': 'off',
|
|
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/no-null': 'off',
|
|
70
|
-
'unicorn/switch-case-braces': ['warn', 'avoid']
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
);
|
|
15
|
+
export default config;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dpuse/dpuse-development",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.635",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Actions for managing DPUse projects.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -63,35 +63,24 @@
|
|
|
63
63
|
"update": "node -e \"import('./dist/dpuse-development.es.js').then(m => m.updateDPUseDependencies(['eslint', 'shared']))\""
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"@dpuse/dpuse-shared": "^0.3.
|
|
66
|
+
"@dpuse/dpuse-shared": "^0.3.727",
|
|
67
67
|
"acorn": "^8.17.0",
|
|
68
68
|
"acorn-typescript": "^1.4.13",
|
|
69
69
|
"acorn-walk": "^8.3.5",
|
|
70
70
|
"license-checker-rseidelsohn": "^5.0.1",
|
|
71
|
-
"nanoid": "^5.1.16",
|
|
72
71
|
"npm-check-updates": "^22.2.9",
|
|
73
72
|
"valibot": "^1.4.2"
|
|
74
73
|
},
|
|
75
74
|
"devDependencies": {
|
|
76
|
-
"@
|
|
77
|
-
"@types/
|
|
78
|
-
"@types/node": "^26.0.1",
|
|
75
|
+
"@dpuse/eslint-config-dpuse": "^1.0.82",
|
|
76
|
+
"@types/node": "^26.1.0",
|
|
79
77
|
"eslint": "^10.6.0",
|
|
80
|
-
"eslint-config-prettier": "^10.1.8",
|
|
81
|
-
"eslint-import-resolver-typescript": "^4.4.5",
|
|
82
|
-
"eslint-plugin-import-x": "^4.17.1",
|
|
83
|
-
"eslint-plugin-regexp": "^3.1.1",
|
|
84
|
-
"eslint-plugin-security": "^4.0.1",
|
|
85
|
-
"eslint-plugin-sonarjs": "^4.1.0",
|
|
86
|
-
"eslint-plugin-unicorn": "^69.0.0",
|
|
87
78
|
"jiti": "^2.7.0",
|
|
88
79
|
"prettier": "^3.9.4",
|
|
89
|
-
"rollup-plugin-visualizer": "^7.0.1",
|
|
90
80
|
"sonda": "^0.13.1",
|
|
91
81
|
"type-fest": "^5.7.0",
|
|
92
82
|
"typescript": "^6.0.3",
|
|
93
|
-
"
|
|
94
|
-
"vite": "^8.1.2",
|
|
83
|
+
"vite": "^8.1.3",
|
|
95
84
|
"vite-plugin-dts": "^5.0.3",
|
|
96
85
|
"vite-plugin-wasm": "^3.6.0",
|
|
97
86
|
"vitest": "^4.1.9"
|
package/vite.config.default.ts
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
import { defineConfig } from 'vite';
|
|
3
3
|
import dts from 'vite-plugin-dts';
|
|
4
4
|
import Sonda from 'sonda/vite';
|
|
5
|
-
import { visualizer } from 'rollup-plugin-visualizer';
|
|
6
5
|
import { fileURLToPath, URL } from 'node:url';
|
|
7
6
|
|
|
8
7
|
// ── Data
|
|
@@ -20,8 +19,7 @@ export default defineConfig({
|
|
|
20
19
|
rollupOptions: {
|
|
21
20
|
plugins: [
|
|
22
21
|
Sonda({ filename: 'index', format: 'html', gzip: true, brotli: true, open: false, outputDir: './bundle-analysis-reports/sonda' }),
|
|
23
|
-
|
|
24
|
-
visualizer({ filename: './bundle-analysis-reports/rollup-visualiser/index.json', template: 'raw-data', gzipSize: true, brotliSize: true })
|
|
22
|
+
Sonda({ filename: 'index', format: 'json', gzip: true, brotli: true, open: false, outputDir: './bundle-analysis-reports/sonda' })
|
|
25
23
|
]
|
|
26
24
|
},
|
|
27
25
|
sourcemap: true,
|
package/vite.config.tool.ts
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
import { defineConfig } from 'vite';
|
|
3
3
|
import dts from 'vite-plugin-dts';
|
|
4
4
|
import Sonda from 'sonda/vite';
|
|
5
|
-
import { visualizer } from 'rollup-plugin-visualizer';
|
|
6
5
|
import { fileURLToPath, URL } from 'node:url';
|
|
7
6
|
|
|
8
7
|
// ── Data
|
|
@@ -21,8 +20,7 @@ export default defineConfig({
|
|
|
21
20
|
external: [/^https:\/\/engine-eu\.dpuse\.app\//],
|
|
22
21
|
plugins: [
|
|
23
22
|
Sonda({ filename: 'index', format: 'html', gzip: true, brotli: true, open: false, outputDir: './bundle-analysis-reports/sonda' }),
|
|
24
|
-
|
|
25
|
-
visualizer({ filename: './bundle-analysis-reports/rollup-visualiser/index.json', template: 'raw-data', gzipSize: true, brotliSize: true })
|
|
23
|
+
Sonda({ filename: 'index', format: 'json', gzip: true, brotli: true, open: false, outputDir: './bundle-analysis-reports/sonda' })
|
|
26
24
|
]
|
|
27
25
|
},
|
|
28
26
|
sourcemap: true,
|
package/vite.config.wasm.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// ── External Dependencies & Registrations
|
|
2
2
|
import dts from 'vite-plugin-dts';
|
|
3
3
|
import Sonda from 'sonda/vite';
|
|
4
|
-
import { visualizer } from 'rollup-plugin-visualizer';
|
|
5
4
|
import wasm from 'vite-plugin-wasm';
|
|
6
5
|
import { defineConfig, type PluginOption } from 'vite';
|
|
7
6
|
import { fileURLToPath, URL } from 'node:url';
|
|
@@ -25,8 +24,7 @@ export default defineConfig({
|
|
|
25
24
|
rollupOptions: {
|
|
26
25
|
plugins: [
|
|
27
26
|
Sonda({ filename: 'index', format: 'html', gzip: true, brotli: true, open: false, outputDir: './bundle-analysis-reports/sonda' }),
|
|
28
|
-
|
|
29
|
-
visualizer({ filename: './bundle-analysis-reports/rollup-visualiser/index.json', template: 'raw-data', gzipSize: true, brotliSize: true })
|
|
27
|
+
Sonda({ filename: 'index', format: 'json', gzip: true, brotli: true, open: false, outputDir: './bundle-analysis-reports/sonda' })
|
|
30
28
|
]
|
|
31
29
|
},
|
|
32
30
|
sourcemap: true,
|