@storm-software/eslint 0.136.0 → 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
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
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-
|
|
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
|
-
|
|
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
|
|
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
|
|
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
|
*/
|
package/dist/utils/combine.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Awaitable } from 'eslint-flat-config-utils';
|
|
2
|
-
import { T as TypedFlatConfigItem } from '../types-
|
|
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