@storm-software/eslint 0.46.0 → 0.47.0

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
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
21
21
 
22
22
  <h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
23
23
 
24
- [![Version](https://img.shields.io/badge/version-0.45.0-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&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;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
24
+ [![Version](https://img.shields.io/badge/version-0.46.0-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&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;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
25
25
 
26
26
  <!-- prettier-ignore-start -->
27
27
  <!-- markdownlint-disable -->
package/dist/preset.d.mts CHANGED
@@ -4728,4 +4728,37 @@ type YmlSpacedComment = []|[("always" | "never")]|[("always" | "never"), {
4728
4728
  markers?: string[]
4729
4729
  }]
4730
4730
 
4731
- export type { RuleOptions };
4731
+ /**
4732
+ * The module boundary dependency constraints.
4733
+ */
4734
+ type PresetModuleBoundaryDepConstraints = {
4735
+ sourceTag: string;
4736
+ onlyDependOnLibsWithTags: string[];
4737
+ };
4738
+ /**
4739
+ * The module boundary options.
4740
+ */
4741
+ type PresetModuleBoundary = {
4742
+ enforceBuildableLibDependency: boolean;
4743
+ allow: any[];
4744
+ depConstraints: PresetModuleBoundaryDepConstraints[];
4745
+ };
4746
+ /**
4747
+ * The ESLint preset options.
4748
+ */
4749
+ interface PresetOptions {
4750
+ rules?: RuleOptions;
4751
+ ignores?: string[];
4752
+ parserOptions?: Linter.ParserOptions;
4753
+ markdown?: false | Linter.RulesRecord;
4754
+ react?: false | Linter.RulesRecord;
4755
+ }
4756
+ /**
4757
+ * Get the ESLint configuration for a Storm workspace.
4758
+ *
4759
+ * @param options - The preset options.
4760
+ * @param userConfigs - Additional ESLint configurations.
4761
+ */
4762
+ declare function getStormConfig(options?: PresetOptions, ...userConfigs: Linter.FlatConfig[]): Linter.FlatConfig[];
4763
+
4764
+ export { type PresetModuleBoundary, type PresetModuleBoundaryDepConstraints, type PresetOptions, getStormConfig };
package/dist/preset.d.ts CHANGED
@@ -4728,4 +4728,37 @@ type YmlSpacedComment = []|[("always" | "never")]|[("always" | "never"), {
4728
4728
  markers?: string[]
4729
4729
  }]
4730
4730
 
4731
- export type { RuleOptions };
4731
+ /**
4732
+ * The module boundary dependency constraints.
4733
+ */
4734
+ type PresetModuleBoundaryDepConstraints = {
4735
+ sourceTag: string;
4736
+ onlyDependOnLibsWithTags: string[];
4737
+ };
4738
+ /**
4739
+ * The module boundary options.
4740
+ */
4741
+ type PresetModuleBoundary = {
4742
+ enforceBuildableLibDependency: boolean;
4743
+ allow: any[];
4744
+ depConstraints: PresetModuleBoundaryDepConstraints[];
4745
+ };
4746
+ /**
4747
+ * The ESLint preset options.
4748
+ */
4749
+ interface PresetOptions {
4750
+ rules?: RuleOptions;
4751
+ ignores?: string[];
4752
+ parserOptions?: Linter.ParserOptions;
4753
+ markdown?: false | Linter.RulesRecord;
4754
+ react?: false | Linter.RulesRecord;
4755
+ }
4756
+ /**
4757
+ * Get the ESLint configuration for a Storm workspace.
4758
+ *
4759
+ * @param options - The preset options.
4760
+ * @param userConfigs - Additional ESLint configurations.
4761
+ */
4762
+ declare function getStormConfig(options?: PresetOptions, ...userConfigs: Linter.FlatConfig[]): Linter.FlatConfig[];
4763
+
4764
+ export { type PresetModuleBoundary, type PresetModuleBoundaryDepConstraints, type PresetOptions, getStormConfig };
package/dist/preset.mjs CHANGED
@@ -1,8 +1,8 @@
1
- import path from 'path';
2
- import { fileURLToPath } from 'url';
1
+ import { dirname as banner_dirname } from 'node:path';
2
+ import { fileURLToPath as banner_fileURLToPath } from 'node:url';
3
3
 
4
- const __filename = fileURLToPath(import.meta.url);
5
- const __dirname = path.dirname(__filename);
4
+ const __filename = banner_fileURLToPath(import.meta.url);
5
+ const __dirname = banner_dirname(__filename);
6
6
 
7
7
  import require$$0 from 'eslint/use-at-your-own-risk';
8
8
  import require$$0$1 from 'eslint';