@powerlines/plugin-eslint 0.8.175 → 0.8.176

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 (60) hide show
  1. package/README.md +304 -0
  2. package/dist/helpers/index.cjs +4 -1
  3. package/dist/helpers/index.d.cts +2 -0
  4. package/dist/helpers/index.d.mts +2 -0
  5. package/dist/helpers/index.mjs +1 -1
  6. package/dist/index.cjs +6 -6
  7. package/dist/index.d.cts +1 -1
  8. package/dist/index.d.mts +1 -1
  9. package/dist/index.mjs +2 -2
  10. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.19/node_modules/@stryke/type-checks/dist/get-object-tag.cjs +15 -0
  11. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.19/node_modules/@stryke/type-checks/dist/get-object-tag.mjs +14 -0
  12. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.19/node_modules/@stryke/type-checks/dist/is-empty.cjs +20 -0
  13. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.19/node_modules/@stryke/type-checks/dist/is-empty.mjs +20 -0
  14. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.19/node_modules/@stryke/type-checks/dist/is-non-null-object.cjs +16 -0
  15. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.19/node_modules/@stryke/type-checks/dist/is-non-null-object.mjs +16 -0
  16. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.19/node_modules/@stryke/type-checks/dist/is-null.cjs +12 -0
  17. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.19/node_modules/@stryke/type-checks/dist/is-null.mjs +11 -0
  18. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.19/node_modules/@stryke/type-checks/dist/is-object.cjs +19 -0
  19. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.19/node_modules/@stryke/type-checks/dist/is-object.mjs +19 -0
  20. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.19/node_modules/@stryke/type-checks/dist/is-plain-object.cjs +63 -0
  21. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.19/node_modules/@stryke/type-checks/dist/is-plain-object.mjs +63 -0
  22. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.19/node_modules/@stryke/type-checks/dist/is-set-object.cjs +19 -0
  23. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.19/node_modules/@stryke/type-checks/dist/is-set-object.mjs +19 -0
  24. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.19/node_modules/@stryke/type-checks/dist/is-set.cjs +19 -0
  25. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.19/node_modules/@stryke/type-checks/dist/is-set.mjs +19 -0
  26. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.19/node_modules/@stryke/type-checks/dist/is-undefined.cjs +8 -0
  27. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.19/node_modules/@stryke/type-checks/dist/is-undefined.mjs +7 -0
  28. package/dist/types/index.cjs +0 -0
  29. package/dist/types/index.d.cts +2 -0
  30. package/dist/types/index.d.mts +2 -1
  31. package/dist/types/index.mjs +1 -0
  32. package/dist/types/plugin.cjs +0 -0
  33. package/dist/types/plugin.mjs +1 -0
  34. package/package.json +5 -5
  35. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.17/node_modules/@stryke/type-checks/dist/get-object-tag.cjs +0 -6
  36. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.17/node_modules/@stryke/type-checks/dist/get-object-tag.mjs +0 -5
  37. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.17/node_modules/@stryke/type-checks/dist/is-date.cjs +0 -8
  38. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.17/node_modules/@stryke/type-checks/dist/is-date.mjs +0 -8
  39. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.17/node_modules/@stryke/type-checks/dist/is-empty.cjs +0 -27
  40. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.17/node_modules/@stryke/type-checks/dist/is-empty.mjs +0 -27
  41. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.17/node_modules/@stryke/type-checks/dist/is-function.cjs +0 -19
  42. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.17/node_modules/@stryke/type-checks/dist/is-function.mjs +0 -19
  43. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.17/node_modules/@stryke/type-checks/dist/is-non-null-object.cjs +0 -8
  44. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.17/node_modules/@stryke/type-checks/dist/is-non-null-object.mjs +0 -8
  45. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.17/node_modules/@stryke/type-checks/dist/is-null.cjs +0 -12
  46. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.17/node_modules/@stryke/type-checks/dist/is-null.mjs +0 -11
  47. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.17/node_modules/@stryke/type-checks/dist/is-number.cjs +0 -12
  48. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.17/node_modules/@stryke/type-checks/dist/is-number.mjs +0 -11
  49. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.17/node_modules/@stryke/type-checks/dist/is-object.cjs +0 -13
  50. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.17/node_modules/@stryke/type-checks/dist/is-object.mjs +0 -13
  51. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.17/node_modules/@stryke/type-checks/dist/is-plain-object.cjs +0 -14
  52. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.17/node_modules/@stryke/type-checks/dist/is-plain-object.mjs +0 -13
  53. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.17/node_modules/@stryke/type-checks/dist/is-set-object.cjs +0 -13
  54. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.17/node_modules/@stryke/type-checks/dist/is-set-object.mjs +0 -13
  55. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.17/node_modules/@stryke/type-checks/dist/is-set.cjs +0 -13
  56. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.17/node_modules/@stryke/type-checks/dist/is-set.mjs +0 -13
  57. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.17/node_modules/@stryke/type-checks/dist/is-symbol.cjs +0 -12
  58. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.17/node_modules/@stryke/type-checks/dist/is-symbol.mjs +0 -11
  59. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.17/node_modules/@stryke/type-checks/dist/is-undefined.cjs +0 -6
  60. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.17/node_modules/@stryke/type-checks/dist/is-undefined.mjs +0 -5
