@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 CHANGED
@@ -7,15 +7,24 @@
7
7
 
8
8
  [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](./LICENSE)
9
9
  [![DPUse version](https://img.shields.io/github/v/release/dpuse/eslint-config-dpuse?color=f6821f&label=DPUse)](https://github.com/dpuse/eslint-config-dpuse/releases/latest)
10
+ [![npm version](https://img.shields.io/npm/v/@dpuse/eslint-config-dpuse?color=cb3837&label=npm)](https://www.npmjs.com/package/@dpuse/eslint-config-dpuse)
10
11
  [![CI](https://github.com/dpuse/eslint-config-dpuse/actions/workflows/ci.yml/badge.svg)](https://github.com/dpuse/eslint-config-dpuse/actions/workflows/ci.yml)
11
- [![CodeQL](https://github.com/dpuse/eslint-config-dpuse/actions/workflows/codeql.yml/badge.svg)](https://github.com/dpuse/eslint-config-dpuse/actions/workflows/codeql.yml)
12
- [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=dpuse_eslint-config-dpuse&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=dpuse_eslint-config-dpuse)
13
12
 
14
- [Documentation](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)
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. **Sourcing** uses a library of [Connectors](https://www.dpuse.app) 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. **Contextualising** extracts chronological events from those [Data Views](https://www.dpuse.app) and maps them into comprehensive [Context Models](https://www.dpuse.app). This provides the DPUse Engine with the structural framework required to generate deterministic transactions, facts, or observations. **Publishing** employs 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) allow you to build Data Apps using your preferred tools.
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
- <!-- USAGE_START -->
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
- This connector is automatically uploaded to the DPUse Engine cloud once released and becomes instantly available to all new browser app instances, with existing instances notified of the update.
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
- You may view or clone this repository for your own purposes, such as building a new, similar connector, though there is currently no process to accept third-party connectors into DPUse at this stage. Cloned or forked code is unsupported and isn't guaranteed to remain compatible with the DPUse Engine as it evolves.
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/) 22 or later, [npm](https://www.npmjs.com/) 11 or later, and [TypeScript](https://www.typescriptlang.org/) 6.0.3 or later._
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
- <!-- USAGE_END -->
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
- ### Dependency Licenses
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
- <!-- GOVERNANCE_START -->
75
+ <!-- QUALITY_SECURITY_START -->
58
76
 
59
- ## Security & Quality
77
+ ## Quality & Security
60
78
 
61
- ### CodeQL
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
- [CodeQL](https://github.com/dpuse/eslint-config-dpuse/security/code-scanning) static analysis runs on every push to `main` and on a weekly schedule, scanning TypeScript, JavaScript, Rust, and GitHub Actions workflow files for security vulnerabilities and coding errors.
81
+ ### Testing
64
82
 
65
- ### SonarCloud
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
- [SonarCloud](https://sonarcloud.io/summary/new_code?id=dpuse_eslint-config-dpuse) performs continuous code quality and security analysis on every push, detecting bugs, code smells, and security vulnerabilities in the TypeScript source.
88
+ ### Code Quality
68
89
 
69
- ### Vulnerability Scanning
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
- Two complementary tools continuously monitor dependencies for known vulnerabilities:
95
+ ### Security Analysis
72
96
 
73
- - [npm audit](https://docs.npmjs.com/cli/v8/commands/npm-audit) runs on every push to `main` via the CI workflow, failing the build if any high or critical severity vulnerabilities are detected.
74
- - [GitHub Dependabot](https://docs.github.com/en/code-security/dependabot) automatically raises pull requests to update vulnerable dependencies, drawing on the GitHub Advisory Database which combines NVD and npm-specific advisories.
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 | [![CodeQL](https://github.com/dpuse/eslint-config-dpuse/actions/workflows/codeql.yml/badge.svg)](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
- ### Supply Chain Security
103
+ ### Dependencies
77
104
 
78
- [Socket.dev](https://socket.dev) monitors all dependencies for supply chain risk — detecting malicious packages, dependency confusion, typosquatting, and suspicious behaviour that may not yet have a CVE.
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
+ [![OpenSSF Scorecard](https://api.scorecard.dev/projects/github.com/dpuse/eslint-config-dpuse/badge)](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
- ### OpenSSF 🚧
85
-
86
- [![OpenSSF Scorecard](https://api.scorecard.dev/projects/github.com/dpuse/eslint-config-dpuse/badge)](https://scorecard.dev/viewer/?uri=github.com/dpuse/eslint-config-dpuse)
123
+ <!-- QUALITY_SECURITY_END -->
87
124
 
88
- 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/viewer/?uri=github.com/dpuse/eslint-config-dpuse) provides an independent automated assessment of the project's security practices and is an ongoing area of improvement.
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-present Jonathan Terrell
137
+ [MIT](./LICENSE) © 2026 Jonathan Terrell
101
138
 
102
- <!-- GOVERNANCE_END -->
139
+ <!-- CONTRIBUTING_LICENSE_END -->
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,C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AE,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 }], // 'utf-8' is the standard name TextDecoder and chardet use, and Node accepts it too.
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;AACpD,OAAO,QAAQ,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AA0B5D,wHAAwH;AAExH,2HAA2H;AAC3H,MAAM,UAAU,qBAAqB,CAAC,OAAqC;IACvE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,EAAE,EAAE,KAAK,GAAG,EAAE,EAAE,GAAG,OAAO,CAAC;IAEpD,OAAO,YAAY;IACf,WAAW;IACX,aAAa,CA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ACJ,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.122",
3
+ "version": "1.0.124",
4
4
  "private": false,
5
- "description": "Common ESLint configuration used in most DPUse projects.",
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.checkConfigFiles())\" && node -e \"import('@dpuse/dpuse-development').then(m => m.checkDependencies())\"",
46
- "document": "npm run documentOpening && npm run documentUsage && npm run documentDependencies && npm run documentGovernance",
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:e2e": "echo \"❌ 'test:e2e' command not implemented.\"",
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.3.0",
61
+ "eslint-plugin-n": "^18.4.0",
67
62
  "eslint-plugin-regexp": "^3.3.1",
68
- "eslint-plugin-security": "^4.0.1",
69
- "eslint-plugin-sonarjs": "^4.2.1",
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.70.1"
66
+ "typescript-eslint": "^8.71.0"
72
67
  },
73
68
  "devDependencies": {
74
- "@dpuse/dpuse-development": "^0.3.722",
69
+ "@dpuse/dpuse-development": "^0.3.796",
75
70
  "@types/eslint-plugin-security": "^3.0.1",
76
- "@types/node": "^26.6.2",
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.70.1"
75
+ "typescript-eslint": "^8.71.0"
81
76
  }
82
- }
77
+ }