@dpuse/eslint-config-dpuse 1.0.72 → 1.0.79

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.
Files changed (34) hide show
  1. package/.markdownlint.json +1 -0
  2. package/README.md +147 -18
  3. package/config.json +3 -2
  4. package/dist/index.d.ts +2 -4
  5. package/dist/index.d.ts.map +1 -1
  6. package/dist/index.js +2 -5
  7. package/dist/index.js.map +1 -1
  8. package/eslint.config.ts +4 -7
  9. package/package.json +30 -34
  10. package/src/index.ts +5 -7
  11. package/tsconfig.build.json +32 -0
  12. package/tsconfig.json +8 -3
  13. package/licenses/@typescript-eslint/eslint-plugin.LICENSE.txt +0 -21
  14. package/licenses/@typescript-eslint/parser.LICENSE.txt +0 -21
  15. package/licenses/downloads/@typescript-eslint/eslint-plugin.LICENSE.txt +0 -21
  16. package/licenses/downloads/@typescript-eslint/parser.LICENSE.txt +0 -21
  17. package/licenses/downloads/@typescript-eslint/utils.LICENSE.txt +0 -21
  18. package/licenses/downloads/eslint-import-resolver-typescript.LICENSE.txt +0 -5
  19. package/licenses/downloads/eslint-plugin-import-x.LICENSE.txt +0 -22
  20. package/licenses/downloads/eslint-plugin-prettier.LICENSE.txt +0 -24
  21. package/licenses/downloads/eslint-plugin-security.LICENSE.txt +0 -202
  22. package/licenses/downloads/eslint-plugin-sonarjs.LICENSE.txt +0 -184
  23. package/licenses/downloads/eslint-plugin-unicorn.LICENSE.txt +0 -9
  24. package/licenses/downloads/eslint.LICENSE.txt +0 -19
  25. package/licenses/downloads/licenses.ext.json +0 -1
  26. package/licenses/eslint-plugin-import.LICENSE.txt +0 -22
  27. package/licenses/eslint-plugin-prettier.LICENSE.txt +0 -24
  28. package/licenses/eslint-plugin-security.LICENSE.txt +0 -202
  29. package/licenses/eslint-plugin-sonarjs.LICENSE.txt +0 -184
  30. package/licenses/eslint-plugin-unicorn.LICENSE.txt +0 -9
  31. package/licenses/eslint.LICENSE.txt +0 -19
  32. package/licenses/licenses.ext.json +0 -1
  33. package/licenses/licenses.json +0 -1
  34. package/tsconfig.eslint.json +0 -7
