@dpuse/eslint-config-dpuse 1.0.122 → 1.0.124
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 +65 -28
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -6
- package/dist/index.js.map +1 -1
- package/package.json +14 -19
package/README.md
CHANGED
|
@@ -7,15 +7,24 @@
|
|
|
7
7
|
|
|
8
8
|
[](./LICENSE)
|
|
9
9
|
[](https://github.com/dpuse/eslint-config-dpuse/releases/latest)
|
|
10
|
+
[](https://www.npmjs.com/package/@dpuse/eslint-config-dpuse)
|
|
10
11
|
[](https://github.com/dpuse/eslint-config-dpuse/actions/workflows/ci.yml)
|
|
11
|
-
[](https://github.com/dpuse/eslint-config-dpuse/actions/workflows/codeql.yml)
|
|
12
|
-
[](https://sonarcloud.io/summary/new_code?id=dpuse_eslint-config-dpuse)
|
|
13
12
|
|
|
14
|
-
[
|
|
13
|
+
[DPUse](https://www.dpuse.app) · [Report a Vulnerability](https://github.com/dpuse/eslint-config-dpuse/security/advisories/new) · [Open an Issue](https://github.com/dpuse/eslint-config-dpuse/issues)
|
|
14
|
+
|
|
15
|
+
Common ESLint configuration used across DPUse projects.
|
|
15
16
|
|
|
16
17
|
## About DPUse
|
|
17
18
|
|
|
18
|
-
DPUse (Data Positioning & Use) is an in-browser application that positions your data for use through three core activities: sourcing, contextualising, and publishing.
|
|
19
|
+
DPUse (Data Positioning & Use) is an in-browser application that positions your data for use through three core activities: sourcing, contextualising, and publishing.
|
|
20
|
+
|
|
21
|
+
**Sourcing** uses a library of [Connectors](https://www.dpuse.app/connectors) to establish [Connections](https://www.dpuse.app) to applications, databases, file stores, and curated datasets; these connections are subsequently used to configure structured [Data Views](https://www.dpuse.app) from the underlying sources.
|
|
22
|
+
|
|
23
|
+
**Contextualising** extracts chronological events from those [Data Views](https://www.dpuse.app) and maps them into comprehensive [Context Models](https://www.dpuse.app). This gives the DPUse Engine the structural framework needed to generate deterministic transactions, facts, or observations.
|
|
24
|
+
|
|
25
|
+
**Publishing** uses a library of [Presenters](https://www.dpuse.app) to render standard [Presentations](https://www.dpuse.app) immediately using the contextualised data; additionally, [Cookbooks](https://www.dpuse.app) of [Recipes](https://www.dpuse.app) let you build Data Apps using your preferred tools.
|
|
26
|
+
|
|
27
|
+
In addition, DPUse provides [Tools](https://www.dpuse.app) used by the application, and you can use them to construct connectors and presenters.
|
|
19
28
|
|
|
20
29
|
## Introduction
|
|
21
30
|
|
|
@@ -23,13 +32,20 @@ Common ESLint configuration used in most DPUse projects.
|
|
|
23
32
|
|
|
24
33
|
<!-- OPENING_END -->
|
|
25
34
|
|
|
35
|
+
<!-- USAGE_START -->
|
|
36
|
+
|
|
26
37
|
## Usage
|
|
27
38
|
|
|
28
|
-
|
|
39
|
+
This [package](https://www.npmjs.com/package/@dpuse/eslint-config-dpuse) is available on [npm](https://www.npmjs.com/). Install it with:
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
npm install @dpuse/eslint-config-dpuse
|
|
43
|
+
```
|
|
29
44
|
|
|
30
|
-
|
|
45
|
+
> [!WARNING]
|
|
46
|
+
> This project is not designed for general use. It is custom built for the DPUse CI/CD process. You are welcome to clone and customise it for your own purposes, but you will need to adapt it to your own project structure and tooling.
|
|
31
47
|
|
|
32
|
-
|
|
48
|
+
To work on the source instead, clone this repository.
|
|
33
49
|
|
|
34
50
|
```bash
|
|
35
51
|
git clone https://github.com/dpuse/eslint-config-dpuse.git
|
|
@@ -37,14 +53,16 @@ cd eslint-config-dpuse
|
|
|
37
53
|
npm install
|
|
38
54
|
```
|
|
39
55
|
|
|
40
|
-
_Requires [Node.js](https://nodejs.org/)
|
|
56
|
+
_Requires [Node.js](https://nodejs.org/) 24 or later, [npm](https://www.npmjs.com/) 12 or later, and [TypeScript](https://www.typescriptlang.org/) 6.0.3 or later._
|
|
41
57
|
|
|
42
|
-
|
|
58
|
+
This repository is managed using the common set of actions provided by [@dpuse/dpuse-development](https://github.com/dpuse/dpuse-development). See the `scripts` block in [package.json](https://github.com/dpuse/eslint-config-dpuse/blob/main/package.json) for details.
|
|
43
59
|
|
|
44
|
-
|
|
60
|
+
<!-- USAGE_END -->
|
|
45
61
|
|
|
46
62
|
<!-- DEPENDENCY_LICENSES_START -->
|
|
47
63
|
|
|
64
|
+
## Dependency Licenses
|
|
65
|
+
|
|
48
66
|
> [!WARNING]
|
|
49
67
|
> Dependency licenses are not documented here: @dpuse/eslint-config-dpuse is a development-only tool and is never part of a production release.
|
|
50
68
|
|
|
@@ -54,38 +72,57 @@ _Requires [Node.js](https://nodejs.org/) 22 or later, [npm](https://www.npmjs.co
|
|
|
54
72
|
|
|
55
73
|
<!-- DEPENDENCY_TREE_END -->
|
|
56
74
|
|
|
57
|
-
<!--
|
|
75
|
+
<!-- QUALITY_SECURITY_START -->
|
|
58
76
|
|
|
59
|
-
##
|
|
77
|
+
## Quality & Security
|
|
60
78
|
|
|
61
|
-
|
|
79
|
+
This section is updated each time `npm run document` is run. Settings come from the repository's workflow files and GitHub. Test coverage and the Fallow score are measured at the same time.
|
|
62
80
|
|
|
63
|
-
|
|
81
|
+
### Testing
|
|
64
82
|
|
|
65
|
-
|
|
83
|
+
| Check | Status | What it does |
|
|
84
|
+
| :------------------- | :----- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
85
|
+
| Unit tests | ✅ On | [Vitest](https://vitest.dev) runs the unit tests. Part of the [CI workflow](https://github.com/dpuse/eslint-config-dpuse/actions/workflows/ci.yml) on every push and pull request to `main`. |
|
|
86
|
+
| Property-based tests | ❌ Off | [fast-check](https://fast-check.dev) runs many random inputs per test to find edge cases, alongside the unit tests. |
|
|
66
87
|
|
|
67
|
-
|
|
88
|
+
### Code Quality
|
|
68
89
|
|
|
69
|
-
|
|
90
|
+
| Check | Status | What it does |
|
|
91
|
+
| :------------ | :----- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
92
|
+
| Code analysis | ❌ Off | [SonarCloud](https://sonarcloud.io) checks every push for bugs, code smells and vulnerabilities. |
|
|
93
|
+
| Linting | ✅ On | [ESLint](https://eslint.org) checks the code for errors and style problems. Part of the [CI workflow](https://github.com/dpuse/eslint-config-dpuse/actions/workflows/ci.yml) on every push and pull request to `main`. |
|
|
70
94
|
|
|
71
|
-
|
|
95
|
+
### Security Analysis
|
|
72
96
|
|
|
73
|
-
|
|
74
|
-
|
|
97
|
+
| Check | Status | What it does |
|
|
98
|
+
| :-------------- | :----- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
99
|
+
| Push protection | ✅ On | [GitHub push protection](https://docs.github.com/en/code-security/secret-scanning/push-protection-for-repositories-and-organizations) blocks pushes that contain credentials. |
|
|
100
|
+
| Static analysis | ✅ On | [](https://github.com/dpuse/eslint-config-dpuse/security/code-scanning) [CodeQL](https://codeql.github.com) scans GitHub Actions and JavaScript/TypeScript for security vulnerabilities, using the extended security queries, on every push and pull request to `main` and weekly. |
|
|
101
|
+
| Secret scanning | ✅ On | [GitHub secret scanning](https://docs.github.com/en/code-security/secret-scanning) detects credentials, such as API keys and tokens, committed to the repository. |
|
|
75
102
|
|
|
76
|
-
###
|
|
103
|
+
### Dependencies
|
|
77
104
|
|
|
78
|
-
|
|
105
|
+
| Check | Status | What it does |
|
|
106
|
+
| :------------------ | :----- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
107
|
+
| Vulnerability audit | ✅ On | [npm audit](https://docs.npmjs.com/cli/commands/npm-audit) fails when a shipped dependency has any known vulnerability, or a development dependency has a high or critical one. Part of the [CI workflow](https://github.com/dpuse/eslint-config-dpuse/actions/workflows/ci.yml) on every push and pull request to `main`. |
|
|
108
|
+
| Supply chain risk | ✅ On | [Socket](https://socket.dev) flags malicious packages, typosquatting and suspicious behaviour that may not yet have a CVE. |
|
|
109
|
+
| Security alerts | ✅ On | [Dependabot](https://docs.github.com/en/code-security/dependabot) alerts when a dependency has a known vulnerability, using the GitHub Advisory Database. |
|
|
110
|
+
| Security updates | ❌ Off | [Dependabot](https://docs.github.com/en/code-security/dependabot) opens pull requests that update vulnerable dependencies. These are handled manually. |
|
|
111
|
+
| Version updates | ❌ Off | [Dependabot](https://docs.github.com/en/code-security/dependabot) opens pull requests for new dependency versions. These are handled manually. |
|
|
112
|
+
|
|
113
|
+
### OpenSSF 🚧
|
|
114
|
+
|
|
115
|
+
[](https://scorecard.dev/viewer/?uri=github.com/dpuse/eslint-config-dpuse)
|
|
116
|
+
|
|
117
|
+
This project is working towards the [OpenSSF Best Practices](https://www.bestpractices.dev) Passing badge, a self-certification covering security policy, vulnerability reporting, build processes, code quality, and more. Currently the [OpenSSF Scorecard](https://scorecard.dev) provides an independent automated assessment of the project's security practices and is an ongoing area of improvement.
|
|
79
118
|
|
|
80
119
|
### Reporting Vulnerabilities
|
|
81
120
|
|
|
82
121
|
Please do not open public GitHub issues for security vulnerabilities. Use [GitHub private vulnerability reporting](https://github.com/dpuse/eslint-config-dpuse/security/advisories/new) instead. See [SECURITY.md](./SECURITY.md) for the full disclosure policy, contact details, and expected response times.
|
|
83
122
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
[](https://scorecard.dev/viewer/?uri=github.com/dpuse/eslint-config-dpuse)
|
|
123
|
+
<!-- QUALITY_SECURITY_END -->
|
|
87
124
|
|
|
88
|
-
|
|
125
|
+
<!-- CONTRIBUTING_LICENSE_START -->
|
|
89
126
|
|
|
90
127
|
## Contributing
|
|
91
128
|
|
|
@@ -97,6 +134,6 @@ For security vulnerabilities, see [Reporting Vulnerabilities](#reporting-vulnera
|
|
|
97
134
|
|
|
98
135
|
This project is licensed under the MIT License, permitting free use, modification, and distribution.
|
|
99
136
|
|
|
100
|
-
[MIT](./LICENSE) © 2026
|
|
137
|
+
[MIT](./LICENSE) © 2026 Jonathan Terrell
|
|
101
138
|
|
|
102
|
-
<!--
|
|
139
|
+
<!-- CONTRIBUTING_LICENSE_END -->
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAcrC,6HAA6H;AAC7H,MAAM,WAAW,4BAA4B;IACzC,2CAA2C;IAC3C,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,4FAA4F;IAC5F,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,sGAAsG;IACtG,KAAK,CAAC,EAAE,MAAM,CAAC,WAAW,CAAC;CAC9B;AAED,oFAAoF;AACpF,MAAM,WAAW,wBAAyB,SAAQ,IAAI,CAAC,4BAA4B,EAAE,OAAO,CAAC;IACzF,8FAA8F;IAC9F,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,6GAA6G;IAC7G,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC7B,mHAAmH;IACnH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,mIAAmI;IACnI,eAAe,CAAC,EAAE,MAAM,CAAC;CAC5B;AAID,2HAA2H;AAC3H,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,4BAA4B,GAAG,MAAM,CAAC,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAcrC,6HAA6H;AAC7H,MAAM,WAAW,4BAA4B;IACzC,2CAA2C;IAC3C,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,4FAA4F;IAC5F,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,sGAAsG;IACtG,KAAK,CAAC,EAAE,MAAM,CAAC,WAAW,CAAC;CAC9B;AAED,oFAAoF;AACpF,MAAM,WAAW,wBAAyB,SAAQ,IAAI,CAAC,4BAA4B,EAAE,OAAO,CAAC;IACzF,8FAA8F;IAC9F,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,6GAA6G;IAC7G,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC7B,mHAAmH;IACnH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,mIAAmI;IACnI,eAAe,CAAC,EAAE,MAAM,CAAC;CAC5B;AAID,2HAA2H;AAC3H,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,4BAA4B,GAAG,MAAM,CAAC,MAAM,EAAE,CA4E5F;AAED,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,wBAAwB,GAAG,MAAM,CAAC,MAAM,EAAE,CA4BpF;AAED,eAAe,iBAAiB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -33,14 +33,11 @@ export function dpuseBaseESLintConfig(options) {
|
|
|
33
33
|
'n/no-unsupported-features/node-builtins': 'error'
|
|
34
34
|
}
|
|
35
35
|
}, pluginRegexpConfigs['flat/recommended'], pluginSecurity.configs.recommended, pluginSonarJS.configs.recommended, pluginUnicorn.configs.recommended, skipFormatting,
|
|
36
|
-
// Rule overrides.
|
|
36
|
+
// Rule overrides. Not limited to 'files', because the plugins above apply to every linted file, so without this a
|
|
37
|
+
// file outside 'files' (e.g. a '.mjs' script) would get the plugin defaults instead of the DPUse settings.
|
|
37
38
|
{
|
|
38
|
-
files,
|
|
39
39
|
rules: {
|
|
40
40
|
'sort-imports': ['warn', { allowSeparatedGroups: true, ignoreCase: true, memberSyntaxSortOrder: ['none', 'all', 'single', 'multiple'] }],
|
|
41
|
-
// A leading underscore marks a binding that exists only to be discarded, such as the key omitted by a
|
|
42
|
-
// destructuring rest.
|
|
43
|
-
'@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_', caughtErrorsIgnorePattern: '^_', varsIgnorePattern: '^_' }],
|
|
44
41
|
'@eslint-community/eslint-comments/require-description': 'warn',
|
|
45
42
|
'security/detect-object-injection': 'off', // Generates too many false positives.
|
|
46
43
|
'sonarjs/no-commented-code': 'warn',
|
|
@@ -58,7 +55,16 @@ export function dpuseBaseESLintConfig(options) {
|
|
|
58
55
|
'unicorn/no-null': 'off', // Null is required for JSON interop.
|
|
59
56
|
'unicorn/single-line-block-comment-style': 'off', // Prefer compact single line when appropriate.
|
|
60
57
|
'unicorn/switch-case-braces': ['warn', 'avoid'],
|
|
61
|
-
'unicorn/text-encoding-identifier-case': ['error', { withDash: true }]
|
|
58
|
+
'unicorn/text-encoding-identifier-case': ['error', { withDash: true }] // 'utf-8' is the standard name TextDecoder and chardet use, and Node accepts it too.
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
// TypeScript and project rule overrides. Limited to 'files', where the TypeScript plugin is set up.
|
|
62
|
+
{
|
|
63
|
+
files,
|
|
64
|
+
rules: {
|
|
65
|
+
// A leading underscore marks a binding that exists only to be discarded, such as the key omitted by a
|
|
66
|
+
// destructuring rest.
|
|
67
|
+
'@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_', caughtErrorsIgnorePattern: '^_', varsIgnorePattern: '^_' }],
|
|
62
68
|
...rules
|
|
63
69
|
}
|
|
64
70
|
});
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,cAAc,MAAM,iDAAiD,CAAC;AAC7E,OAAO,EAAE,WAAW,IAAI,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AAChF,OAAO,OAAO,MAAM,iBAAiB,CAAC;AACtC,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AACtE,OAAO,cAAc,MAAM,wBAAwB,CAAC;AACpD,OAAO,aAAa,MAAM,uBAAuB,CAAC;AAClD,OAAO,aAAa,MAAM,uBAAuB,CAAC;AAClD,OAAO,cAAc,MAAM,wBAAwB,CAAC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,KAAK;SACX;KACJ,CACJ,CAAC;AACN,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,OAAiC;IAC/D,MAAM,EACF,KAAK,GAAG,CAAC,kBAAkB,EAAE,aAAa,EAAE,eAAe,EAAE,gBAAgB,EAAE,kBAAkB,CAAC,EAClG,OAAO,GAAG,EAAE,EACZ,iBAAiB,GAAG,EAAE,EACtB,KAAK,GAAG,EAAE,EACV,YAAY,GAAG,iBAAiB,EAChC,eAAe,EAAE,qBAAqB,GAAG,OAAO,CAAC,GAAG,EAAE,EACzD,GAAG,OAAO,CAAC;IAEZ,OAAO,YAAY;IACf,uEAAuE;IACvE;QACI,KAAK;QACL,OAAO,EAAE,CAAC,GAAG,QAAQ,CAAC,OAAO,CAAC,iBAAiB,EAAE,GAAG,QAAQ,CAAC,OAAO,CAAC,oBAAoB,CAAC;QAC1F,eAAe,EAAE;YACb,aAAa,EAAE,EAAE,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,qBAAqB,EAAE;SACnF;QACD,QAAQ,EAAE;YACN,uBAAuB,EAAE,iBAAiB;YAC1C,mBAAmB,EAAE;gBACjB,UAAU,EAAE,EAAE,OAAO,EAAE,CAAC,YAAY,CAAC,EAAE;aAC1C;SACJ;KACJ,EAED,GAAG,qBAAqB,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,CACtD,CAAC;AACN,CAAC;AAED,eAAe,iBAAiB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dpuse/eslint-config-dpuse",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.124",
|
|
4
4
|
"private": false,
|
|
5
|
-
"description": "Common ESLint configuration used
|
|
5
|
+
"description": "Common ESLint configuration used across DPUse projects.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "Jonathan Terrell <terrell.jm@gmail.com>",
|
|
8
8
|
"type": "module",
|
|
@@ -42,18 +42,13 @@
|
|
|
42
42
|
"scripts": {
|
|
43
43
|
"audit": "node -e \"import('@dpuse/dpuse-development').then(m => m.auditDependencies())\"",
|
|
44
44
|
"build": "tsc -p tsconfig.build.json",
|
|
45
|
-
"check": "node -e \"import('@dpuse/dpuse-development').then(m => m.
|
|
46
|
-
"document": "
|
|
47
|
-
"documentDependencies": "node -e \"import('@dpuse/dpuse-development').then(m => m.documentDependencies(''))\"",
|
|
48
|
-
"documentGovernance": "node -e \"import('@dpuse/dpuse-development').then(m => m.documentGovernance())\"",
|
|
49
|
-
"documentOpening": "node -e \"import('@dpuse/dpuse-development').then(m => m.documentOpening())\"",
|
|
50
|
-
"documentUsage": "node -e \"import('@dpuse/dpuse-development').then(m => m.documentUsage())\"",
|
|
45
|
+
"check": "node -e \"import('@dpuse/dpuse-development').then(m => m.checkProject())\"",
|
|
46
|
+
"document": "node -e \"import('@dpuse/dpuse-development').then(m => m.documentProject(''))\"",
|
|
51
47
|
"format": "node -e \"import('@dpuse/dpuse-development').then(m => m.formatCode())\"",
|
|
52
48
|
"lint": "node -e \"import('@dpuse/dpuse-development').then(m => m.lintCode())\"",
|
|
53
|
-
"release": "npm run sync && gh release create \"v$(npm pkg get version | tr -d '\"')\" --target \"$(git rev-parse HEAD)\" --generate-notes --latest",
|
|
49
|
+
"release": "npm run build && npm run document && npm run sync && gh release create \"v$(npm pkg get version | tr -d '\"')\" --target \"$(git rev-parse HEAD)\" --generate-notes --latest",
|
|
54
50
|
"sync": "node -e \"import('@dpuse/dpuse-development').then(m => m.syncProjectWithGitHub())\"",
|
|
55
|
-
"test
|
|
56
|
-
"test:unit": "echo \"❌ 'test:unit' command not implemented.\""
|
|
51
|
+
"test": "node -e \"import('@dpuse/dpuse-development').then(m => m.testProject())\""
|
|
57
52
|
},
|
|
58
53
|
"peerDependencies": {
|
|
59
54
|
"eslint": "^10.11.0"
|
|
@@ -63,20 +58,20 @@
|
|
|
63
58
|
"eslint-config-prettier": "^10.1.8",
|
|
64
59
|
"eslint-import-resolver-typescript": "^4.4.5",
|
|
65
60
|
"eslint-plugin-import-x": "^4.17.1",
|
|
66
|
-
"eslint-plugin-n": "^18.
|
|
61
|
+
"eslint-plugin-n": "^18.4.0",
|
|
67
62
|
"eslint-plugin-regexp": "^3.3.1",
|
|
68
|
-
"eslint-plugin-security": "^4.0
|
|
69
|
-
"eslint-plugin-sonarjs": "^4.2.
|
|
63
|
+
"eslint-plugin-security": "^4.1.0",
|
|
64
|
+
"eslint-plugin-sonarjs": "^4.2.2",
|
|
70
65
|
"eslint-plugin-unicorn": "^76.0.0",
|
|
71
|
-
"typescript-eslint": "^8.
|
|
66
|
+
"typescript-eslint": "^8.71.0"
|
|
72
67
|
},
|
|
73
68
|
"devDependencies": {
|
|
74
|
-
"@dpuse/dpuse-development": "^0.3.
|
|
69
|
+
"@dpuse/dpuse-development": "^0.3.796",
|
|
75
70
|
"@types/eslint-plugin-security": "^3.0.1",
|
|
76
|
-
"@types/node": "^26.6.
|
|
71
|
+
"@types/node": "^26.6.3",
|
|
77
72
|
"eslint": "^10.11.0",
|
|
78
73
|
"prettier": "^3.9.9",
|
|
79
74
|
"typescript": "^6.0.3",
|
|
80
|
-
"typescript-eslint": "^8.
|
|
75
|
+
"typescript-eslint": "^8.71.0"
|
|
81
76
|
}
|
|
82
|
-
}
|
|
77
|
+
}
|