package/README.md ADDED
@@ -0,0 +1,304 @@
1
+ <!-- START header -->
2
+ <!-- prettier-ignore-start -->
3
+ <!-- markdownlint-disable -->
4
+
5
+
6
+ <div align="center">
7
+ <picture>
8
+ <source media="(prefers-color-scheme: dark)" srcset="https://public.storm-cdn.com/powerlines/banner-1280x640-dark.gif">
9
+ <source media="(prefers-color-scheme: light)" srcset="https://public.storm-cdn.com/powerlines/banner-1280x640-light.gif">
10
+ <img src="https://public.storm-cdn.com/powerlines/banner-1280x640-dark.gif" width="100%" alt="Powerlines" />
11
+ </picture>
12
+ </div>
13
+ <br />
14
+
15
+ <div align="center">
16
+ <b>
17
+ <a href="https://stormsoftware.com" target="_blank">Website</a> •
18
+ <a href="https://github.com/storm-software/powerlines" target="_blank">GitHub</a> •
19
+ <a href="https://discord.gg/MQ6YVzakM5">Discord</a> • <a href="https://stormstack.github.io/stormstack/" target="_blank">Docs</a> • <a href="https://stormsoftware.com/contact" target="_blank">Contact</a> •
20
+ <a href="https://github.com/storm-software/powerlines/issues/new?assignees=&labels=bug&template=bug-report.yml&title=Bug Report%3A+">Report a Bug</a>
21
+ </b>
22
+ </div>
23
+
24
+ <br />
25
+ This package is part of the 🔌 <b>Powerlines</b> monorepo. Powerlines packages include CLI utility applications, tools, and various libraries used to create modern, scalable web applications.
26
+ <br />
27
+
28
+ <h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
29
+
30
+ [![Version](https://img.shields.io/badge/version-0.2.0-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/powerlines/release.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
31
+
32
+ <!-- prettier-ignore-start -->
33
+ <!-- markdownlint-disable -->
34
+
35
+ > [!IMPORTANT]
36
+ > This repository, and the apps, libraries, and tools contained within, is still in it's initial development phase. As a result, bugs and issues are expected with it's usage. When the main development phase completes, a proper release will be performed, the packages will be available through NPM (and other distributions), and this message will be removed. However, in the meantime, please feel free to report any issues you may come across.
37
+
38
+ <!-- markdownlint-restore -->
39
+ <!-- prettier-ignore-end -->
40
+
41
+ <div align="center">
42
+ <a href="https://github.com/storm-software/powerlines" target="_blank"><b>Be sure to ⭐ this repository on GitHub so you can keep up to date with it's progress!</b></a>
43
+ </div>
44
+
45
+ <br />
46
+
47
+ <!-- markdownlint-restore -->
48
+ <!-- prettier-ignore-end -->
49
+
50
+ <!-- END header -->
51
+
52
+ # Powerlines - ESLint Plugin
53
+
54
+ A package containing a Powerlines plugin that integrates ESLint into the Powerlines linting process, allowing for automatic linting of TypeScript source code.
55
+
56
+ <!-- START doctoc -->
57
+ <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
58
+ ## Table of Contents
59
+
60
+ - [Powerlines - ESLint Plugin](#powerlines---eslint-plugin)
61
+ - [Table of Contents](#table-of-contents)
62
+ - [Installing](#installing)
63
+ - [Reduced Package Size](#reduced-package-size)
64
+ - [Development](#development)
65
+ - [Building](#building)
66
+ - [Running unit tests](#running-unit-tests)
67
+ - [Linting](#linting)
68
+ - [Storm Workspaces](#storm-workspaces)
69
+ - [Roadmap](#roadmap)
70
+ - [Support](#support)
71
+ - [License](#license)
72
+ - [Changelog](#changelog)
73
+ - [Contributing](#contributing)
74
+ - [Contributors](#contributors)
75
+
76
+ <!-- END doctoc -->
77
+
78
+ ## Installing
79
+
80
+ Using [pnpm](http://pnpm.io):
81
+
82
+ ```bash
83
+ pnpm add @powerlines/plugin-eslint
84
+ ```
85
+
86
+ <details>
87
+ <summary>Using npm</summary>
88
+
89
+ ```bash
90
+ npm install @powerlines/plugin-eslint
91
+ ```
92
+
93
+ </details>
94
+
95
+ <details>
96
+ <summary>Using yarn</summary>
97
+
98
+ ```bash
99
+ yarn add @powerlines/plugin-eslint
100
+ ```
101
+
102
+ </details>
103
+
104
+ ## Reduced Package Size
105
+
106
+ This project uses [tsup](https://tsup.egoist.dev/) to package the source code
107
+ due to its ability to remove unused code and ship smaller javascript files
108
+ thanks to code splitting. This helps to greatly reduce the size of the package
109
+ and to make it easier to use in other projects.
110
+
111
+ ## Development
112
+
113
+ This project is built using [Nx](https://nx.dev). As a result, many of the usual
114
+ commands are available to assist in development.
115
+
116
+ ### Building
117
+
118
+ Run `nx build plugin-eslint` to build the library.
119
+
120
+ ### Running unit tests
121
+
122
+ Run `nx test plugin-eslint` to execute the unit tests via
123
+ [Jest](https://jestjs.io).
124
+
125
+ ### Linting
126
+
127
+ Run `nx lint plugin-eslint` to run
128
+ [ESLint](https://eslint.org/) on the package.
129
+
130
+ <!-- START footer -->
131
+ <!-- prettier-ignore-start -->
132
+ <!-- markdownlint-disable -->
133
+
134
+
135
+ ## Storm Workspaces
136
+
137
+ Storm workspaces are built using
138
+ <a href="https://nx.dev/" target="_blank">Nx</a>, a set of extensible dev tools
139
+ for monorepos, which helps you develop like Google, Facebook, and Microsoft.
140
+ Building on top of Nx, the Open System provides a set of tools and patterns that
141
+ help you scale your monorepo to many teams while keeping the codebase
142
+ maintainable.
143
+
144
+ <div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div>
145
+ <br />
146
+
147
+ ## Roadmap
148
+
149
+ See the [open issues](https://github.com/storm-software/powerlines/issues) for
150
+ a list of proposed features (and known issues).
151
+
152
+ - [Top Feature Requests](https://github.com/storm-software/powerlines/issues?q=label%3Aenhancement+is%3Aopen+sort%3Areactions-%2B1-desc)
153
+ (Add your votes using the 👍 reaction)
154
+ - [Top Bugs](https://github.com/storm-software/powerlines/issues?q=is%3Aissue+is%3Aopen+label%3Abug+sort%3Areactions-%2B1-desc)
155
+ (Add your votes using the 👍 reaction)
156
+ - [Newest Bugs](https://github.com/storm-software/powerlines/issues?q=is%3Aopen+is%3Aissue+label%3Abug)
157
+
158
+ <div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div>
159
+ <br />
160
+
161
+ ## Support
162
+
163
+ Reach out to the maintainer at one of the following places:
164
+
165
+ - [Contact](https://stormsoftware.com/contact)
166
+ - [GitHub discussions](https://github.com/storm-software/powerlines/discussions)
167
+ - <support@stormsoftware.com>
168
+
169
+ <div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div>
170
+ <br />
171
+
172
+ ## License
173
+
174
+ This project is licensed under the **Apache License 2.0**. Feel free to edit and
175
+ distribute this template as you like.
176
+
177
+ See [LICENSE](LICENSE) for more information.
178
+
179
+ <div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div>
180
+ <br />
181
+
182
+ ## Changelog
183
+
184
+ This project adheres to
185
+ [Semantic Versioning](https://semver.org/spec/v2.0.0.html). Every release, along
186
+ with the migration instructions, is documented in the [CHANGELOG](CHANGELOG.md)
187
+ file
188
+
189
+ <div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div>
190
+ <br />
191
+
192
+ ## Contributing
193
+
194
+ First off, thanks for taking the time to contribute! Contributions are what
195
+ makes the open-source community such an amazing place to learn, inspire, and
196
+ create. Any contributions you make will benefit everybody else and are **greatly
197
+ appreciated**.
198
+
199
+ Please try to create bug reports that are:
200
+
201
+ - _Reproducible._ Include steps to reproduce the problem.
202
+ - _Specific._ Include as much detail as possible: which version, what
203
+ environment, etc.
204
+ - _Unique._ Do not duplicate existing opened issues.
205
+ - _Scoped to a Single Bug._ One bug per report.
206
+
207
+ Please adhere to this project's [code of conduct](.github/CODE_OF_CONDUCT.md).
208
+
209
+ You can use
210
+ [markdownlint-cli](https://github.com/storm-software/powerlines/markdownlint-cli)
211
+ to check for common markdown style inconsistency.
212
+
213
+ <div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div>
214
+ <br />
215
+
216
+ ## Contributors
217
+
218
+ Thanks goes to these wonderful people
219
+ ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
220
+
221
+ <!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
222
+
223
+ <table>
224
+ <tbody>
225
+ <tr>
226
+ <td align="center" valign="top" width="14.28%"><a href="http://www.sullypat.com/"><img src="https://avatars.githubusercontent.com/u/99053093?v=4?s=100" width="100px;" alt="Patrick Sullivan"/><br /><sub><b>Patrick Sullivan</b></sub></a><br /><a href="#design-sullivanpj" title="Design">🎨</a> <a href="https://github.com/storm-software/powerlines/commits?author=sullivanpj" title="Code">💻</a> <a href="#tool-sullivanpj" title="Tools">🔧</a> <a href="https://github.com/storm-software/powerlines/commits?author=sullivanpj" title="Documentation">📖</a> <a href="https://github.com/storm-software/powerlines/commits?author=sullivanpj" title="Tests">⚠️</a></td>
227
+ <td align="center" valign="top" width="14.28%"><a href="https://tylerbenning.com/"><img src="https://avatars.githubusercontent.com/u/7265547?v=4?s=100" width="100px;" alt="Tyler Benning"/><br /><sub><b>Tyler Benning</b></sub></a><br /><a href="#design-tbenning" title="Design">🎨</a></td>
228
+ <td align="center" valign="top" width="14.28%"><a href="http://stormsoftware.com"><img src="https://avatars.githubusercontent.com/u/149802440?v=4?s=100" width="100px;" alt="Stormie"/><br /><sub><b>Stormie</b></sub></a><br /><a href="#maintenance-stormie-bot" title="Maintenance">🚧</a></td>
229
+ </tr>
230
+ </tbody>
231
+ <tfoot>
232
+ <tr>
233
+ <td align="center" size="13px" colspan="7">
234
+ <img src="https://raw.githubusercontent.com/all-contributors/all-contributors-cli/1b8533af435da9854653492b1327a23a4dbd0a10/assets/logo-small.svg" alt="All Contributors">
235
+ <a href="https://all-contributors.js.org/docs/en/bot/usage">Add your contributions</a>
236
+ </img>
237
+ </td>
238
+ </tr>
239
+ </tfoot>
240
+ </table>
241
+
242
+ <!-- ALL-CONTRIBUTORS-LIST:END -->
243
+
244
+ This project follows the
245
+ [all-contributors](https://github.com/all-contributors/all-contributors)
246
+ specification. Contributions of any kind welcome!
247
+
248
+ <div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div>
249
+ <br />
250
+
251
+ <hr />
252
+ <br />
253
+
254
+ <div align="center">
255
+ <picture>
256
+ <source media="(prefers-color-scheme: dark)" srcset="https://public.storm-cdn.com/storm-software/banner-1280x320-dark.webp">
257
+ <source media="(prefers-color-scheme: light)" srcset="https://public.storm-cdn.com/storm-software/banner-1280x320-light.webp">
258
+ <img src="https://public.storm-cdn.com/storm-software/banner-1280x320-dark.webp" width="100%" alt="Storm Software" />
259
+ </picture>
260
+ </div>
261
+ <br />
262
+
263
+ <div align="center">
264
+ <a href="https://stormsoftware.com" target="_blank">Website</a> • <a href="https://stormsoftware.com/contact" target="_blank">Contact</a> • <a href="https://linkedin.com/in/patrick-sullivan-865526b0" target="_blank">LinkedIn</a> • <a href="https://medium.com/@pat.joseph.sullivan" target="_blank">Medium</a> • <a href="https://github.com/storm-software" target="_blank">GitHub</a> • <a href="https://keybase.io/sullivanp" target="_blank">OpenPGP Key</a>
265
+ </div>
266
+
267
+ <div align="center">
268
+ <b>Fingerprint:</b> 1BD2 7192 7770 2549 F4C9 F238 E6AD C420 DA5C 4C2D
269
+ </div>
270
+ <br />
271
+
272
+ Storm Software is an open source software development organization and creator
273
+ of Acidic, StormStack and StormCloud.
274
+
275
+ Our mission is to make software development more accessible. Our ideal future is
276
+ one where anyone can create software without years of prior development
277
+ experience serving as a barrier to entry. We hope to achieve this via LLMs,
278
+ Generative AI, and intuitive, high-level data modeling/programming languages.
279
+
280
+ Join us on [Discord](https://discord.gg/MQ6YVzakM5) to chat with the team,
281
+ receive release notifications, ask questions, and get involved.
282
+
283
+ If this sounds interesting, and you would like to help us in creating the next
284
+ generation of development tools, please reach out on our
285
+ [website](https://stormsoftware.com/contact) or join our
286
+ [Slack channel](https://join.slack.com/t/storm-software/shared_invite/zt-2gsmk04hs-i6yhK_r6urq0dkZYAwq2pA)!
287
+
288
+ <br />
289
+
290
+ <div align="center"><a href="https://stormsoftware.com" target="_blank"><img src="https://public.storm-cdn.com/icon-fill.png" alt="Storm Software" width="200px"/></a></div>
291
+ <br />
292
+ <div align="center"><a href="https://stormsoftware.com" target="_blank"><img src="https://public.storm-cdn.com/visit-us-text.svg" alt="Visit us at stormsoftware.com" height="90px"/></a></div>
293
+
294
+ <br />
295
+
296
+ <div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div>
297
+ <br />
298
+ <br />
299
+
300
+
301
+ <!-- markdownlint-restore -->
302
+ <!-- prettier-ignore-end -->
303
+
304
+ <!-- END footer -->
@@ -1 +1,4 @@
1
- const require_format_message = require('./format-message.cjs');
1
+ const require_helpers_format_message = require('./format-message.cjs');
2
+
3
+ exports.MessageSeverity = require_helpers_format_message.MessageSeverity;
4
+ exports.formatMessage = require_helpers_format_message.formatMessage;
@@ -0,0 +1,2 @@
1
+ import { LintMessage, MessageSeverity, __ΩLintMessage, __ΩMessageSeverity, formatMessage } from "./format-message.cjs";
2
+ export { LintMessage, MessageSeverity, __ΩLintMessage, __ΩMessageSeverity, formatMessage };
@@ -0,0 +1,2 @@
1
+ import { LintMessage, MessageSeverity, __ΩLintMessage, __ΩMessageSeverity, formatMessage } from "./format-message.mjs";
2
+ export { LintMessage, MessageSeverity, __ΩLintMessage, __ΩMessageSeverity, formatMessage };
@@ -1,3 +1,3 @@
1
1
  import { MessageSeverity, formatMessage } from "./format-message.mjs";
2
2
 
3
- export { };
3
+ export { MessageSeverity, formatMessage };
package/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, '__esModule', { value: true });
2
- const require_is_set_object = require('./node_modules/.pnpm/@stryke_type-checks@0.5.17/node_modules/@stryke/type-checks/dist/is-set-object.cjs');
3
- const require_format_message = require('./helpers/format-message.cjs');
2
+ const require_is_set_object = require('./node_modules/.pnpm/@stryke_type-checks@0.5.19/node_modules/@stryke/type-checks/dist/is-set-object.cjs');
3
+ const require_helpers_format_message = require('./helpers/format-message.cjs');
4
4
  require('./helpers/index.cjs');
5
5
  let __storm_software_config_tools_types = require("@storm-software/config-tools/types");
6
6
  let __stryke_fs_exists = require("@stryke/fs/exists");
@@ -47,7 +47,7 @@ function plugin(options = {}) {
47
47
  }) } };
48
48
  },
49
49
  async configResolved() {
50
- if (!require_is_set_object.t(this.packageJson.eslintConfig) && (!this.config.lint.eslint.configFile || !(0, __stryke_fs_exists.existsSync)(this.config.lint.eslint.configFile))) throw new Error("No ESLint configuration file could be found");
50
+ if (!require_is_set_object.isSetObject(this.packageJson.eslintConfig) && (!this.config.lint.eslint.configFile || !(0, __stryke_fs_exists.existsSync)(this.config.lint.eslint.configFile))) throw new Error("No ESLint configuration file could be found");
51
51
  else if (this.config.lint.eslint.configFile && (0, __stryke_fs_exists.existsSync)(this.config.lint.eslint.configFile)) {
52
52
  const content = await (0, __stryke_fs_read_file.readFile)(this.config.lint.eslint.configFile);
53
53
  if (content?.trim().replace(/\s/g, "") || content?.trim().replace(/\s/g, "") === "---" || content?.trim().replace(/\s/g, "") === "{}" || content?.trim().replace(/\s/g, "") === "module.exports={}") throw new Error(`The ESLint configuration file at "${this.config.lint.eslint.configFile}" is empty`);
@@ -93,7 +93,7 @@ function plugin(options = {}) {
93
93
  if ("loadESLint" in module$1) ESLint = await module$1.loadESLint({ useFlatConfig: this.config.lint.eslint.configFile ? (0, __stryke_path_find.findFileName)(this.config.lint.eslint.configFile).startsWith("eslint.config.") : true });
94
94
  if (this.config.lint.eslint.fix) await ESLint.outputFixes(results);
95
95
  if (this.config.lint.eslint.reportErrorsOnly) results = ESLint.getErrorResults(results);
96
- const output = results.filter(({ messages }) => messages?.length).map(({ messages, filePath }) => require_format_message.formatMessage(this.config.projectRoot, messages, filePath)).join("\n");
96
+ const output = results.filter(({ messages }) => messages?.length).map(({ messages, filePath }) => require_helpers_format_message.formatMessage(this.config.projectRoot, messages, filePath)).join("\n");
97
97
  if (this.config.lint.eslint.outputFile) await this.fs.write(this.config.lint.eslint.outputFile, output);
98
98
  else this.log(__storm_software_config_tools_types.LogLevelLabel.INFO, output);
99
99
  }
@@ -102,7 +102,7 @@ function plugin(options = {}) {
102
102
  var src_default = plugin;
103
103
 
104
104
  //#endregion
105
- exports.MessageSeverity = require_format_message.MessageSeverity;
105
+ exports.MessageSeverity = require_helpers_format_message.MessageSeverity;
106
106
  exports.default = src_default;
107
- exports.formatMessage = require_format_message.formatMessage;
107
+ exports.formatMessage = require_helpers_format_message.formatMessage;
108
108
  exports.plugin = plugin;
package/dist/index.d.cts CHANGED
@@ -1,6 +1,6 @@
1
+ import { LintMessage, MessageSeverity, __ΩLintMessage, __ΩMessageSeverity, formatMessage } from "./helpers/format-message.cjs";
1
2
  import { Plugin } from "./powerlines/src/types/plugin.cjs";
2
3
  import { ESLintPluginContext, ESLintPluginOptions, ESLintPluginResolvedConfig, ESLintPluginUserConfig, __ΩESLintPluginContext, __ΩESLintPluginOptions, __ΩESLintPluginResolvedConfig, __ΩESLintPluginUserConfig } from "./types/plugin.cjs";
3
- import { LintMessage, MessageSeverity, __ΩLintMessage, __ΩMessageSeverity, formatMessage } from "./helpers/format-message.cjs";
4
4
 
5
5
  //#region src/index.d.ts
6
6
 
package/dist/index.d.mts CHANGED
@@ -1,6 +1,6 @@
1
+ import { LintMessage, MessageSeverity, __ΩLintMessage, __ΩMessageSeverity, formatMessage } from "./helpers/format-message.mjs";
1
2
  import { Plugin } from "./packages/powerlines/src/types/plugin.mjs";
2
3
  import { ESLintPluginContext, ESLintPluginOptions, ESLintPluginResolvedConfig, ESLintPluginUserConfig, __ΩESLintPluginContext, __ΩESLintPluginOptions, __ΩESLintPluginResolvedConfig, __ΩESLintPluginUserConfig } from "./types/plugin.mjs";
3
- import { LintMessage, MessageSeverity, __ΩLintMessage, __ΩMessageSeverity, formatMessage } from "./helpers/format-message.mjs";
4
4
  import "./types/index.mjs";
5
5
 
6
6
  //#region src/index.d.ts
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { t } from "./node_modules/.pnpm/@stryke_type-checks@0.5.17/node_modules/@stryke/type-checks/dist/is-set-object.mjs";
1
+ import { isSetObject } from "./node_modules/.pnpm/@stryke_type-checks@0.5.19/node_modules/@stryke/type-checks/dist/is-set-object.mjs";
2
2
  import { MessageSeverity, formatMessage } from "./helpers/format-message.mjs";
3
3
  import "./helpers/index.mjs";
4
4
  import { LogLevelLabel } from "@storm-software/config-tools/types";
@@ -46,7 +46,7 @@ function plugin(options = {}) {
46
46
  }) } };
47
47
  },
48
48
  async configResolved() {
49
- if (!t(this.packageJson.eslintConfig) && (!this.config.lint.eslint.configFile || !existsSync(this.config.lint.eslint.configFile))) throw new Error("No ESLint configuration file could be found");
49
+ if (!isSetObject(this.packageJson.eslintConfig) && (!this.config.lint.eslint.configFile || !existsSync(this.config.lint.eslint.configFile))) throw new Error("No ESLint configuration file could be found");
50
50
  else if (this.config.lint.eslint.configFile && existsSync(this.config.lint.eslint.configFile)) {
51
51
  const content = await readFile(this.config.lint.eslint.configFile);
52
52
  if (content?.trim().replace(/\s/g, "") || content?.trim().replace(/\s/g, "") === "---" || content?.trim().replace(/\s/g, "") === "{}" || content?.trim().replace(/\s/g, "") === "module.exports={}") throw new Error(`The ESLint configuration file at "${this.config.lint.eslint.configFile}" is empty`);
@@ -0,0 +1,15 @@
1
+
2
+ //#region ../../node_modules/.pnpm/@stryke+type-checks@0.5.19/node_modules/@stryke/type-checks/dist/get-object-tag.mjs
3
+ /**
4
+ * Gets the `toStringTag` of `obj`.
5
+ *
6
+ * @param value - The obj to query.
7
+ * @returns Returns the `toStringTag`.
8
+ */
9
+ const getObjectTag = (value) => {
10
+ if (value == null) return value === void 0 ? "[object Undefined]" : "[object Null]";
11
+ return Object.prototype.toString.call(value);
12
+ };
13
+
14
+ //#endregion
15
+ exports.getObjectTag = getObjectTag;
@@ -0,0 +1,14 @@
1
+ //#region ../../node_modules/.pnpm/@stryke+type-checks@0.5.19/node_modules/@stryke/type-checks/dist/get-object-tag.mjs
2
+ /**
3
+ * Gets the `toStringTag` of `obj`.
4
+ *
5
+ * @param value - The obj to query.
6
+ * @returns Returns the `toStringTag`.
7
+ */
8
+ const getObjectTag = (value) => {
9
+ if (value == null) return value === void 0 ? "[object Undefined]" : "[object Null]";
10
+ return Object.prototype.toString.call(value);
11
+ };
12
+
13
+ //#endregion
14
+ export { getObjectTag };
@@ -0,0 +1,20 @@
1
+ const require_is_null = require('./is-null.cjs');
2
+ const require_is_undefined = require('./is-undefined.cjs');
3
+
4
+ //#region ../../node_modules/.pnpm/@stryke+type-checks@0.5.19/node_modules/@stryke/type-checks/dist/is-empty.mjs
5
+ /**
6
+ * Check if the provided value's type is `null` or `undefined`
7
+ *
8
+ * @param value - The value to type check
9
+ * @returns An indicator specifying if the value provided is of type `null` or `undefined`
10
+ */
11
+ const isEmpty = (value) => {
12
+ try {
13
+ return require_is_undefined.isUndefined(value) || require_is_null.isNull(value);
14
+ } catch {
15
+ return false;
16
+ }
17
+ };
18
+
19
+ //#endregion
20
+ exports.isEmpty = isEmpty;
@@ -0,0 +1,20 @@
1
+ import { isNull } from "./is-null.mjs";
2
+ import { isUndefined } from "./is-undefined.mjs";
3
+
4
+ //#region ../../node_modules/.pnpm/@stryke+type-checks@0.5.19/node_modules/@stryke/type-checks/dist/is-empty.mjs
5
+ /**
6
+ * Check if the provided value's type is `null` or `undefined`
7
+ *
8
+ * @param value - The value to type check
9
+ * @returns An indicator specifying if the value provided is of type `null` or `undefined`
10
+ */
11
+ const isEmpty = (value) => {
12
+ try {
13
+ return isUndefined(value) || isNull(value);
14
+ } catch {
15
+ return false;
16
+ }
17
+ };
18
+
19
+ //#endregion
20
+ export { isEmpty };
@@ -0,0 +1,16 @@
1
+ const require_is_object = require('./is-object.cjs');
2
+ const require_is_set = require('./is-set.cjs');
3
+
4
+ //#region ../../node_modules/.pnpm/@stryke+type-checks@0.5.19/node_modules/@stryke/type-checks/dist/is-non-null-object.mjs
5
+ /**
6
+ * Check if the provided value's type is `Object` and is not `null` or `undefined`
7
+ *
8
+ * @param value - The value to type check
9
+ * @returns An indicator specifying if the value provided is of type `Object` and is not `null` or `undefined`
10
+ */
11
+ const isNonNullObject = (value) => {
12
+ return require_is_set.isSet(value) && require_is_object.isObject(value);
13
+ };
14
+
15
+ //#endregion
16
+ exports.isNonNullObject = isNonNullObject;
@@ -0,0 +1,16 @@
1
+ import { isObject } from "./is-object.mjs";
2
+ import { isSet } from "./is-set.mjs";
3
+
4
+ //#region ../../node_modules/.pnpm/@stryke+type-checks@0.5.19/node_modules/@stryke/type-checks/dist/is-non-null-object.mjs
5
+ /**
6
+ * Check if the provided value's type is `Object` and is not `null` or `undefined`
7
+ *
8
+ * @param value - The value to type check
9
+ * @returns An indicator specifying if the value provided is of type `Object` and is not `null` or `undefined`
10
+ */
11
+ const isNonNullObject = (value) => {
12
+ return isSet(value) && isObject(value);
13
+ };
14
+
15
+ //#endregion
16
+ export { isNonNullObject };
@@ -0,0 +1,12 @@
1
+
2
+ //#region ../../node_modules/.pnpm/@stryke+type-checks@0.5.19/node_modules/@stryke/type-checks/dist/is-null.mjs
3
+ const isNull = (value) => {
4
+ try {
5
+ return value === null;
6
+ } catch {
7
+ return false;
8
+ }
9
+ };
10
+
11
+ //#endregion
12
+ exports.isNull = isNull;
@@ -0,0 +1,11 @@
1
+ //#region ../../node_modules/.pnpm/@stryke+type-checks@0.5.19/node_modules/@stryke/type-checks/dist/is-null.mjs
2
+ const isNull = (value) => {
3
+ try {
4
+ return value === null;
5
+ } catch {
6
+ return false;
7
+ }
8
+ };
9
+
10
+ //#endregion
11
+ export { isNull };
@@ -0,0 +1,19 @@
1
+ const require_is_plain_object = require('./is-plain-object.cjs');
2
+
3
+ //#region ../../node_modules/.pnpm/@stryke+type-checks@0.5.19/node_modules/@stryke/type-checks/dist/is-object.mjs
4
+ /**
5
+ * Check if the provided value's type is `Object`
6
+ *
7
+ * @param value - The value to type check
8
+ * @returns An indicator specifying if the value provided is of type `Object`
9
+ */
10
+ const isObject = (value) => {
11
+ try {
12
+ return typeof value === "object" || Boolean(value) && value?.constructor === Object || require_is_plain_object.isPlainObject(value);
13
+ } catch {
14
+ return false;
15
+ }
16
+ };
17
+
18
+ //#endregion
19
+ exports.isObject = isObject;
@@ -0,0 +1,19 @@
1
+ import { isPlainObject } from "./is-plain-object.mjs";
2
+
3
+ //#region ../../node_modules/.pnpm/@stryke+type-checks@0.5.19/node_modules/@stryke/type-checks/dist/is-object.mjs
4
+ /**
5
+ * Check if the provided value's type is `Object`
6
+ *
7
+ * @param value - The value to type check
8
+ * @returns An indicator specifying if the value provided is of type `Object`
9
+ */
10
+ const isObject = (value) => {
11
+ try {
12
+ return typeof value === "object" || Boolean(value) && value?.constructor === Object || isPlainObject(value);
13
+ } catch {
14
+ return false;
15
+ }
16
+ };
17
+
18
+ //#endregion
19
+ export { isObject };
@@ -0,0 +1,63 @@
1
+ const require_get_object_tag = require('./get-object-tag.cjs');
2
+
3
+ //#region ../../node_modules/.pnpm/@stryke+type-checks@0.5.19/node_modules/@stryke/type-checks/dist/is-plain-object.mjs
4
+ /**
5
+ * Checks if `value` is object-like. A value is object-like if it's not `null`
6
+ * and has a `typeof` result of "object".
7
+ *
8
+ * @example
9
+ * ```typescript
10
+ * isObjectLike({})
11
+ * // => true
12
+ *
13
+ * isObjectLike([1, 2, 3])
14
+ * // => true
15
+ *
16
+ * isObjectLike(Function)
17
+ * // => false
18
+ *
19
+ * isObjectLike(null)
20
+ * // => false
21
+ * ```
22
+ *
23
+ * @param value - The value to check.
24
+ * @returns Returns `true` if `value` is object-like, else `false`.
25
+ */
26
+ const isObjectLike = (obj) => {
27
+ return typeof obj === "object" && obj !== null;
28
+ };
29
+ /**
30
+ * Checks if `obj` is a plain object, that is, an object created by the `Object` constructor or one with a `[[Prototype]]` of `null`.
31
+ *
32
+ * @example
33
+ * ```typescript
34
+ * function Foo() {
35
+ * this.a = 1
36
+ * }
37
+ *
38
+ * isPlainObject(new Foo)
39
+ * // => false
40
+ *
41
+ * isPlainObject([1, 2, 3])
42
+ * // => false
43
+ *
44
+ * isPlainObject({ 'x': 0, 'y': 0 })
45
+ * // => true
46
+ *
47
+ * isPlainObject(Object.create(null))
48
+ * // => true
49
+ * ```
50
+ *
51
+ * @param obj - The value to check.
52
+ * @returns Returns `true` if `obj` is a plain object, else `false`.
53
+ */
54
+ const isPlainObject = (obj) => {
55
+ if (!isObjectLike(obj) || require_get_object_tag.getObjectTag(obj) !== "[object Object]") return false;
56
+ if (Object.getPrototypeOf(obj) === null) return true;
57
+ let proto = obj;
58
+ while (Object.getPrototypeOf(proto) !== null) proto = Object.getPrototypeOf(proto);
59
+ return Object.getPrototypeOf(obj) === proto;
60
+ };
61
+
62
+ //#endregion
63
+ exports.isPlainObject = isPlainObject;