@@ -1,4 +1,5 @@
1
1
  {
2
+ "MD007": { "indent": 4 },
2
3
  "MD013": false,
3
4
  "MD033": false,
4
5
  "MD041": false
package/README.md CHANGED
@@ -1,11 +1,9 @@
1
1
  # DPUse ESLint Configuration
2
2
 
3
- [![npm version](https://img.shields.io/npm/v/@dpuse/eslint-config-dpuse.svg)](https://www.npmjs.com/package/@dpuse/eslint-config-dpuse)
4
3
  [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](./LICENSE)
5
- <span><!-- OWASP_BADGES_START -->
6
- [![OWASP](https://img.shields.io/badge/OWASP-passed-4CAF50)](https://data-positioning.github.io/eslint-config-dpuse/dependency-check-reports/dependency-check-report.html)
4
+ [![npm version](https://img.shields.io/npm/v/@dpuse/eslint-config-dpuse.svg)](https://www.npmjs.com/package/@dpuse/eslint-config-dpuse)
7
5
 
8
- <!-- OWASP_BADGES_END --></span>
6
+ ## Introduction
9
7
 
10
8
  Common ESLint configuration used in most DPUse projects.
11
9
 
@@ -22,20 +20,151 @@ The OWASP Dependency Check Report identifies known vulnerabilities in project de
22
20
  The following table lists top-level production and peer dependencies. All these dependencies (including transitive ones) have been recursively verified to use Apache-2.0, LGPL-3.0-only, or MIT—commercially friendly licenses with minimal restrictions. Developers cloning this repository should independently verify dev and optional dependencies; users of the uploaded library are covered by these checks. We do not include unlicensed dependencies. Used to support development activity and not released as part of the production release. Check if you clone.
23
21
 
24
22
  <!-- DEPENDENCY_LICENSES_START -->
25
- |Name|Type|Installed|Latest|Latest Released|Deps|Document|
26
- |:-|:-|:-:|:-:|:-|-:|:-|
27
- |@types/eslint-plugin-security|MIT|3.0.1|3.0.1|3 months ago: 2026-01-21|n/a|⚠️ No license file|
28
- |@typescript-eslint/eslint-plugin|MIT|8.59.3|8.59.3|this month: 2026-05-11|n/a|[LICENSE](https://raw.githubusercontent.com/typescript-eslint/typescript-eslint/main/LICENSE)|
29
- |@typescript-eslint/parser|MIT|8.59.3|8.59.3|this month: 2026-05-11|n/a|[LICENSE](https://raw.githubusercontent.com/typescript-eslint/typescript-eslint/main/LICENSE)|
30
- |@typescript-eslint/utils|MIT|8.59.3|8.59.3|this month: 2026-05-11|n/a|[LICENSE](https://raw.githubusercontent.com/typescript-eslint/typescript-eslint/main/LICENSE)|
31
- |eslint|n/a|n/a ⚠️|9.39.4|this month: 2026-05-01|n/a|[LICENSE](https://raw.githubusercontent.com/eslint/eslint/main/LICENSE)|
32
- |eslint-import-resolver-typescript|ISC|4.4.4|4.4.4|10 months ago: 2025-06-25 ⚠️|n/a|[LICENSE](https://raw.githubusercontent.com/import-js/eslint-import-resolver-typescript/master/LICENSE)|
33
- |eslint-plugin-import-x|MIT|4.16.2|4.16.2|2 months ago: 2026-03-11|n/a|[LICENSE](https://raw.githubusercontent.com/un-ts/eslint-plugin-import-x/master/LICENSE)|
34
- |eslint-plugin-prettier|MIT|5.5.5|5.5.5|3 months ago: 2026-01-14|n/a|[LICENSE.md](https://raw.githubusercontent.com/prettier/eslint-plugin-prettier/main/LICENSE.md)|
35
- |eslint-plugin-security|Apache-2.0|4.0.0|4.0.0|2 months ago: 2026-02-19|n/a|[LICENSE](https://raw.githubusercontent.com/eslint-community/eslint-plugin-security/main/LICENSE)|
36
- |eslint-plugin-sonarjs|LGPL-3.0-only|4.0.3|4.0.3|this month: 2026-04-16|n/a|[LICENSE.txt](https://raw.githubusercontent.com/SonarSource/SonarJS/master/LICENSE.txt)|
37
- |eslint-plugin-unicorn|n/a|n/a ⚠️|63.0.0|1 month ago: 2026-03-27|n/a|[license](https://raw.githubusercontent.com/sindresorhus/eslint-plugin-unicorn/main/license)|
23
+ |Dependency|Version|License(s)|Document|
24
+ |:-|:-:|:-|:-|
25
+ |[@babel/helper-validator-identifier](https://github.com/babel/babel)|7.29.7|MIT|[LICENSE](licenses/downloads/@babel/helper-validator-identifier@7.29.7-LICENSE.txt)|
26
+ |[@eslint-community/eslint-plugin-eslint-comments](https://github.com/eslint-community/eslint-plugin-eslint-comments)|4.7.2|MIT|[LICENSE](licenses/downloads/@eslint-community/eslint-plugin-eslint-comments@4.7.2-LICENSE.txt)|
27
+ |[@eslint-community/eslint-utils](https://github.com/eslint-community/eslint-utils)|4.9.1|MIT|[LICENSE](licenses/downloads/@eslint-community/eslint-utils@4.9.1-LICENSE.txt)|
28
+ |[@eslint-community/regexpp](https://github.com/eslint-community/regexpp)|4.12.2|MIT|[LICENSE](licenses/downloads/@eslint-community/regexpp@4.12.2-LICENSE.txt)|
29
+ |[@eslint/config-array](https://github.com/eslint/rewrite)|0.23.5|Apache-2.0|[LICENSE](licenses/downloads/@eslint/config-array@0.23.5-LICENSE.txt)|
30
+ |[@eslint/config-helpers](https://github.com/eslint/rewrite)|0.6.0|Apache-2.0|[LICENSE](licenses/downloads/@eslint/config-helpers@0.6.0-LICENSE.txt)|
31
+ |[@eslint/core](https://github.com/eslint/rewrite)|1.2.1|Apache-2.0|[LICENSE](licenses/downloads/@eslint/core@1.2.1-LICENSE.txt)|
32
+ |[@eslint/object-schema](https://github.com/eslint/rewrite)|3.0.5|Apache-2.0|[LICENSE](licenses/downloads/@eslint/object-schema@3.0.5-LICENSE.txt)|
33
+ |[@eslint/plugin-kit](https://github.com/eslint/rewrite)|0.7.2|Apache-2.0|[LICENSE](licenses/downloads/@eslint/plugin-kit@0.7.2-LICENSE.txt)|
34
+ |[@humanfs/core](https://github.com/humanwhocodes/humanfs)|0.19.1|Apache-2.0|[LICENSE](licenses/downloads/@humanfs/core@0.19.1-LICENSE.txt)|
35
+ |[@humanfs/node](https://github.com/humanwhocodes/humanfs)|0.16.7|Apache-2.0|[LICENSE](licenses/downloads/@humanfs/node@0.16.7-LICENSE.txt)|
36
+ |[@humanwhocodes/module-importer](https://github.com/humanwhocodes/module-importer)|1.0.1|Apache-2.0|[LICENSE](licenses/downloads/@humanwhocodes/module-importer@1.0.1-LICENSE.txt)|
37
+ |[@humanwhocodes/retry](https://github.com/humanwhocodes/retry)|0.4.3|Apache-2.0|[LICENSE](licenses/downloads/@humanwhocodes/retry@0.4.3-LICENSE.txt)|
38
+ |[@types/eslint-plugin-security](https://github.com/DefinitelyTyped/DefinitelyTyped)|3.0.1|MIT|[LICENSE](licenses/downloads/@types/eslint-plugin-security@3.0.1-LICENSE.txt)|
39
+ |[@types/eslint](https://github.com/DefinitelyTyped/DefinitelyTyped)|9.6.1|MIT|[LICENSE](licenses/downloads/@types/eslint@9.6.1-LICENSE.txt)|
40
+ |[@types/esrecurse](https://github.com/DefinitelyTyped/DefinitelyTyped)|4.3.1|MIT|[LICENSE](licenses/downloads/@types/esrecurse@4.3.1-LICENSE.txt)|
41
+ |[@types/estree](https://github.com/DefinitelyTyped/DefinitelyTyped)|1.0.8|MIT|[LICENSE](licenses/downloads/@types/estree@1.0.8-LICENSE.txt)|
42
+ |[@types/json-schema](https://github.com/DefinitelyTyped/DefinitelyTyped)|7.0.15|MIT|[LICENSE](licenses/downloads/@types/json-schema@7.0.15-LICENSE.txt)|
43
+ |[@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint)|8.62.1|MIT|[LICENSE](licenses/downloads/@typescript-eslint/eslint-plugin@8.62.1-LICENSE.txt)|
44
+ |[@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint)|8.62.1|MIT|[LICENSE](licenses/downloads/@typescript-eslint/parser@8.62.1-LICENSE.txt)|
45
+ |[@typescript-eslint/project-service](https://github.com/typescript-eslint/typescript-eslint)|8.62.1|MIT|[LICENSE](licenses/downloads/@typescript-eslint/project-service@8.62.1-LICENSE.txt)|
46
+ |[@typescript-eslint/scope-manager](https://github.com/typescript-eslint/typescript-eslint)|8.62.1|MIT|[LICENSE](licenses/downloads/@typescript-eslint/scope-manager@8.62.1-LICENSE.txt)|
47
+ |[@typescript-eslint/tsconfig-utils](https://github.com/typescript-eslint/typescript-eslint)|8.62.1|MIT|[LICENSE](licenses/downloads/@typescript-eslint/tsconfig-utils@8.62.1-LICENSE.txt)|
48
+ |[@typescript-eslint/type-utils](https://github.com/typescript-eslint/typescript-eslint)|8.62.1|MIT|[LICENSE](licenses/downloads/@typescript-eslint/type-utils@8.62.1-LICENSE.txt)|
49
+ |[@typescript-eslint/types](https://github.com/typescript-eslint/typescript-eslint)|8.62.1|MIT|[LICENSE](licenses/downloads/@typescript-eslint/types@8.62.1-LICENSE.txt)|
50
+ |[@typescript-eslint/typescript-estree](https://github.com/typescript-eslint/typescript-eslint)|8.62.1|MIT|[LICENSE](licenses/downloads/@typescript-eslint/typescript-estree@8.62.1-LICENSE.txt)|
51
+ |[@typescript-eslint/utils](https://github.com/typescript-eslint/typescript-eslint)|8.62.1|MIT|[LICENSE](licenses/downloads/@typescript-eslint/utils@8.62.1-LICENSE.txt)|
52
+ |[@typescript-eslint/visitor-keys](https://github.com/typescript-eslint/typescript-eslint)|8.62.1|MIT|[LICENSE](licenses/downloads/@typescript-eslint/visitor-keys@8.62.1-LICENSE.txt)|
53
+ |[@unrs/resolver-binding-darwin-arm64](https://github.com/unrs/unrs-resolver)|1.11.1|MIT|[LICENSE](licenses/downloads/@unrs/resolver-binding-darwin-arm64@1.11.1-LICENSE.txt)|
54
+ |[acorn-jsx](https://github.com/acornjs/acorn-jsx)|5.3.2|MIT|[LICENSE](licenses/downloads/acorn-jsx@5.3.2-LICENSE.txt)|
55
+ |[acorn](https://github.com/acornjs/acorn)|8.17.0|MIT|[LICENSE](licenses/downloads/acorn@8.17.0-LICENSE.txt)|
56
+ |[ajv](https://github.com/ajv-validator/ajv)|6.15.0|MIT|[LICENSE](licenses/downloads/ajv@6.15.0-LICENSE.txt)|
57
+ |[balanced-match](https://github.com/juliangruber/balanced-match)|4.0.4|MIT|[LICENSE](licenses/downloads/balanced-match@4.0.4-LICENSE.txt)|
58
+ |[baseline-browser-mapping](https://github.com/web-platform-dx/baseline-browser-mapping)|2.10.29|Apache-2.0|[LICENSE](licenses/downloads/baseline-browser-mapping@2.10.29-LICENSE.txt)|
59
+ |[brace-expansion](https://github.com/juliangruber/brace-expansion)|5.0.6|MIT|[LICENSE](licenses/downloads/brace-expansion@5.0.6-LICENSE.txt)|
60
+ |[browserslist](https://github.com/browserslist/browserslist)|4.28.2|MIT|[LICENSE](licenses/downloads/browserslist@4.28.2-LICENSE.txt)|
61
+ |[builtin-modules](https://github.com/sindresorhus/builtin-modules)|3.3.0|MIT|[LICENSE](licenses/downloads/builtin-modules@3.3.0-LICENSE.txt)|
62
+ |[builtin-modules](https://github.com/sindresorhus/builtin-modules)|5.0.0|MIT|[LICENSE](licenses/downloads/builtin-modules@5.0.0-LICENSE.txt)|
63
+ |[bytes](https://github.com/visionmedia/bytes.js)|3.1.2|MIT|[LICENSE](licenses/downloads/bytes@3.1.2-LICENSE.txt)|
64
+ |[caniuse-lite](https://github.com/browserslist/caniuse-lite)|1.0.30001792|CC-BY-4.0|[LICENSE](licenses/downloads/caniuse-lite@1.0.30001792-LICENSE.txt)|
65
+ |[change-case](https://github.com/blakeembrey/change-case)|5.4.4|MIT|[LICENSE](licenses/downloads/change-case@5.4.4-LICENSE.txt)|
66
+ |[ci-info](https://github.com/watson/ci-info)|4.4.0|MIT|[LICENSE](licenses/downloads/ci-info@4.4.0-LICENSE.txt)|
67
+ |[comment-parser](https://github.com/yavorskiy/comment-parser)|1.4.6|MIT|[LICENSE](licenses/downloads/comment-parser@1.4.6-LICENSE.txt)|
68
+ |[core-js-compat](https://github.com/zloirock/core-js)|3.49.0|MIT|[LICENSE](licenses/downloads/core-js-compat@3.49.0-LICENSE.txt)|
69
+ |[cross-spawn](https://github.com/moxystudio/node-cross-spawn)|7.0.6|MIT|[LICENSE](licenses/downloads/cross-spawn@7.0.6-LICENSE.txt)|
70
+ |[debug](https://github.com/debug-js/debug)|4.4.3|MIT|[LICENSE](licenses/downloads/debug@4.4.3-LICENSE.txt)|
71
+ |[deep-is](https://github.com/thlorenz/deep-is)|0.1.4|MIT|[LICENSE](licenses/downloads/deep-is@0.1.4-LICENSE.txt)|
72
+ |[detect-indent](https://github.com/sindresorhus/detect-indent)|7.0.2|MIT|[LICENSE](licenses/downloads/detect-indent@7.0.2-LICENSE.txt)|
73
+ |[electron-to-chromium](https://github.com/Kilian/electron-to-chromium)|1.5.353|ISC|[LICENSE](licenses/downloads/electron-to-chromium@1.5.353-LICENSE.txt)|
74
+ |[escalade](https://github.com/lukeed/escalade)|3.2.0|MIT|[LICENSE](licenses/downloads/escalade@3.2.0-LICENSE.txt)|
75
+ |[escape-string-regexp](https://github.com/sindresorhus/escape-string-regexp)|4.0.0|MIT|[LICENSE](licenses/downloads/escape-string-regexp@4.0.0-LICENSE.txt)|
76
+ |[eslint-config-prettier](https://github.com/prettier/eslint-config-prettier)|10.1.8|MIT|[LICENSE](licenses/downloads/eslint-config-prettier@10.1.8-LICENSE.txt)|
77
+ |[eslint-import-context](https://github.com/un-ts/eslint-import-context)|0.1.9|MIT|[LICENSE](licenses/downloads/eslint-import-context@0.1.9-LICENSE.txt)|
78
+ |[eslint-import-resolver-typescript](https://github.com/import-js/eslint-import-resolver-typescript)|4.4.5|ISC|[LICENSE](licenses/downloads/eslint-import-resolver-typescript@4.4.5-LICENSE.txt)|
79
+ |[eslint-plugin-import-x](https://github.com/un-ts/eslint-plugin-import-x)|4.17.1|MIT|[LICENSE](licenses/downloads/eslint-plugin-import-x@4.17.1-LICENSE.txt)|
80
+ |[eslint-plugin-regexp](https://github.com/ota-meshi/eslint-plugin-regexp)|3.1.1|MIT|[LICENSE](licenses/downloads/eslint-plugin-regexp@3.1.1-LICENSE.txt)|
81
+ |[eslint-plugin-security](https://github.com/eslint-community/eslint-plugin-security)|4.0.1|Apache-2.0|[LICENSE](licenses/downloads/eslint-plugin-security@4.0.1-LICENSE.txt)|
82
+ |[eslint-plugin-sonarjs](https://github.com/SonarSource/SonarJS)|4.1.0|LGPL-3.0-only|[LICENSE](licenses/downloads/eslint-plugin-sonarjs@4.1.0-LICENSE.txt)|
83
+ |[eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn)|69.0.0|MIT|[LICENSE](licenses/downloads/eslint-plugin-unicorn@69.0.0-LICENSE.txt)|
84
+ |[eslint-scope](https://github.com/eslint/js)|9.1.2|BSD-2-Clause|[LICENSE](licenses/downloads/eslint-scope@9.1.2-LICENSE.txt)|
85
+ |[eslint-visitor-keys](https://github.com/eslint/eslint-visitor-keys)|3.4.3|Apache-2.0|[LICENSE](licenses/downloads/eslint-visitor-keys@3.4.3-LICENSE.txt)|
86
+ |[eslint-visitor-keys](https://github.com/eslint/js)|5.0.1|Apache-2.0|[LICENSE](licenses/downloads/eslint-visitor-keys@5.0.1-LICENSE.txt)|
87
+ |[eslint](https://github.com/eslint/eslint)|10.6.0|MIT|[LICENSE](licenses/downloads/eslint@10.6.0-LICENSE.txt)|
88
+ |[espree](https://github.com/eslint/js)|11.2.0|BSD-2-Clause|[LICENSE](licenses/downloads/espree@11.2.0-LICENSE.txt)|
89
+ |[esquery](https://github.com/estools/esquery)|1.7.0|BSD-3-Clause|[LICENSE](licenses/downloads/esquery@1.7.0-LICENSE.txt)|
90
+ |[esrecurse](https://github.com/estools/esrecurse)|4.3.0|BSD-2-Clause|[LICENSE](licenses/downloads/esrecurse@4.3.0-LICENSE.txt)|
91
+ |[estraverse](https://github.com/estools/estraverse)|5.3.0|BSD-2-Clause|[LICENSE](licenses/downloads/estraverse@5.3.0-LICENSE.txt)|
92
+ |[esutils](https://github.com/estools/esutils)|2.0.3|BSD-2-Clause|[LICENSE](licenses/downloads/esutils@2.0.3-LICENSE.txt)|
93
+ |[fast-deep-equal](https://github.com/epoberezkin/fast-deep-equal)|3.1.3|MIT|[LICENSE](licenses/downloads/fast-deep-equal@3.1.3-LICENSE.txt)|
94
+ |[fast-json-stable-stringify](https://github.com/epoberezkin/fast-json-stable-stringify)|2.1.0|MIT|[LICENSE](licenses/downloads/fast-json-stable-stringify@2.1.0-LICENSE.txt)|
95
+ |[fast-levenshtein](https://github.com/hiddentao/fast-levenshtein)|2.0.6|MIT|[LICENSE](licenses/downloads/fast-levenshtein@2.0.6-LICENSE.txt)|
96
+ |[fdir](https://github.com/thecodrr/fdir)|6.5.0|MIT|[LICENSE](licenses/downloads/fdir@6.5.0-LICENSE.txt)|
97
+ |[file-entry-cache](https://github.com/jaredwray/file-entry-cache)|8.0.0|MIT|[LICENSE](licenses/downloads/file-entry-cache@8.0.0-LICENSE.txt)|
98
+ |[find-up-simple](https://github.com/sindresorhus/find-up-simple)|1.0.1|MIT|[LICENSE](licenses/downloads/find-up-simple@1.0.1-LICENSE.txt)|
99
+ |[find-up](https://github.com/sindresorhus/find-up)|5.0.0|MIT|[LICENSE](licenses/downloads/find-up@5.0.0-LICENSE.txt)|
100
+ |[flat-cache](https://github.com/jaredwray/flat-cache)|4.0.1|MIT|[LICENSE](licenses/downloads/flat-cache@4.0.1-LICENSE.txt)|
101
+ |[flatted](https://github.com/WebReflection/flatted)|3.4.2|ISC|[LICENSE](licenses/downloads/flatted@3.4.2-LICENSE.txt)|
102
+ |[functional-red-black-tree](https://github.com/mikolalysenko/functional-red-black-tree)|1.0.1|MIT|[LICENSE](licenses/downloads/functional-red-black-tree@1.0.1-LICENSE.txt)|
103
+ |[get-tsconfig](https://github.com/privatenumber/get-tsconfig)|4.13.6|MIT|[LICENSE](licenses/downloads/get-tsconfig@4.13.6-LICENSE.txt)|
104
+ |[glob-parent](https://github.com/gulpjs/glob-parent)|6.0.2|ISC|[LICENSE](licenses/downloads/glob-parent@6.0.2-LICENSE.txt)|
105
+ |[globals](https://github.com/sindresorhus/globals)|17.6.0|MIT|[LICENSE](licenses/downloads/globals@17.6.0-LICENSE.txt)|
106
+ |[ignore](https://github.com/kaelzhang/node-ignore)|5.3.2|MIT|[LICENSE](licenses/downloads/ignore@5.3.2-LICENSE.txt)|
107
+ |[ignore](https://github.com/kaelzhang/node-ignore)|7.0.5|MIT|[LICENSE](licenses/downloads/ignore@7.0.5-LICENSE.txt)|
108
+ |[imurmurhash](https://github.com/jensyt/imurmurhash-js)|0.1.4|MIT|[LICENSE](licenses/downloads/imurmurhash@0.1.4-LICENSE.txt)|
109
+ |[indent-string](https://github.com/sindresorhus/indent-string)|5.0.0|MIT|[LICENSE](licenses/downloads/indent-string@5.0.0-LICENSE.txt)|
110
+ |[is-builtin-module](https://github.com/sindresorhus/is-builtin-module)|5.0.0|MIT|[LICENSE](licenses/downloads/is-builtin-module@5.0.0-LICENSE.txt)|
111
+ |[is-bun-module](https://github.com/SunsetTechuila/is-bun-module)|2.0.0|MIT|[LICENSE](licenses/downloads/is-bun-module@2.0.0-LICENSE.txt)|
112
+ |[is-extglob](https://github.com/jonschlinkert/is-extglob)|2.1.1|MIT|[LICENSE](licenses/downloads/is-extglob@2.1.1-LICENSE.txt)|
113
+ |[is-glob](https://github.com/micromatch/is-glob)|4.0.3|MIT|[LICENSE](licenses/downloads/is-glob@4.0.3-LICENSE.txt)|
114
+ |[isexe](https://github.com/isaacs/isexe)|2.0.0|ISC|[LICENSE](licenses/downloads/isexe@2.0.0-LICENSE.txt)|
115
+ |[jiti](https://github.com/unjs/jiti)|2.7.0|MIT|[LICENSE](licenses/downloads/jiti@2.7.0-LICENSE.txt)|
116
+ |[jsdoc-type-pratt-parser](https://github.com/jsdoc-type-pratt-parser/jsdoc-type-pratt-parser)|7.2.0|MIT|[LICENSE](licenses/downloads/jsdoc-type-pratt-parser@7.2.0-LICENSE.txt)|
117
+ |[jsesc](https://github.com/mathiasbynens/jsesc)|3.1.0|MIT|[LICENSE](licenses/downloads/jsesc@3.1.0-LICENSE.txt)|
118
+ |[json-buffer](https://github.com/dominictarr/json-buffer)|3.0.1|MIT|[LICENSE](licenses/downloads/json-buffer@3.0.1-LICENSE.txt)|
119
+ |[json-schema-traverse](https://github.com/epoberezkin/json-schema-traverse)|0.4.1|MIT|[LICENSE](licenses/downloads/json-schema-traverse@0.4.1-LICENSE.txt)|
120
+ |[json-stable-stringify-without-jsonify](https://github.com/samn/json-stable-stringify)|1.0.1|MIT|[LICENSE](licenses/downloads/json-stable-stringify-without-jsonify@1.0.1-LICENSE.txt)|
121
+ |[jsx-ast-utils-x](https://github.com/eslinter/jsx-ast-utils-x)|0.1.0|MIT|[LICENSE](licenses/downloads/jsx-ast-utils-x@0.1.0-LICENSE.txt)|
122
+ |[keyv](https://github.com/jaredwray/keyv)|4.5.4|MIT|[LICENSE](licenses/downloads/keyv@4.5.4-LICENSE.txt)|
123
+ |[levn](https://github.com/gkz/levn)|0.4.1|MIT|[LICENSE](licenses/downloads/levn@0.4.1-LICENSE.txt)|
124
+ |[locate-path](https://github.com/sindresorhus/locate-path)|6.0.0|MIT|[LICENSE](licenses/downloads/locate-path@6.0.0-LICENSE.txt)|
125
+ |[lodash.merge](https://github.com/lodash/lodash)|4.6.2|MIT|[LICENSE](licenses/downloads/lodash.merge@4.6.2-LICENSE.txt)|
126
+ |[minimatch](https://github.com/isaacs/minimatch)|10.2.5|BlueOak-1.0.0|[LICENSE](licenses/downloads/minimatch@10.2.5-LICENSE.txt)|
127
+ |[ms](https://github.com/vercel/ms)|2.1.3|MIT|[LICENSE](licenses/downloads/ms@2.1.3-LICENSE.txt)|
128
+ |[napi-postinstall](https://github.com/un-ts/napi-postinstall)|0.3.4|MIT|[LICENSE](licenses/downloads/napi-postinstall@0.3.4-LICENSE.txt)|
129
+ |[natural-compare](https://github.com/litejs/natural-compare-lite)|1.4.0|MIT|[LICENSE](licenses/downloads/natural-compare@1.4.0-LICENSE.txt)|
130
+ |[node-releases](https://github.com/chicoxyzzy/node-releases)|2.0.44|MIT|[LICENSE](licenses/downloads/node-releases@2.0.44-LICENSE.txt)|
131
+ |[optionator](https://github.com/gkz/optionator)|0.9.4|MIT|[LICENSE](licenses/downloads/optionator@0.9.4-LICENSE.txt)|
132
+ |[p-limit](https://github.com/sindresorhus/p-limit)|3.1.0|MIT|[LICENSE](licenses/downloads/p-limit@3.1.0-LICENSE.txt)|
133
+ |[p-locate](https://github.com/sindresorhus/p-locate)|5.0.0|MIT|[LICENSE](licenses/downloads/p-locate@5.0.0-LICENSE.txt)|
134
+ |[path-exists](https://github.com/sindresorhus/path-exists)|4.0.0|MIT|[LICENSE](licenses/downloads/path-exists@4.0.0-LICENSE.txt)|
135
+ |[path-key](https://github.com/sindresorhus/path-key)|3.1.1|MIT|[LICENSE](licenses/downloads/path-key@3.1.1-LICENSE.txt)|
136
+ |[picocolors](https://github.com/alexeyraspopov/picocolors)|1.1.1|ISC|[LICENSE](licenses/downloads/picocolors@1.1.1-LICENSE.txt)|
137
+ |[picomatch](https://github.com/micromatch/picomatch)|4.0.4|MIT|[LICENSE](licenses/downloads/picomatch@4.0.4-LICENSE.txt)|
138
+ |[pluralize](https://github.com/blakeembrey/pluralize)|8.0.0|MIT|[LICENSE](licenses/downloads/pluralize@8.0.0-LICENSE.txt)|
139
+ |[prelude-ls](https://github.com/gkz/prelude-ls)|1.2.1|MIT|[LICENSE](licenses/downloads/prelude-ls@1.2.1-LICENSE.txt)|
140
+ |[punycode](https://github.com/mathiasbynens/punycode.js)|2.3.1|MIT|[LICENSE](licenses/downloads/punycode@2.3.1-LICENSE.txt)|
141
+ |[refa](https://github.com/RunDevelopment/refa)|0.12.1|MIT|[LICENSE](licenses/downloads/refa@0.12.1-LICENSE.txt)|
142
+ |[regexp-ast-analysis](https://github.com/RunDevelopment/regexp-ast-analysis)|0.7.1|MIT|[LICENSE](licenses/downloads/regexp-ast-analysis@0.7.1-LICENSE.txt)|
143
+ |[regexp-tree](https://github.com/DmitrySoshnikov/regexp-tree)|0.1.27|MIT|[LICENSE](licenses/downloads/regexp-tree@0.1.27-LICENSE.txt)|
144
+ |[regjsparser](https://github.com/jviereck/regjsparser)|0.13.2|BSD-2-Clause|[LICENSE](licenses/downloads/regjsparser@0.13.2-LICENSE.txt)|
145
+ |[resolve-pkg-maps](https://github.com/privatenumber/resolve-pkg-maps)|1.0.0|MIT|[LICENSE](licenses/downloads/resolve-pkg-maps@1.0.0-LICENSE.txt)|
146
+ |[safe-regex](https://github.com/davisjam/safe-regex)|2.1.1|MIT|[LICENSE](licenses/downloads/safe-regex@2.1.1-LICENSE.txt)|
147
+ |[scslre](https://github.com/RunDevelopment/scslre)|0.3.0|MIT|[LICENSE](licenses/downloads/scslre@0.3.0-LICENSE.txt)|
148
+ |[semver](https://github.com/npm/node-semver)|7.8.5|ISC|[LICENSE](licenses/downloads/semver@7.8.5-LICENSE.txt)|
149
+ |[shebang-command](https://github.com/kevva/shebang-command)|2.0.0|MIT|[LICENSE](licenses/downloads/shebang-command@2.0.0-LICENSE.txt)|
150
+ |[shebang-regex](https://github.com/sindresorhus/shebang-regex)|3.0.0|MIT|[LICENSE](licenses/downloads/shebang-regex@3.0.0-LICENSE.txt)|
151
+ |[stable-hash-x](https://github.com/un-ts/stable-hash-x)|0.2.0|MIT|[LICENSE](licenses/downloads/stable-hash-x@0.2.0-LICENSE.txt)|
152
+ |[strip-indent](https://github.com/sindresorhus/strip-indent)|4.1.1|MIT|[LICENSE](licenses/downloads/strip-indent@4.1.1-LICENSE.txt)|
153
+ |[tinyglobby](https://github.com/SuperchupuDev/tinyglobby)|0.2.15|MIT|[LICENSE](licenses/downloads/tinyglobby@0.2.15-LICENSE.txt)|
154
+ |[ts-api-utils](https://github.com/JoshuaKGoldberg/ts-api-utils)|2.5.0|MIT|[LICENSE](licenses/downloads/ts-api-utils@2.5.0-LICENSE.txt)|
155
+ |[type-check](https://github.com/gkz/type-check)|0.4.0|MIT|[LICENSE](licenses/downloads/type-check@0.4.0-LICENSE.txt)|
156
+ |[typescript-eslint](https://github.com/typescript-eslint/typescript-eslint)|8.62.1|MIT|[LICENSE](licenses/downloads/typescript-eslint@8.62.1-LICENSE.txt)|
157
+ |[typescript](https://github.com/microsoft/TypeScript)|6.0.3|Apache-2.0|[LICENSE](licenses/downloads/typescript@6.0.3-LICENSE.txt)|
158
+ |[unrs-resolver](https://github.com/unrs/unrs-resolver)|1.11.1|MIT|[LICENSE](licenses/downloads/unrs-resolver@1.11.1-LICENSE.txt)|
159
+ |[update-browserslist-db](https://github.com/browserslist/update-db)|1.2.3|MIT|[LICENSE](licenses/downloads/update-browserslist-db@1.2.3-LICENSE.txt)|
160
+ |[uri-js](https://github.com/garycourt/uri-js)|4.4.1|BSD-2-Clause|[LICENSE](licenses/downloads/uri-js@4.4.1-LICENSE.txt)|
161
+ |[which](https://github.com/isaacs/node-which)|2.0.2|ISC|[LICENSE](licenses/downloads/which@2.0.2-LICENSE.txt)|
162
+ |[word-wrap](https://github.com/jonschlinkert/word-wrap)|1.2.5|MIT|[LICENSE](licenses/downloads/word-wrap@1.2.5-LICENSE.txt)|
163
+ |[yaml](https://github.com/eemeli/yaml)|2.9.0|ISC|[LICENSE](licenses/downloads/yaml@2.9.0-LICENSE.txt)|
164
+ |[yocto-queue](https://github.com/sindresorhus/yocto-queue)|0.1.0|MIT|[LICENSE](licenses/downloads/yocto-queue@0.1.0-LICENSE.txt)|
38
165
 
39
166
  <!-- DEPENDENCY_LICENSES_END -->
40
167
 
41
- **Installed dependencies are kept up-to-date with latest releases.**
168
+ <!-- DEPENDENCY_TREE_START -->
169
+
170
+ <!-- DEPENDENCY_TREE_END -->
package/config.json CHANGED
@@ -1,3 +1,4 @@
1
1
  {
2
- "id": "eslint-config-dpuse"
3
- }
2
+ "id": "eslint-config-dpuse",
3
+ "version": "1.0.79"
4
+ }
package/dist/index.d.ts CHANGED
@@ -1,7 +1,3 @@
1
- /**
2
- * ESLint configuration.
3
- */
4
- /** Vendor dependencies. */
5
1
  import type { Linter } from 'eslint';
6
2
  /** Options accepted by the shared DPUse ESLint configuration factory. */
7
3
  export interface DPUseESLintConfigOptions {
@@ -15,6 +11,8 @@ export interface DPUseESLintConfigOptions {
15
11
  rules?: Linter.RulesRecord;
16
12
  /** Path to the consuming project's `tsconfig.json`, used for typed linting and import resolution. */
17
13
  tsconfigPath: string;
14
+ /** The consuming project's root directory, e.g. `import.meta.dirname` from its own `eslint.config.ts`. */
15
+ tsconfigRootDir: string;
18
16
  }
19
17
  /** Configuration export. */
20
18
  export declare function dpuseESLintConfig(options: DPUseESLintConfigOptions): Linter.Config[];
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,2BAA2B;AAC3B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAWrC,yEAAyE;AACzE,MAAM,WAAW,wBAAwB;IACrC,8FAA8F;IAC9F,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,4FAA4F;IAC5F,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,6GAA6G;IAC7G,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC7B,sGAAsG;IACtG,KAAK,CAAC,EAAE,MAAM,CAAC,WAAW,CAAC;IAC3B,qGAAqG;IACrG,YAAY,EAAE,MAAM,CAAC;CACxB;AAED,4BAA4B;AAC5B,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,wBAAwB,GAAG,MAAM,CAAC,MAAM,EAAE,CAiEpF;AAED,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAWrC,yEAAyE;AACzE,MAAM,WAAW,wBAAwB;IACrC,8FAA8F;IAC9F,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,4FAA4F;IAC5F,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,6GAA6G;IAC7G,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC7B,sGAAsG;IACtG,KAAK,CAAC,EAAE,MAAM,CAAC,WAAW,CAAC;IAC3B,qGAAqG;IACrG,YAAY,EAAE,MAAM,CAAC;IACrB,0GAA0G;IAC1G,eAAe,EAAE,MAAM,CAAC;CAC3B;AAED,4BAA4B;AAC5B,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,wBAAwB,GAAG,MAAM,CAAC,MAAM,EAAE,CAiEpF;AAED,eAAe,iBAAiB,CAAC"}
package/dist/index.js CHANGED
@@ -1,6 +1,3 @@
1
- /**
2
- * ESLint configuration.
3
- */
4
1
  import pluginComments from '@eslint-community/eslint-plugin-eslint-comments';
5
2
  import { flatConfigs as pluginImportFlatConfigs } from 'eslint-plugin-import-x';
6
3
  import { configs as pluginRegexpConfigs } from 'eslint-plugin-regexp';
@@ -12,14 +9,14 @@ import tseslint from 'typescript-eslint';
12
9
  import { defineConfig, globalIgnores } from 'eslint/config';
13
10
  /** Configuration export. */
14
11
  export function dpuseESLintConfig(options) {
15
- const { files = ['eslint.config.*', 'src/**/*.ts'], ignores = [], importCoreModules = [], rules = {}, tsconfigPath } = options;
12
+ const { files = ['eslint.config.*', 'src/**/*.ts'], ignores = [], importCoreModules = [], rules = {}, tsconfigPath, tsconfigRootDir } = options;
16
13
  return defineConfig(
17
14
  // Linting scope, strict TypeScript type-checking, and module resolver.
18
15
  {
19
16
  files,
20
17
  extends: [...tseslint.configs.strictTypeChecked, ...tseslint.configs.stylisticTypeChecked],
21
18
  languageOptions: {
22
- parserOptions: { project: tsconfigPath }
19
+ parserOptions: { project: tsconfigPath, tsconfigRootDir }
23
20
  },
24
21
  settings: {
25
22
  'import-x/core-modules': importCoreModules,
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,cAAc,MAAM,iDAAiD,CAAC;AAC7E,OAAO,EAAE,WAAW,IAAI,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AAChF,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,MA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,EAAE,CAAC,MAAM,EAAE,EAAE,oBAAoB,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,qBAAqB,EAAE,CAAC,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,UAAU,CAAC,EAAE,CAAC;YAExI,mCAAmC,EAAE,MAAM;YAE3C,uDAAuD,EAAE,MAAM;YAE/D,kCAAkC,EAAE,KAAK;YAEzC,2BAA2B,EAAE,MAAM;YACnC,uBAAuB,EAAE,MAAM;YAC/B,wBAAwB,EAAE,MAAM;YAChC,kBAAkB,EAAE,MAAM;YAE1B,uBAAuB,EAAE,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,EAAE,CAAC;YACpF,iBAAiB,EAAE,KAAK;YACxB,4BAA4B,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC;YAE/C,GAAG,KAAK;SACX;KACJ,CACJ,CAAC;AACN,CAAC;AAED,eAAe,iBAAiB,CAAC"}
package/eslint.config.ts CHANGED
@@ -1,9 +1,6 @@
1
- /**
2
- * ESLint configuration.
3
- */
1
+ // ── Local (DPUse ESLint) Framework
2
+ import { dpuseESLintConfig } from '@/index.ts';
4
3
 
5
- /** Framework dependencies. */
6
- import { dpuseESLintConfig } from './src/index.ts';
4
+ // ── DPUse ESLint Configuration ───────────────────────────────────────────────────────────────────────────────────────
7
5
 
8
- /** Configuration export. */
9
- export default dpuseESLintConfig({ tsconfigPath: './tsconfig.eslint.json' });
6
+ export default dpuseESLintConfig({ tsconfigPath: './tsconfig.json', tsconfigRootDir: import.meta.dirname });
package/package.json CHANGED
@@ -1,18 +1,40 @@
1
1
  {
2
2
  "name": "@dpuse/eslint-config-dpuse",
3
- "description": "Common ESLint configuration used in most DPUse projects.",
4
- "version": "1.0.72",
3
+ "version": "1.0.79",
5
4
  "private": false,
5
+ "description": "Common ESLint configuration used in most DPUse projects.",
6
+ "license": "MIT",
7
+ "author": "Jonathan Terrell <terrell.jm@gmail.com>",
6
8
  "type": "module",
9
+ "sideEffects": false,
7
10
  "main": "dist/index.js",
8
11
  "types": "dist/index.d.ts",
12
+ "engines": {
13
+ "node": ">=22",
14
+ "npm": ">=11"
15
+ },
9
16
  "prettier": "@dpuse/dpuse-development/prettierrc",
17
+ "allowScripts": {
18
+ "unrs-resolver@1.11.1": true,
19
+ "unrs-resolver@1.12.2": true
20
+ },
21
+ "scripts": {
22
+ "audit": "node -e \"import('@dpuse/dpuse-development').then(m => m.auditDependencies())\"",
23
+ "build": "tsc -p tsconfig.build.json",
24
+ "check": "node -e \"import('@dpuse/dpuse-development').then(m => m.checkConfigFiles())\" && node -e \"import('@dpuse/dpuse-development').then(m => m.checkDependencies())\"",
25
+ "document": "node -e \"import('@dpuse/dpuse-development').then(m => m.documentDependencies('Apache-2.0;BSD-2-Clause;BSD-3-Clause;BlueOak-1.0.0;CC-BY-4.0;ISC;LGPL-3.0-only;MIT'))\"",
26
+ "format": "node -e \"import('@dpuse/dpuse-development').then(m => m.formatCode())\"",
27
+ "lint": "node -e \"import('@dpuse/dpuse-development').then(m => m.lintCode())\"",
28
+ "release": "npm run build && npm run sync && op run --env-file=.env -- npm publish --access public",
29
+ "sync": "node -e \"import('@dpuse/dpuse-development').then(m => m.syncProjectWithGitHub())\"",
30
+ "test:e2e": "echo \"❌ 'test:e2e' command not implemented.\"",
31
+ "test:unit": "echo \"❌ 'test:unit' command not implemented.\""
32
+ },
10
33
  "peerDependencies": {
11
34
  "eslint": "^10.6.0"
12
35
  },
13
36
  "dependencies": {
14
37
  "@eslint-community/eslint-plugin-eslint-comments": "^4.7.2",
15
- "@types/eslint-plugin-security": "^3.0.1",
16
38
  "eslint-config-prettier": "^10.1.8",
17
39
  "eslint-import-resolver-typescript": "^4.4.5",
18
40
  "eslint-plugin-import-x": "^4.17.1",
@@ -23,39 +45,13 @@
23
45
  "typescript-eslint": "^8.62.1"
24
46
  },
25
47
  "devDependencies": {
26
- "@dpuse/dpuse-development": "^0.3.629",
27
- "@eslint-community/eslint-plugin-eslint-comments": "^4.7.2",
48
+ "@dpuse/dpuse-development": "^0.3.630",
28
49
  "@types/eslint-plugin-security": "^3.0.1",
50
+ "@types/node": "^26.1.0",
29
51
  "eslint": "^10.6.0",
30
- "eslint-config-prettier": "^10.1.8",
31
- "eslint-import-resolver-typescript": "^4.4.5",
32
- "eslint-plugin-import-x": "^4.17.1",
33
- "eslint-plugin-regexp": "^3.1.1",
34
- "eslint-plugin-security": "^4.0.1",
35
- "eslint-plugin-sonarjs": "^4.1.0",
36
- "eslint-plugin-unicorn": "^69.0.0",
37
- "typescript-eslint": "^8.62.1",
38
52
  "jiti": "^2.7.0",
39
- "license-downloader": "^2.0.0",
40
- "license-report": "^6.8.2",
41
- "license-report-check": "^1.0.0",
42
- "license-report-recursive": "^6.8.4",
43
- "nanoid": "^5.1.11",
44
- "npm-check-updates": "^22.2.1",
45
- "owasp-dependency-check": "^1.0.1",
46
- "prettier": "^3.8.3",
47
- "typescript": "^6.0.3"
48
- },
49
- "scripts": {
50
- "audit": "op run --env-file=.env -- node -e \"import('@dpuse/dpuse-development').then(m => m.auditDependencies())\"",
51
- "build": "tsc",
52
- "check": "node -e \"import('@dpuse/dpuse-development').then(m => m.checkDependencies())\"",
53
- "document": "op run --env-file=.env -- node -e \"import('@dpuse/dpuse-development').then(m => m.documentDependencies(['Apache-2.0', 'ISC', 'MIT', 'LGPL-3.0-only', 'n/a'], false))\"",
54
- "format": "node -e \"import('@dpuse/dpuse-development').then(m => m.formatCode())\"",
55
- "lint": "node -e \"import('@dpuse/dpuse-development').then(m => m.lintCode())\"",
56
- "release": "op run --env-file=.env -- npm run build && npm run sync && npm publish --access public",
57
- "sync": "node -e \"import('@dpuse/dpuse-development').then(m => m.syncProjectWithGitHub())\"",
58
- "test:e2e": "echo \"❌ 'test:e2e' command not implemented.\"",
59
- "test:unit": "echo \"❌ 'test:unit' command not implemented.\""
53
+ "prettier": "^3.9.4",
54
+ "typescript": "^6.0.3",
55
+ "typescript-eslint": "^8.62.1"
60
56
  }
61
57
  }
package/src/index.ts CHANGED
@@ -1,8 +1,4 @@
1
- /**
2
- * ESLint configuration.
3
- */
4
-
5
- /** Vendor dependencies. */
1
+ // ── External Dependencies & Registrations
6
2
  import type { Linter } from 'eslint';
7
3
  import pluginComments from '@eslint-community/eslint-plugin-eslint-comments';
8
4
  import { flatConfigs as pluginImportFlatConfigs } from 'eslint-plugin-import-x';
@@ -26,11 +22,13 @@ export interface DPUseESLintConfigOptions {
26
22
  rules?: Linter.RulesRecord;
27
23
  /** Path to the consuming project's `tsconfig.json`, used for typed linting and import resolution. */
28
24
  tsconfigPath: string;
25
+ /** The consuming project's root directory, e.g. `import.meta.dirname` from its own `eslint.config.ts`. */
26
+ tsconfigRootDir: string;
29
27
  }
30
28
 
31
29
  /** Configuration export. */
32
30
  export function dpuseESLintConfig(options: DPUseESLintConfigOptions): Linter.Config[] {
33
- const { files = ['eslint.config.*', 'src/**/*.ts'], ignores = [], importCoreModules = [], rules = {}, tsconfigPath } = options;
31
+ const { files = ['eslint.config.*', 'src/**/*.ts'], ignores = [], importCoreModules = [], rules = {}, tsconfigPath, tsconfigRootDir } = options;
34
32
 
35
33
  return defineConfig(
36
34
  // Linting scope, strict TypeScript type-checking, and module resolver.
@@ -38,7 +36,7 @@ export function dpuseESLintConfig(options: DPUseESLintConfigOptions): Linter.Con
38
36
  files,
39
37
  extends: [...tseslint.configs.strictTypeChecked, ...tseslint.configs.stylisticTypeChecked],
40
38
  languageOptions: {
41
- parserOptions: { project: tsconfigPath }
39
+ parserOptions: { project: tsconfigPath, tsconfigRootDir }
42
40
  },
43
41
  settings: {
44
42
  'import-x/core-modules': importCoreModules,
@@ -0,0 +1,32 @@
1
+ {
2
+ "compilerOptions": {
3
+ "declaration": true,
4
+ "declarationMap": true,
5
+ "esModuleInterop": true,
6
+ "exactOptionalPropertyTypes": true,
7
+ "forceConsistentCasingInFileNames": true,
8
+ "incremental": true,
9
+ "lib": ["ESNext"],
10
+ "module": "NodeNext",
11
+ "moduleDetection": "force",
12
+ "moduleResolution": "nodenext",
13
+ "noImplicitAny": true,
14
+ "noImplicitOverride": true,
15
+ "noPropertyAccessFromIndexSignature": true,
16
+ "noUncheckedIndexedAccess": true,
17
+ "noUnusedLocals": true,
18
+ "noUnusedParameters": true,
19
+ "outDir": "dist",
20
+ "resolveJsonModule": true,
21
+ "rootDir": "src",
22
+ "skipLibCheck": true,
23
+ "sourceMap": true,
24
+ "strict": true,
25
+ "strictNullChecks": true,
26
+ "target": "ESNext",
27
+ "tsBuildInfoFile": "./node_modules/.cache/tsconfig.build.tsbuildinfo",
28
+ "useDefineForClassFields": true,
29
+ "verbatimModuleSyntax": true
30
+ },
31
+ "include": ["src/**/*.ts"]
32
+ }
package/tsconfig.json CHANGED
@@ -18,7 +18,6 @@
18
18
  "noUnusedParameters": true,
19
19
  "outDir": "dist",
20
20
  "resolveJsonModule": true,
21
- "rootDir": "src",
22
21
  "skipLibCheck": true,
23
22
  "sourceMap": true,
24
23
  "strict": true,
@@ -26,7 +25,13 @@
26
25
  "target": "ESNext",
27
26
  "tsBuildInfoFile": "./node_modules/.cache/tsconfig.tsbuildinfo",
28
27
  "useDefineForClassFields": true,
29
- "verbatimModuleSyntax": true
28
+ "verbatimModuleSyntax": true,
29
+ "noEmit": true,
30
+ "allowImportingTsExtensions": true,
31
+ "types": ["node"],
32
+ "paths": {
33
+ "@/*": ["./src/*"]
34
+ }
30
35
  },
31
- "include": ["src/**/*.ts"]
36
+ "include": ["eslint.config.*", "src/**/*.ts"]
32
37
  }
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2019 typescript-eslint and other contributors
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2019 typescript-eslint and other contributors
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2019 typescript-eslint and other contributors
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2019 typescript-eslint and other contributors
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2019 typescript-eslint and other contributors
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
@@ -1,5 +0,0 @@
1
- Copyright 2021 Alex Gorbatchev <alex.gorbatchev@gmail.com>
2
-
3
- Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
4
-
5
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.