@storm-software/eslint 0.137.3 → 0.138.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 +1 -1
- package/dist/preset.d.ts +1 -1
- package/dist/preset.js +11 -13
- package/dist/{types-kqDn17wa.d.ts → types.d.ts} +72 -59
- package/dist/types.js +0 -0
- package/dist/utils/combine.d.ts +1 -1
- package/package.json +9 -1
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 {
|
|
3
|
+
import { OptionsConfig, RuleOptions, TypedFlatConfigItem, Awaitable, ConfigNames } from './types.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
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ensurePackages,
|
|
3
|
+
interopDefault,
|
|
4
|
+
isInEditorEnv,
|
|
5
|
+
isPackageInScope,
|
|
6
|
+
parserPlain,
|
|
7
|
+
renameRules
|
|
8
|
+
} from "./chunk-7NZUDX62.js";
|
|
1
9
|
import {
|
|
2
10
|
getTsConfigPath
|
|
3
11
|
} from "./chunk-GXNMSXDL.js";
|
|
@@ -36,14 +44,6 @@ import {
|
|
|
36
44
|
GLOB_XML,
|
|
37
45
|
GLOB_YAML
|
|
38
46
|
} from "./chunk-AIKLBIPC.js";
|
|
39
|
-
import {
|
|
40
|
-
ensurePackages,
|
|
41
|
-
interopDefault,
|
|
42
|
-
isInEditorEnv,
|
|
43
|
-
isPackageInScope,
|
|
44
|
-
parserPlain,
|
|
45
|
-
renameRules
|
|
46
|
-
} from "./chunk-7NZUDX62.js";
|
|
47
47
|
import {
|
|
48
48
|
__name
|
|
49
49
|
} from "./chunk-SHUYVCID.js";
|
|
@@ -871,10 +871,8 @@ async function javascript(options = {}) {
|
|
|
871
871
|
ecmaFeatures: {
|
|
872
872
|
jsx: true
|
|
873
873
|
},
|
|
874
|
-
ecmaVersion: 2022
|
|
875
|
-
|
|
876
|
-
},
|
|
877
|
-
sourceType: "module"
|
|
874
|
+
ecmaVersion: 2022
|
|
875
|
+
}
|
|
878
876
|
},
|
|
879
877
|
linterOptions: {
|
|
880
878
|
reportUnusedDisableDirectives: true
|
|
@@ -2575,7 +2573,7 @@ __name(node, "node");
|
|
|
2575
2573
|
// src/configs/nx.ts
|
|
2576
2574
|
import defu3 from "defu";
|
|
2577
2575
|
async function nx(options = {}) {
|
|
2578
|
-
const { depsCheck =
|
|
2576
|
+
const { depsCheck = {}, depsCheckSeverity = "error", moduleBoundaries, ignoredDependencies = [], ignoredFiles = [], checkObsoleteDependencies = true } = options;
|
|
2579
2577
|
return [
|
|
2580
2578
|
{
|
|
2581
2579
|
name: "storm/nx/setup",
|
|
@@ -16417,6 +16417,12 @@ type TypedFlatConfigItem = Omit<Linter.Config<Linter.RulesRecord & Rules>, "plug
|
|
|
16417
16417
|
*/
|
|
16418
16418
|
plugins?: Record<string, any>;
|
|
16419
16419
|
};
|
|
16420
|
+
interface OptionsFiles {
|
|
16421
|
+
/**
|
|
16422
|
+
* Override the `files` option to provide custom globs.
|
|
16423
|
+
*/
|
|
16424
|
+
files?: string[];
|
|
16425
|
+
}
|
|
16420
16426
|
type OptionsTypescript = (OptionsTypeScriptWithTypes & OptionsOverrides) | (OptionsTypeScriptParserOptions & OptionsOverrides);
|
|
16421
16427
|
interface OptionsFormatters {
|
|
16422
16428
|
/**
|
|
@@ -16479,7 +16485,7 @@ interface OptionsComponentExts {
|
|
|
16479
16485
|
* Additional extensions for components.
|
|
16480
16486
|
*
|
|
16481
16487
|
* @example ['vue']
|
|
16482
|
-
* @
|
|
16488
|
+
* @defaultValue []
|
|
16483
16489
|
*/
|
|
16484
16490
|
componentExts?: string[];
|
|
16485
16491
|
}
|
|
@@ -16487,7 +16493,7 @@ interface OptionsUnicorn {
|
|
|
16487
16493
|
/**
|
|
16488
16494
|
* Include all rules recommended by `eslint-plugin-unicorn`, instead of only ones picked by Anthony.
|
|
16489
16495
|
*
|
|
16490
|
-
* @
|
|
16496
|
+
* @defaultValue false
|
|
16491
16497
|
*/
|
|
16492
16498
|
allRecommended?: boolean;
|
|
16493
16499
|
}
|
|
@@ -16498,12 +16504,12 @@ interface OptionsTypeScriptParserOptions {
|
|
|
16498
16504
|
parserOptions?: Partial<ParserOptions>;
|
|
16499
16505
|
/**
|
|
16500
16506
|
* Glob patterns for files that should be type aware.
|
|
16501
|
-
* @
|
|
16507
|
+
* @defaultValue ['**\/*.{ts,tsx}']
|
|
16502
16508
|
*/
|
|
16503
16509
|
filesTypeAware?: string[];
|
|
16504
16510
|
/**
|
|
16505
16511
|
* Glob patterns for files that should not be type aware.
|
|
16506
|
-
* @
|
|
16512
|
+
* @defaultValue ['**\/*.md\/**', '**\/*.astro/*.ts']
|
|
16507
16513
|
*/
|
|
16508
16514
|
ignoresTypeAware?: string[];
|
|
16509
16515
|
}
|
|
@@ -16518,6 +16524,12 @@ interface OptionsTypeScriptWithTypes {
|
|
|
16518
16524
|
*/
|
|
16519
16525
|
overridesTypeAware?: TypedFlatConfigItem["rules"];
|
|
16520
16526
|
}
|
|
16527
|
+
interface OptionsHasTypeScript {
|
|
16528
|
+
typescript?: boolean;
|
|
16529
|
+
}
|
|
16530
|
+
interface OptionsStylistic {
|
|
16531
|
+
stylistic?: boolean | StylisticConfig;
|
|
16532
|
+
}
|
|
16521
16533
|
type StylisticConfig = Pick<StylisticCustomizeOptions, "indent" | "quotes" | "jsx" | "semi"> & {
|
|
16522
16534
|
lineEndings?: "unix" | "windows";
|
|
16523
16535
|
};
|
|
@@ -16528,7 +16540,7 @@ interface OptionsProjectType {
|
|
|
16528
16540
|
/**
|
|
16529
16541
|
* Type of the project. `lib` will enable more strict rules for libraries.
|
|
16530
16542
|
*
|
|
16531
|
-
* @
|
|
16543
|
+
* @defaultValue 'app'
|
|
16532
16544
|
*/
|
|
16533
16545
|
type?: "app" | "lib";
|
|
16534
16546
|
}
|
|
@@ -16538,15 +16550,18 @@ interface OptionsRegExp {
|
|
|
16538
16550
|
*/
|
|
16539
16551
|
level?: "error" | "warn";
|
|
16540
16552
|
}
|
|
16553
|
+
interface OptionsIsInEditor {
|
|
16554
|
+
isInEditor?: boolean;
|
|
16555
|
+
}
|
|
16541
16556
|
interface OptionsUnoCSS extends OptionsOverrides {
|
|
16542
16557
|
/**
|
|
16543
16558
|
* Enable attributify support.
|
|
16544
|
-
* @
|
|
16559
|
+
* @defaultValue true
|
|
16545
16560
|
*/
|
|
16546
16561
|
attributify?: boolean;
|
|
16547
16562
|
/**
|
|
16548
16563
|
* Enable strict mode by throwing errors about blocklisted classes.
|
|
16549
|
-
* @
|
|
16564
|
+
* @defaultValue false
|
|
16550
16565
|
*/
|
|
16551
16566
|
strict?: boolean;
|
|
16552
16567
|
}
|
|
@@ -16556,7 +16571,7 @@ interface OptionsNext extends OptionsOverrides {
|
|
|
16556
16571
|
*
|
|
16557
16572
|
* @see https://nextjs.org/docs/app/api-reference/config/eslint#with-core-web-vitals
|
|
16558
16573
|
*
|
|
16559
|
-
* @
|
|
16574
|
+
* @defaultValue true
|
|
16560
16575
|
*/
|
|
16561
16576
|
coreWebVitals?: boolean;
|
|
16562
16577
|
/**
|
|
@@ -16572,7 +16587,7 @@ interface OptionsGraphQL extends OptionsOverrides {
|
|
|
16572
16587
|
*
|
|
16573
16588
|
* @see https://the-guild.dev/graphql/eslint/rules
|
|
16574
16589
|
*
|
|
16575
|
-
* @
|
|
16590
|
+
* @defaultValue true
|
|
16576
16591
|
*/
|
|
16577
16592
|
schema?: boolean;
|
|
16578
16593
|
/**
|
|
@@ -16580,7 +16595,7 @@ interface OptionsGraphQL extends OptionsOverrides {
|
|
|
16580
16595
|
*
|
|
16581
16596
|
* @see https://the-guild.dev/graphql/eslint/rules
|
|
16582
16597
|
*
|
|
16583
|
-
* @
|
|
16598
|
+
* @defaultValue true
|
|
16584
16599
|
*/
|
|
16585
16600
|
operations?: boolean;
|
|
16586
16601
|
/**
|
|
@@ -16588,7 +16603,7 @@ interface OptionsGraphQL extends OptionsOverrides {
|
|
|
16588
16603
|
*
|
|
16589
16604
|
* @see https://github.com/relayjs/eslint-plugin-relay
|
|
16590
16605
|
*
|
|
16591
|
-
* @
|
|
16606
|
+
* @defaultValue true
|
|
16592
16607
|
*/
|
|
16593
16608
|
relay?: boolean;
|
|
16594
16609
|
}
|
|
@@ -16598,7 +16613,7 @@ interface OptionsStorybook extends OptionsOverrides {
|
|
|
16598
16613
|
*
|
|
16599
16614
|
* @see https://storybook.js.org/docs/api/csf
|
|
16600
16615
|
*
|
|
16601
|
-
* @
|
|
16616
|
+
* @defaultValue "loose"
|
|
16602
16617
|
*/
|
|
16603
16618
|
csf?: "none" | "loose" | "strict";
|
|
16604
16619
|
}
|
|
@@ -16606,49 +16621,49 @@ interface OptionsNxDependencyChecks extends OptionsOverrides {
|
|
|
16606
16621
|
/**
|
|
16607
16622
|
* List of build target names
|
|
16608
16623
|
*
|
|
16609
|
-
* @
|
|
16624
|
+
* @defaultValue ['build-base', 'build']
|
|
16610
16625
|
*/
|
|
16611
16626
|
buildTargets: string[];
|
|
16612
16627
|
/**
|
|
16613
16628
|
* Disable to skip checking for missing dependencies
|
|
16614
16629
|
*
|
|
16615
|
-
* @
|
|
16630
|
+
* @defaultValue true
|
|
16616
16631
|
*/
|
|
16617
16632
|
checkMissingDependencies: boolean;
|
|
16618
16633
|
/**
|
|
16619
16634
|
* Disable to skip checking for unused dependencies
|
|
16620
16635
|
*
|
|
16621
|
-
* @
|
|
16636
|
+
* @defaultValue true
|
|
16622
16637
|
*/
|
|
16623
16638
|
checkObsoleteDependencies: boolean;
|
|
16624
16639
|
/**
|
|
16625
16640
|
* Disable to skip checking if version specifier matches installed version
|
|
16626
16641
|
*
|
|
16627
|
-
* @
|
|
16642
|
+
* @defaultValue true
|
|
16628
16643
|
*/
|
|
16629
16644
|
checkVersionMismatches: boolean;
|
|
16630
16645
|
/**
|
|
16631
16646
|
* List of dependencies to ignore for checks
|
|
16632
16647
|
*
|
|
16633
|
-
* @
|
|
16648
|
+
* @defaultValue []
|
|
16634
16649
|
*/
|
|
16635
16650
|
ignoredDependencies: string[];
|
|
16636
16651
|
/**
|
|
16637
16652
|
* List of files to ignore when collecting dependencies. The default value will be set based on the selected executor during the generation.
|
|
16638
16653
|
*
|
|
16639
|
-
* @
|
|
16654
|
+
* @defaultValue []
|
|
16640
16655
|
*/
|
|
16641
16656
|
ignoredFiles: string[];
|
|
16642
16657
|
/**
|
|
16643
16658
|
* Enable to collect dependencies of children projects
|
|
16644
16659
|
*
|
|
16645
|
-
* @
|
|
16660
|
+
* @defaultValue false
|
|
16646
16661
|
*/
|
|
16647
16662
|
includeTransitiveDependencies: boolean;
|
|
16648
16663
|
/**
|
|
16649
16664
|
* Set workspace dependencies as relative file:// paths. Useful for monorepos that link via file:// in package.json files.
|
|
16650
16665
|
*
|
|
16651
|
-
* @
|
|
16666
|
+
* @defaultValue false
|
|
16652
16667
|
*/
|
|
16653
16668
|
useLocalPathsForWorkspaceDependencies: boolean;
|
|
16654
16669
|
}
|
|
@@ -16656,55 +16671,55 @@ interface OptionsNxEnforceModuleBoundaries extends OptionsOverrides {
|
|
|
16656
16671
|
/**
|
|
16657
16672
|
* List of imports that should be allowed without any checks
|
|
16658
16673
|
*
|
|
16659
|
-
* @
|
|
16674
|
+
* @defaultValue []
|
|
16660
16675
|
*/
|
|
16661
16676
|
allow: string[];
|
|
16662
16677
|
/**
|
|
16663
16678
|
* List of build target names
|
|
16664
16679
|
*
|
|
16665
|
-
* @
|
|
16680
|
+
* @defaultValue ['build-base', 'build']
|
|
16666
16681
|
*/
|
|
16667
16682
|
buildTargets: string[];
|
|
16668
16683
|
/**
|
|
16669
16684
|
* List of dependency constraints between projects
|
|
16670
16685
|
*
|
|
16671
|
-
* @
|
|
16686
|
+
* @defaultValue true
|
|
16672
16687
|
*/
|
|
16673
16688
|
depConstraints: DepConstraint[];
|
|
16674
16689
|
/**
|
|
16675
16690
|
* Enable to restrict the buildable libs from importing non-buildable libraries
|
|
16676
16691
|
*
|
|
16677
|
-
* @
|
|
16692
|
+
* @defaultValue true
|
|
16678
16693
|
*/
|
|
16679
16694
|
enforceBuildableLibDependency: boolean;
|
|
16680
16695
|
/**
|
|
16681
16696
|
* Disable check for self circular dependency when project imports from itself via alias path
|
|
16682
16697
|
*
|
|
16683
|
-
* @
|
|
16698
|
+
* @defaultValue false
|
|
16684
16699
|
*/
|
|
16685
16700
|
allowCircularSelfDependency: boolean;
|
|
16686
16701
|
/**
|
|
16687
16702
|
* List of project pairs that should be skipped from Circular dependencies checks, including the self-circular dependency check. E.g. ['feature-project-a', 'myapp']. Project name can be replaced by catch all * for more generic matches.
|
|
16688
16703
|
*
|
|
16689
|
-
* @
|
|
16704
|
+
* @defaultValue []
|
|
16690
16705
|
*/
|
|
16691
16706
|
ignoredCircularDependencies: Array<[string, string]>;
|
|
16692
16707
|
/**
|
|
16693
16708
|
* List of imports that should be skipped for Imports of lazy-loaded libraries forbidden checks. E.g. ['@myorg/lazy-project/component/*', '@myorg/other-project']
|
|
16694
16709
|
*
|
|
16695
|
-
* @
|
|
16710
|
+
* @defaultValue []
|
|
16696
16711
|
*/
|
|
16697
16712
|
checkDynamicDependenciesExceptions: string[];
|
|
16698
16713
|
/**
|
|
16699
16714
|
* Ban import of dependencies that were not specified in the root or project's package.json
|
|
16700
16715
|
*
|
|
16701
|
-
* @
|
|
16716
|
+
* @defaultValue false
|
|
16702
16717
|
*/
|
|
16703
16718
|
banTransitiveDependencies: boolean;
|
|
16704
16719
|
/**
|
|
16705
16720
|
* Enable to enforce the check for banned external imports in the nested packages. Check [Dependency constraints](https://nx.dev/nx-api/eslint-plugin/documents/enforce-module-boundaries#dependency-constraints) for more information
|
|
16706
16721
|
*
|
|
16707
|
-
* @
|
|
16722
|
+
* @defaultValue false
|
|
16708
16723
|
*/
|
|
16709
16724
|
checkNestedExternalImports: boolean;
|
|
16710
16725
|
}
|
|
@@ -16726,14 +16741,12 @@ interface OptionsNx extends OptionsOverrides {
|
|
|
16726
16741
|
*
|
|
16727
16742
|
* @remarks
|
|
16728
16743
|
* If any values are overridden here, the `ignoredDependencies`, `ignoredFiles`, and `checkObsoleteDependencies` options will be ignored.
|
|
16729
|
-
*
|
|
16730
|
-
* @defaultValue `false`
|
|
16731
16744
|
*/
|
|
16732
16745
|
depsCheck?: OptionsNxDependencyChecks | false;
|
|
16733
16746
|
/**
|
|
16734
16747
|
* The severity of the `@nx/dependency-checks` rule
|
|
16735
16748
|
*
|
|
16736
|
-
* @defaultValue "
|
|
16749
|
+
* @defaultValue "warn"
|
|
16737
16750
|
*/
|
|
16738
16751
|
depsCheckSeverity?: "off" | "warn" | "error";
|
|
16739
16752
|
/**
|
|
@@ -16745,7 +16758,7 @@ interface OptionsCSpell extends OptionsOverrides {
|
|
|
16745
16758
|
/**
|
|
16746
16759
|
* A path to a CSpell configuration file
|
|
16747
16760
|
*
|
|
16748
|
-
* @
|
|
16761
|
+
* @defaultValue "./.vscode/cspell.json"
|
|
16749
16762
|
*/
|
|
16750
16763
|
configFile?: string;
|
|
16751
16764
|
}
|
|
@@ -16765,7 +16778,7 @@ interface OptionsJavascript {
|
|
|
16765
16778
|
/**
|
|
16766
16779
|
* The style of line endings to use.
|
|
16767
16780
|
*
|
|
16768
|
-
* @
|
|
16781
|
+
* @defaultValue "unix"
|
|
16769
16782
|
*/
|
|
16770
16783
|
lineEndings?: "unix" | "windows";
|
|
16771
16784
|
}
|
|
@@ -16776,13 +16789,13 @@ interface OptionsConfig extends OptionsComponentExts, OptionsJavascript, Options
|
|
|
16776
16789
|
* Passing an object to configure the options.
|
|
16777
16790
|
*
|
|
16778
16791
|
* @see https://github.com/antfu/eslint-config-flat-gitignore
|
|
16779
|
-
* @
|
|
16792
|
+
* @defaultValue true
|
|
16780
16793
|
*/
|
|
16781
16794
|
gitignore?: boolean | FlatGitignoreOptions;
|
|
16782
16795
|
/**
|
|
16783
16796
|
* Disable some opinionated rules to Anthony's preference.
|
|
16784
16797
|
*
|
|
16785
|
-
* @
|
|
16798
|
+
* @defaultValue false
|
|
16786
16799
|
*/
|
|
16787
16800
|
lessOpinionated?: boolean;
|
|
16788
16801
|
/**
|
|
@@ -16795,7 +16808,7 @@ interface OptionsConfig extends OptionsComponentExts, OptionsJavascript, Options
|
|
|
16795
16808
|
* Requires installing:
|
|
16796
16809
|
* - `@cspell/eslint-plugin`
|
|
16797
16810
|
*
|
|
16798
|
-
* @
|
|
16811
|
+
* @defaultValue true
|
|
16799
16812
|
*/
|
|
16800
16813
|
cspell?: boolean | OptionsCSpell;
|
|
16801
16814
|
/**
|
|
@@ -16803,7 +16816,7 @@ interface OptionsConfig extends OptionsComponentExts, OptionsJavascript, Options
|
|
|
16803
16816
|
*
|
|
16804
16817
|
* Passing an object to enable TypeScript Language Server support.
|
|
16805
16818
|
*
|
|
16806
|
-
* @
|
|
16819
|
+
* @defaultValue auto-detect based on the dependencies
|
|
16807
16820
|
*/
|
|
16808
16821
|
typescript?: boolean | OptionsTypescript;
|
|
16809
16822
|
/**
|
|
@@ -16815,37 +16828,37 @@ interface OptionsConfig extends OptionsComponentExts, OptionsJavascript, Options
|
|
|
16815
16828
|
*
|
|
16816
16829
|
* Currently only stylistic rules are included.
|
|
16817
16830
|
*
|
|
16818
|
-
* @
|
|
16831
|
+
* @defaultValue true
|
|
16819
16832
|
*/
|
|
16820
16833
|
jsx?: boolean;
|
|
16821
16834
|
/**
|
|
16822
16835
|
* Options for eslint-plugin-unicorn.
|
|
16823
16836
|
*
|
|
16824
|
-
* @
|
|
16837
|
+
* @defaultValue true
|
|
16825
16838
|
*/
|
|
16826
16839
|
unicorn?: boolean | OptionsUnicorn;
|
|
16827
16840
|
/**
|
|
16828
16841
|
* Enable test support.
|
|
16829
16842
|
*
|
|
16830
|
-
* @
|
|
16843
|
+
* @defaultValue true
|
|
16831
16844
|
*/
|
|
16832
16845
|
test?: boolean | OptionsOverrides;
|
|
16833
16846
|
/**
|
|
16834
16847
|
* Enable JSONC support.
|
|
16835
16848
|
*
|
|
16836
|
-
* @
|
|
16849
|
+
* @defaultValue true
|
|
16837
16850
|
*/
|
|
16838
16851
|
jsonc?: boolean | OptionsOverrides;
|
|
16839
16852
|
/**
|
|
16840
16853
|
* Enable YAML support.
|
|
16841
16854
|
*
|
|
16842
|
-
* @
|
|
16855
|
+
* @defaultValue true
|
|
16843
16856
|
*/
|
|
16844
16857
|
yaml?: boolean | OptionsOverrides;
|
|
16845
16858
|
/**
|
|
16846
16859
|
* Enable TOML support.
|
|
16847
16860
|
*
|
|
16848
|
-
* @
|
|
16861
|
+
* @defaultValue true
|
|
16849
16862
|
*/
|
|
16850
16863
|
toml?: boolean | OptionsOverrides;
|
|
16851
16864
|
/**
|
|
@@ -16857,7 +16870,7 @@ interface OptionsConfig extends OptionsComponentExts, OptionsJavascript, Options
|
|
|
16857
16870
|
* Requires installing for formatting .astro:
|
|
16858
16871
|
* - `prettier-plugin-astro`
|
|
16859
16872
|
*
|
|
16860
|
-
* @
|
|
16873
|
+
* @defaultValue false
|
|
16861
16874
|
*/
|
|
16862
16875
|
astro?: boolean | OptionsOverrides;
|
|
16863
16876
|
/**
|
|
@@ -16865,13 +16878,13 @@ interface OptionsConfig extends OptionsComponentExts, OptionsJavascript, Options
|
|
|
16865
16878
|
*
|
|
16866
16879
|
* For formatting Markdown content, enable also `formatters.markdown`.
|
|
16867
16880
|
*
|
|
16868
|
-
* @
|
|
16881
|
+
* @defaultValue true
|
|
16869
16882
|
*/
|
|
16870
16883
|
markdown?: boolean | OptionsOverrides;
|
|
16871
16884
|
/**
|
|
16872
16885
|
* Enable linting for mdx files.
|
|
16873
16886
|
*
|
|
16874
|
-
* @
|
|
16887
|
+
* @defaultValue true
|
|
16875
16888
|
*/
|
|
16876
16889
|
mdx?: boolean | OptionsOverrides;
|
|
16877
16890
|
/**
|
|
@@ -16879,26 +16892,26 @@ interface OptionsConfig extends OptionsComponentExts, OptionsJavascript, Options
|
|
|
16879
16892
|
*
|
|
16880
16893
|
* @see https://eslint.style/
|
|
16881
16894
|
*
|
|
16882
|
-
* @
|
|
16895
|
+
* @defaultValue false
|
|
16883
16896
|
*/
|
|
16884
16897
|
stylistic?: boolean | (StylisticConfig & OptionsOverrides);
|
|
16885
16898
|
/**
|
|
16886
16899
|
* Enable regexp rules.
|
|
16887
16900
|
*
|
|
16888
16901
|
* @see https://ota-meshi.github.io/eslint-plugin-regexp/
|
|
16889
|
-
* @
|
|
16902
|
+
* @defaultValue true
|
|
16890
16903
|
*/
|
|
16891
16904
|
regexp?: boolean | (OptionsRegExp & OptionsOverrides);
|
|
16892
16905
|
/**
|
|
16893
16906
|
* Enable GraphQL support.
|
|
16894
16907
|
*
|
|
16895
|
-
* @
|
|
16908
|
+
* @defaultValue false
|
|
16896
16909
|
*/
|
|
16897
16910
|
graphql?: boolean | OptionsGraphQL;
|
|
16898
16911
|
/**
|
|
16899
16912
|
* Enable Storybook support.
|
|
16900
16913
|
*
|
|
16901
|
-
* @
|
|
16914
|
+
* @defaultValue false
|
|
16902
16915
|
*/
|
|
16903
16916
|
storybook?: boolean | OptionsStorybook;
|
|
16904
16917
|
/**
|
|
@@ -16909,7 +16922,7 @@ interface OptionsConfig extends OptionsComponentExts, OptionsJavascript, Options
|
|
|
16909
16922
|
* - `eslint-plugin-react-hooks`
|
|
16910
16923
|
* - `eslint-plugin-react-refresh`
|
|
16911
16924
|
*
|
|
16912
|
-
* @
|
|
16925
|
+
* @defaultValue false
|
|
16913
16926
|
*/
|
|
16914
16927
|
react?: boolean | OptionsOverrides;
|
|
16915
16928
|
/**
|
|
@@ -16918,7 +16931,7 @@ interface OptionsConfig extends OptionsComponentExts, OptionsJavascript, Options
|
|
|
16918
16931
|
* Requires installing:
|
|
16919
16932
|
* - `eslint-plugin-react-native`
|
|
16920
16933
|
*
|
|
16921
|
-
* @
|
|
16934
|
+
* @defaultValue false
|
|
16922
16935
|
*/
|
|
16923
16936
|
"react-native"?: boolean | OptionsOverrides;
|
|
16924
16937
|
/**
|
|
@@ -16927,7 +16940,7 @@ interface OptionsConfig extends OptionsComponentExts, OptionsJavascript, Options
|
|
|
16927
16940
|
* Requires installing:
|
|
16928
16941
|
* - `@next/eslint-plugin-next`
|
|
16929
16942
|
*
|
|
16930
|
-
* @
|
|
16943
|
+
* @defaultValue false
|
|
16931
16944
|
*/
|
|
16932
16945
|
next?: boolean | OptionsNext;
|
|
16933
16946
|
/**
|
|
@@ -16936,7 +16949,7 @@ interface OptionsConfig extends OptionsComponentExts, OptionsJavascript, Options
|
|
|
16936
16949
|
* Requires installing:
|
|
16937
16950
|
* - `@unocss/eslint-plugin`
|
|
16938
16951
|
*
|
|
16939
|
-
* @
|
|
16952
|
+
* @defaultValue false
|
|
16940
16953
|
*/
|
|
16941
16954
|
unocss?: boolean | OptionsUnoCSS;
|
|
16942
16955
|
/**
|
|
@@ -16947,20 +16960,20 @@ interface OptionsConfig extends OptionsComponentExts, OptionsJavascript, Options
|
|
|
16947
16960
|
*
|
|
16948
16961
|
* When set to `true`, it will enable all formatters.
|
|
16949
16962
|
*
|
|
16950
|
-
* @
|
|
16963
|
+
* @defaultValue false
|
|
16951
16964
|
*/
|
|
16952
16965
|
formatters?: boolean | OptionsFormatters;
|
|
16953
16966
|
/**
|
|
16954
16967
|
* Control to disable some rules in editors.
|
|
16955
|
-
* @
|
|
16968
|
+
* @defaultValue auto-detect based on the process.env
|
|
16956
16969
|
*/
|
|
16957
16970
|
isInEditor?: boolean;
|
|
16958
16971
|
/**
|
|
16959
16972
|
* Automatically rename plugins in the config.
|
|
16960
16973
|
*
|
|
16961
|
-
* @
|
|
16974
|
+
* @defaultValue true
|
|
16962
16975
|
*/
|
|
16963
16976
|
autoRenamePlugins?: boolean;
|
|
16964
16977
|
}
|
|
16965
16978
|
|
|
16966
|
-
export type { Awaitable
|
|
16979
|
+
export type { Awaitable, ConfigNames, ESLintGlobalsPropValue, OptionsCSpell, OptionsComponentExts, OptionsConfig, OptionsFiles, OptionsFormatters, OptionsGraphQL, OptionsHasTypeScript, OptionsIsInEditor, OptionsJavascript, OptionsNext, OptionsNx, OptionsNxDependencyChecks, OptionsNxEnforceModuleBoundaries, OptionsOverrides, OptionsProjectType, OptionsRegExp, OptionsStorybook, OptionsStylistic, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, OptionsTypescript, OptionsUnicorn, OptionsUnoCSS, RuleOptions, Rules, StylisticConfig, TypedFlatConfigItem };
|
package/dist/types.js
ADDED
|
File without changes
|
package/dist/utils/combine.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Awaitable } from 'eslint-flat-config-utils';
|
|
2
|
-
import {
|
|
2
|
+
import { TypedFlatConfigItem } from '../types.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.
|
|
3
|
+
"version": "0.138.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "⚡ A package containing the base ESLint configuration used by Storm Software across many projects.",
|
|
6
6
|
"repository": {
|
|
@@ -87,6 +87,14 @@
|
|
|
87
87
|
"default": "./dist/preset.js"
|
|
88
88
|
}
|
|
89
89
|
},
|
|
90
|
+
"./types": {
|
|
91
|
+
"import": { "types": "./dist/types.d.ts", "default": "./dist/types.js" },
|
|
92
|
+
"require": {
|
|
93
|
+
"types": "./dist/types.d.cts",
|
|
94
|
+
"default": "./dist/types.cjs"
|
|
95
|
+
},
|
|
96
|
+
"default": { "types": "./dist/types.d.ts", "default": "./dist/types.js" }
|
|
97
|
+
},
|
|
90
98
|
"./rules/*": {
|
|
91
99
|
"import": {
|
|
92
100
|
"types": "./dist/rules/*.d.ts",
|