@storm-software/eslint 0.135.2 → 0.136.1

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.135.1-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.136.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.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Linter } from 'eslint';
2
2
  import { FlatConfigComposer } from 'eslint-flat-config-utils';
3
- import { O as OptionsConfig, R as RuleOptions, T as TypedFlatConfigItem, A as Awaitable, C as ConfigNames } from './types-DoAVTMEw.js';
3
+ import { O as OptionsConfig, R as RuleOptions, T as TypedFlatConfigItem, A as Awaitable, C as ConfigNames } from './types-kqDn17wa.js';
4
4
  import '@nx/eslint-plugin/src/utils/runtime-lint-utils';
5
5
  import '@stylistic/eslint-plugin';
6
6
  import '@typescript-eslint/parser';
package/dist/preset.js CHANGED
@@ -2575,7 +2575,7 @@ __name(node, "node");
2575
2575
  // src/configs/nx.ts
2576
2576
  import defu3 from "defu";
2577
2577
  async function nx(options = {}) {
2578
- const { depsCheck, moduleBoundaries, ignoredDependencies = [], ignoredFiles = [], checkObsoleteDependencies = true } = options;
2578
+ const { depsCheck = false, depsCheckSeverity = "error", moduleBoundaries, ignoredDependencies = [], ignoredFiles = [], checkObsoleteDependencies = true } = options;
2579
2579
  return [
2580
2580
  {
2581
2581
  name: "storm/nx/setup",
@@ -2598,10 +2598,10 @@ async function nx(options = {}) {
2598
2598
  files: [
2599
2599
  "**/package.json"
2600
2600
  ],
2601
- rules: {
2601
+ rules: depsCheck !== false ? {
2602
2602
  "@nx/dependency-checks": [
2603
- "error",
2604
- defu3(depsCheck ?? {}, {
2603
+ depsCheckSeverity,
2604
+ defu3(depsCheck, {
2605
2605
  buildTargets: [
2606
2606
  "build-base",
2607
2607
  "build"
@@ -2615,7 +2615,7 @@ async function nx(options = {}) {
2615
2615
  useLocalPathsForWorkspaceDependencies: true
2616
2616
  })
2617
2617
  ]
2618
- }
2618
+ } : {}
2619
2619
  },
2620
2620
  {
2621
2621
  name: "storm/nx/module-boundaries",
@@ -2629,7 +2629,7 @@ async function nx(options = {}) {
2629
2629
  rules: moduleBoundaries !== false ? {
2630
2630
  "@nx/enforce-module-boundaries": [
2631
2631
  "error",
2632
- moduleBoundaries ?? {
2632
+ defu3(moduleBoundaries ?? {}, {
2633
2633
  enforceBuildableLibDependency: false,
2634
2634
  checkDynamicDependenciesExceptions: [
2635
2635
  ".*"
@@ -2643,7 +2643,7 @@ async function nx(options = {}) {
2643
2643
  ]
2644
2644
  }
2645
2645
  ]
2646
- }
2646
+ })
2647
2647
  ]
2648
2648
  } : {}
2649
2649
  }
@@ -3856,6 +3856,11 @@ Backward pagination arguments
3856
3856
  * @see https://eslint-react.xyz/docs/rules/dom-no-find-dom-node
3857
3857
  */
3858
3858
  'react-dom/no-find-dom-node'?: Linter.RuleEntry<[]>
3859
+ /**
3860
+ * warns against using `flushSync`
3861
+ * @see https://eslint-react.xyz/docs/rules/dom-no-flush-sync
3862
+ */
3863
+ 'react-dom/no-flush-sync'?: Linter.RuleEntry<[]>
3859
3864
  /**
3860
3865
  * enforce that button component have an explicit 'type' attribute
3861
3866
  * @see https://eslint-react.xyz/docs/rules/dom-no-missing-button-type
@@ -3962,10 +3967,15 @@ Backward pagination arguments
3962
3967
  */
3963
3968
  'react-hooks/rules-of-hooks'?: Linter.RuleEntry<[]>
3964
3969
  /**
3965
- * enforce component naming convention to 'PascalCase' or 'CONSTANT_CASE'
3970
+ * enforce naming convention for components
3966
3971
  * @see https://eslint-react.xyz/docs/rules/naming-convention-component-name
3967
3972
  */
3968
3973
  'react-naming-convention/component-name'?: Linter.RuleEntry<ReactNamingConventionComponentName>
3974
+ /**
3975
+ * enforce context name to be a valid component name with the suffix 'Context'
3976
+ * @see https://eslint-react.xyz/docs/rules/naming-convention-context-name
3977
+ */
3978
+ 'react-naming-convention/context-name'?: Linter.RuleEntry<[]>
3969
3979
  /**
3970
3980
  * enforce naming convention for JSX filenames
3971
3981
  * @see https://eslint-react.xyz/docs/rules/naming-convention-filename
@@ -4043,7 +4053,7 @@ Backward pagination arguments
4043
4053
  */
4044
4054
  'react/no-access-state-in-setstate'?: Linter.RuleEntry<[]>
4045
4055
  /**
4046
- * disallow using Array index as 'key'
4056
+ * disallow using an item's index in the array as its key
4047
4057
  * @see https://eslint-react.xyz/docs/rules/no-array-index-key
4048
4058
  */
4049
4059
  'react/no-array-index-key'?: Linter.RuleEntry<[]>
@@ -10746,7 +10756,18 @@ type NodeNoRestrictedRequire = []|[(string | {
10746
10756
  // ----- node/no-sync -----
10747
10757
  type NodeNoSync = []|[{
10748
10758
  allowAtRootLevel?: boolean
10749
- ignores?: string[]
10759
+ ignores?: (string | {
10760
+ from?: "file"
10761
+ path?: string
10762
+ name?: string[]
10763
+ } | {
10764
+ from?: "lib"
10765
+ name?: string[]
10766
+ } | {
10767
+ from?: "package"
10768
+ package?: string
10769
+ name?: string[]
10770
+ })[]
10750
10771
  }]
10751
10772
  // ----- node/no-unpublished-bin -----
10752
10773
  type NodeNoUnpublishedBin = []|[{
@@ -14532,6 +14553,8 @@ type TsExplicitModuleBoundaryTypes = []|[{
14532
14553
 
14533
14554
  allowHigherOrderFunctions?: boolean
14534
14555
 
14556
+ allowOverloadFunctions?: boolean
14557
+
14535
14558
  allowTypedFunctionExpressions?: boolean
14536
14559
  }]
14537
14560
  // ----- ts/init-declarations -----
@@ -15563,6 +15586,8 @@ type TsUnboundMethod = []|[{
15563
15586
  type TsUnifiedSignatures = []|[{
15564
15587
 
15565
15588
  ignoreDifferentlyNamedParameters?: boolean
15589
+
15590
+ ignoreOverloadsWithDifferentJSDoc?: boolean
15566
15591
  }]
15567
15592
  // ----- unicode-bom -----
15568
15593
  type UnicodeBom = []|[("always" | "never")]
@@ -16701,8 +16726,16 @@ interface OptionsNx extends OptionsOverrides {
16701
16726
  *
16702
16727
  * @remarks
16703
16728
  * If any values are overridden here, the `ignoredDependencies`, `ignoredFiles`, and `checkObsoleteDependencies` options will be ignored.
16729
+ *
16730
+ * @defaultValue `false`
16704
16731
  */
16705
16732
  depsCheck?: OptionsNxDependencyChecks | false;
16733
+ /**
16734
+ * The severity of the `@nx/dependency-checks` rule
16735
+ *
16736
+ * @defaultValue "error"
16737
+ */
16738
+ depsCheckSeverity?: "off" | "warn" | "error";
16706
16739
  /**
16707
16740
  * Enables us to define strict rules for accessing resources between different projects in the repository. Enforcing strict boundaries helps to prevent unplanned cross-dependencies.
16708
16741
  */
@@ -1,5 +1,5 @@
1
1
  import { Awaitable } from 'eslint-flat-config-utils';
2
- import { T as TypedFlatConfigItem } from '../types-DoAVTMEw.js';
2
+ import { T as TypedFlatConfigItem } from '../types-kqDn17wa.js';
3
3
  import '@nx/eslint-plugin/src/utils/runtime-lint-utils';
4
4
  import '@stylistic/eslint-plugin';
5
5
  import '@typescript-eslint/parser';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/eslint",
3
- "version": "0.135.2",
3
+ "version": "0.136.1",
4
4
  "type": "module",
5
5
  "description": "⚡ A package containing the base ESLint configuration used by Storm Software across many projects.",
6
6
  "repository": {