@storm-software/eslint 0.142.0 → 0.143.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/dist/preset.js CHANGED
@@ -5,14 +5,14 @@ import {
5
5
  isPackageInScope,
6
6
  parserPlain,
7
7
  renameRules
8
- } from "./chunk-7NZUDX62.js";
8
+ } from "./chunk-GU2CB5CS.js";
9
9
  import {
10
10
  getTsConfigPath
11
- } from "./chunk-D3EN5HD2.js";
11
+ } from "./chunk-KRLDLGWN.js";
12
12
  import {
13
13
  banner_plugin_default
14
- } from "./chunk-VMGPCABA.js";
15
- import "./chunk-ZUIV57VZ.js";
14
+ } from "./chunk-ZB5737XE.js";
15
+ import "./chunk-FOMXGINY.js";
16
16
  import {
17
17
  GLOB_ASTRO,
18
18
  GLOB_ASTRO_TS,
@@ -40,22 +40,25 @@ import {
40
40
  GLOB_TSX,
41
41
  GLOB_XML,
42
42
  GLOB_YAML
43
- } from "./chunk-AIKLBIPC.js";
43
+ } from "./chunk-IQ2DH5EI.js";
44
44
  import {
45
45
  findWorkspaceRoot
46
- } from "./chunk-7JRBTALJ.js";
46
+ } from "./chunk-2UBOKUSL.js";
47
47
  import {
48
48
  joinPaths
49
- } from "./chunk-G7QVU75O.js";
49
+ } from "./chunk-2QUIVW4L.js";
50
50
  import {
51
- __name
52
- } from "./chunk-SHUYVCID.js";
51
+ __name,
52
+ init_esm_shims
53
+ } from "./chunk-LCTBQU5F.js";
53
54
 
54
55
  // src/preset.ts
56
+ init_esm_shims();
55
57
  import { FlatConfigComposer } from "eslint-flat-config-utils";
56
58
  import { isPackageExists as isPackageExists2 } from "local-pkg";
57
59
 
58
60
  // src/configs/astro.ts
61
+ init_esm_shims();
59
62
  async function astro(options = {}) {
60
63
  const { files = [
61
64
  GLOB_ASTRO
@@ -113,6 +116,7 @@ async function astro(options = {}) {
113
116
  __name(astro, "astro");
114
117
 
115
118
  // src/configs/cspell.ts
119
+ init_esm_shims();
116
120
  import cspellConfig from "@cspell/eslint-plugin/recommended";
117
121
  async function cspell(options = {}) {
118
122
  const { configFile = "./.vscode/cspell.json", overrides = {} } = options;
@@ -139,6 +143,7 @@ async function cspell(options = {}) {
139
143
  __name(cspell, "cspell");
140
144
 
141
145
  // src/configs/disables.ts
146
+ init_esm_shims();
142
147
  async function disables() {
143
148
  return [
144
149
  {
@@ -199,9 +204,11 @@ async function disables() {
199
204
  __name(disables, "disables");
200
205
 
201
206
  // src/configs/formatters.ts
207
+ init_esm_shims();
202
208
  import defu from "defu";
203
209
 
204
210
  // src/configs/stylistic.ts
211
+ init_esm_shims();
205
212
  var StylisticConfigDefaults = {
206
213
  indent: 2,
207
214
  jsx: true,
@@ -565,6 +572,7 @@ async function formatters(options = {}, stylistic2 = {}) {
565
572
  __name(formatters, "formatters");
566
573
 
567
574
  // src/configs/graphql.ts
575
+ init_esm_shims();
568
576
  async function graphql(options = {}) {
569
577
  const { relay = true, operations = true, schema = true, overrides = {} } = options;
570
578
  await ensurePackages([
@@ -790,6 +798,7 @@ async function graphql(options = {}) {
790
798
  __name(graphql, "graphql");
791
799
 
792
800
  // src/configs/ignores.ts
801
+ init_esm_shims();
793
802
  async function ignores(userIgnores = []) {
794
803
  return [
795
804
  {
@@ -803,7 +812,11 @@ async function ignores(userIgnores = []) {
803
812
  }
804
813
  __name(ignores, "ignores");
805
814
 
815
+ // src/configs/imports.ts
816
+ init_esm_shims();
817
+
806
818
  // src/plugins.ts
819
+ init_esm_shims();
807
820
  import { default as default2 } from "@cspell/eslint-plugin";
808
821
  import { default as default3 } from "@nx/eslint-plugin/nx.js";
809
822
  import * as pluginImport from "eslint-plugin-import-x";
@@ -849,6 +862,7 @@ async function imports(options = {}) {
849
862
  __name(imports, "imports");
850
863
 
851
864
  // src/configs/javascript.ts
865
+ init_esm_shims();
852
866
  import defu2 from "defu";
853
867
  import globalsLib from "globals";
854
868
  async function javascript(options = {}) {
@@ -2017,6 +2031,7 @@ async function javascript(options = {}) {
2017
2031
  __name(javascript, "javascript");
2018
2032
 
2019
2033
  // src/configs/jsdoc.ts
2034
+ init_esm_shims();
2020
2035
  async function jsdoc(options = {}) {
2021
2036
  const { stylistic: stylistic2 = true } = options;
2022
2037
  return [
@@ -2052,6 +2067,7 @@ async function jsdoc(options = {}) {
2052
2067
  __name(jsdoc, "jsdoc");
2053
2068
 
2054
2069
  // src/configs/jsonc.ts
2070
+ init_esm_shims();
2055
2071
  async function jsonc(options = {}) {
2056
2072
  const { files = [
2057
2073
  GLOB_JSON,
@@ -2155,6 +2171,7 @@ async function jsonc(options = {}) {
2155
2171
  __name(jsonc, "jsonc");
2156
2172
 
2157
2173
  // src/configs/jsx.ts
2174
+ init_esm_shims();
2158
2175
  async function jsx() {
2159
2176
  await ensurePackages([
2160
2177
  "eslint-plugin-jsx-a11y"
@@ -2373,6 +2390,7 @@ async function jsx() {
2373
2390
  __name(jsx, "jsx");
2374
2391
 
2375
2392
  // src/configs/markdown.ts
2393
+ init_esm_shims();
2376
2394
  import { mergeProcessors, processorPassThrough } from "eslint-merge-processors";
2377
2395
  async function markdown(options = {}) {
2378
2396
  const { componentExts = [], files = [
@@ -2454,6 +2472,7 @@ async function markdown(options = {}) {
2454
2472
  __name(markdown, "markdown");
2455
2473
 
2456
2474
  // src/configs/mdx.ts
2475
+ init_esm_shims();
2457
2476
  async function mdx(options = {}) {
2458
2477
  const { files = [
2459
2478
  GLOB_MDX
@@ -2486,6 +2505,7 @@ async function mdx(options = {}) {
2486
2505
  __name(mdx, "mdx");
2487
2506
 
2488
2507
  // src/configs/next.ts
2508
+ init_esm_shims();
2489
2509
  async function next(options = {}) {
2490
2510
  const { coreWebVitals = true, rootDir } = options;
2491
2511
  await ensurePackages([
@@ -2539,6 +2559,7 @@ async function next(options = {}) {
2539
2559
  __name(next, "next");
2540
2560
 
2541
2561
  // src/configs/node.ts
2562
+ init_esm_shims();
2542
2563
  async function node() {
2543
2564
  return [
2544
2565
  {
@@ -2571,6 +2592,7 @@ async function node() {
2571
2592
  __name(node, "node");
2572
2593
 
2573
2594
  // src/configs/nx.ts
2595
+ init_esm_shims();
2574
2596
  import defu3 from "defu";
2575
2597
  async function nx(options = {}) {
2576
2598
  const { depsCheck = false, depsCheckSeverity = "error", moduleBoundaries, ignoredDependencies = [], ignoredFiles = [], checkObsoleteDependencies = true } = options;
@@ -2650,6 +2672,7 @@ async function nx(options = {}) {
2650
2672
  __name(nx, "nx");
2651
2673
 
2652
2674
  // src/configs/perfectionist.ts
2675
+ init_esm_shims();
2653
2676
  async function perfectionist() {
2654
2677
  return [
2655
2678
  {
@@ -2704,12 +2727,13 @@ async function perfectionist() {
2704
2727
  __name(perfectionist, "perfectionist");
2705
2728
 
2706
2729
  // src/configs/pnpm.ts
2730
+ init_esm_shims();
2707
2731
  async function pnpm(options = {}) {
2708
- const { overrides = {}, skip = [
2732
+ const { overrides = {}, skipPackages = [
2709
2733
  "typescript"
2710
2734
  ] } = options;
2711
2735
  const [pluginPnpm, parserJsonc] = await Promise.all([
2712
- interopDefault(import("eslint-plugin-pnpm")),
2736
+ interopDefault(import("./dist-FNZDFMLA.js")),
2713
2737
  interopDefault(import("jsonc-eslint-parser"))
2714
2738
  ]);
2715
2739
  return [
@@ -2733,7 +2757,7 @@ async function pnpm(options = {}) {
2733
2757
  "pnpm/enforce-catalog": [
2734
2758
  "error",
2735
2759
  {
2736
- skip
2760
+ skipPackages
2737
2761
  }
2738
2762
  ],
2739
2763
  "pnpm/valid-catalog": "error",
@@ -2746,6 +2770,7 @@ async function pnpm(options = {}) {
2746
2770
  __name(pnpm, "pnpm");
2747
2771
 
2748
2772
  // src/configs/prettier.ts
2773
+ init_esm_shims();
2749
2774
  import config from "eslint-config-prettier";
2750
2775
  async function prettier() {
2751
2776
  return [
@@ -2768,6 +2793,7 @@ async function prettier() {
2768
2793
  __name(prettier, "prettier");
2769
2794
 
2770
2795
  // src/configs/react.ts
2796
+ init_esm_shims();
2771
2797
  import { isPackageExists } from "local-pkg";
2772
2798
  var ReactRefreshAllowConstantExportPackages = [
2773
2799
  "vite"
@@ -2950,6 +2976,7 @@ async function react(options = {}) {
2950
2976
  __name(react, "react");
2951
2977
 
2952
2978
  // src/configs/react-native.ts
2979
+ init_esm_shims();
2953
2980
  async function reactNative(options = {}) {
2954
2981
  const { overrides = {} } = options;
2955
2982
  await ensurePackages([
@@ -2975,6 +3002,7 @@ async function reactNative(options = {}) {
2975
3002
  __name(reactNative, "reactNative");
2976
3003
 
2977
3004
  // src/configs/regexp.ts
3005
+ init_esm_shims();
2978
3006
  import { configs } from "eslint-plugin-regexp";
2979
3007
  async function regexp(options = {}) {
2980
3008
  const config2 = configs["flat/recommended"];
@@ -3007,6 +3035,7 @@ async function regexp(options = {}) {
3007
3035
  __name(regexp, "regexp");
3008
3036
 
3009
3037
  // src/configs/secrets.ts
3038
+ init_esm_shims();
3010
3039
  async function secrets(options) {
3011
3040
  const { json = true } = options;
3012
3041
  if (json) {
@@ -3039,6 +3068,7 @@ async function secrets(options) {
3039
3068
  __name(secrets, "secrets");
3040
3069
 
3041
3070
  // src/configs/sort.ts
3071
+ init_esm_shims();
3042
3072
  async function sortPackageJson() {
3043
3073
  return [
3044
3074
  {
@@ -3282,6 +3312,7 @@ function sortTsconfig() {
3282
3312
  __name(sortTsconfig, "sortTsconfig");
3283
3313
 
3284
3314
  // src/configs/storybook.ts
3315
+ init_esm_shims();
3285
3316
  async function storybook(options = {}) {
3286
3317
  const { csf = "loose" } = options;
3287
3318
  await ensurePackages([
@@ -3344,6 +3375,7 @@ async function storybook(options = {}) {
3344
3375
  __name(storybook, "storybook");
3345
3376
 
3346
3377
  // src/configs/test.ts
3378
+ init_esm_shims();
3347
3379
  var _pluginTest;
3348
3380
  async function test(options = {}) {
3349
3381
  const { files = GLOB_TESTS, isInEditor = false, overrides = {} } = options;
@@ -3397,6 +3429,7 @@ async function test(options = {}) {
3397
3429
  __name(test, "test");
3398
3430
 
3399
3431
  // src/configs/toml.ts
3432
+ init_esm_shims();
3400
3433
  async function toml(options = {}) {
3401
3434
  const { files = [
3402
3435
  GLOB_TOML
@@ -3453,6 +3486,7 @@ async function toml(options = {}) {
3453
3486
  __name(toml, "toml");
3454
3487
 
3455
3488
  // src/configs/typescript.ts
3489
+ init_esm_shims();
3456
3490
  async function typescript(options = {}) {
3457
3491
  const { componentExts = [], overrides = {}, overridesTypeAware = {}, parserOptions = {}, tsdoc = "warn", type = "app" } = options;
3458
3492
  const files = options.files ?? [
@@ -3726,6 +3760,7 @@ async function typescript(options = {}) {
3726
3760
  __name(typescript, "typescript");
3727
3761
 
3728
3762
  // src/configs/unicorn.ts
3763
+ init_esm_shims();
3729
3764
  async function unicorn(options = {}) {
3730
3765
  return [
3731
3766
  {
@@ -3777,6 +3812,7 @@ async function unicorn(options = {}) {
3777
3812
  __name(unicorn, "unicorn");
3778
3813
 
3779
3814
  // src/configs/unocss.ts
3815
+ init_esm_shims();
3780
3816
  async function unocss(options = {}) {
3781
3817
  const { attributify = true, strict = false } = options;
3782
3818
  await ensurePackages([
@@ -3806,6 +3842,7 @@ async function unocss(options = {}) {
3806
3842
  __name(unocss, "unocss");
3807
3843
 
3808
3844
  // src/configs/yaml.ts
3845
+ init_esm_shims();
3809
3846
  async function yaml(options = {}) {
3810
3847
  const { files = [
3811
3848
  GLOB_YAML
@@ -4019,7 +4056,8 @@ function getStormConfig(options, ...userConfigs) {
4019
4056
  }
4020
4057
  if (options.pnpm ?? true) {
4021
4058
  configs2.push(pnpm({
4022
- overrides: getOverrides(options, "pnpm")
4059
+ overrides: getOverrides(options, "pnpm"),
4060
+ skipPackages: typeof options.pnpm !== "boolean" ? options.pnpm?.skipPackages : void 0
4023
4061
  }));
4024
4062
  }
4025
4063
  if (options.jsonc ?? true) {
package/dist/types.d.ts CHANGED
@@ -12718,7 +12718,7 @@ type PnpmEnforceCatalog = []|[{
12718
12718
 
12719
12719
  reuseExistingCatalog?: boolean
12720
12720
 
12721
- skip?: string[]
12721
+ skipPackages?: string[]
12722
12722
  }]
12723
12723
  // ----- pnpm/prefer-workspace-settings -----
12724
12724
  type PnpmPreferWorkspaceSettings = []|[{
@@ -16816,7 +16816,7 @@ interface OptionsPnpm extends OptionsOverrides {
16816
16816
  *
16817
16817
  * @defaultValue ["typescript"]
16818
16818
  */
16819
- skip?: string[];
16819
+ skipPackages?: string[];
16820
16820
  }
16821
16821
  interface OptionsCSpell extends OptionsOverrides {
16822
16822
  /**
package/dist/types.js CHANGED
@@ -0,0 +1,6 @@
1
+ import {
2
+ init_esm_shims
3
+ } from "./chunk-LCTBQU5F.js";
4
+
5
+ // src/types.ts
6
+ init_esm_shims();
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  banner_plugin_default
3
- } from "../chunk-VMGPCABA.js";
4
- import "../chunk-ZUIV57VZ.js";
5
- import "../chunk-AIKLBIPC.js";
6
- import "../chunk-SHUYVCID.js";
3
+ } from "../chunk-ZB5737XE.js";
4
+ import "../chunk-FOMXGINY.js";
5
+ import "../chunk-IQ2DH5EI.js";
6
+ import "../chunk-LCTBQU5F.js";
7
7
  export {
8
8
  banner_plugin_default as default
9
9
  };
@@ -1,8 +1,10 @@
1
1
  import {
2
- __name
3
- } from "../chunk-SHUYVCID.js";
2
+ __name,
3
+ init_esm_shims
4
+ } from "../chunk-LCTBQU5F.js";
4
5
 
5
6
  // src/utils/combine.ts
7
+ init_esm_shims();
6
8
  async function combine(...configs) {
7
9
  const resolved = await Promise.all(configs);
8
10
  return resolved.flat();
@@ -33,8 +33,8 @@ import {
33
33
  GLOB_VUE,
34
34
  GLOB_XML,
35
35
  GLOB_YAML
36
- } from "../chunk-AIKLBIPC.js";
37
- import "../chunk-SHUYVCID.js";
36
+ } from "../chunk-IQ2DH5EI.js";
37
+ import "../chunk-LCTBQU5F.js";
38
38
  export {
39
39
  ACRONYMS_LIST,
40
40
  GLOB_ALL_SRC,
@@ -13,8 +13,8 @@ import {
13
13
  resolve,
14
14
  sep,
15
15
  toNamespacedPath
16
- } from "../chunk-G7QVU75O.js";
17
- import "../chunk-SHUYVCID.js";
16
+ } from "../chunk-2QUIVW4L.js";
17
+ import "../chunk-LCTBQU5F.js";
18
18
  export {
19
19
  basename,
20
20
  correctPaths,
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  findWorkspaceRoot,
3
3
  findWorkspaceRootSafe
4
- } from "../chunk-7JRBTALJ.js";
5
- import "../chunk-G7QVU75O.js";
6
- import "../chunk-SHUYVCID.js";
4
+ } from "../chunk-2UBOKUSL.js";
5
+ import "../chunk-2QUIVW4L.js";
6
+ import "../chunk-LCTBQU5F.js";
7
7
  export {
8
8
  findWorkspaceRoot,
9
9
  findWorkspaceRootSafe
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  formatConfig
3
- } from "../chunk-FTXILLLE.js";
4
- import "../chunk-SHUYVCID.js";
3
+ } from "../chunk-E4STJ37Q.js";
4
+ import "../chunk-LCTBQU5F.js";
5
5
  export {
6
6
  formatConfig
7
7
  };
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  getFileBanner
3
- } from "../chunk-ZUIV57VZ.js";
4
- import "../chunk-AIKLBIPC.js";
5
- import "../chunk-SHUYVCID.js";
3
+ } from "../chunk-FOMXGINY.js";
4
+ import "../chunk-IQ2DH5EI.js";
5
+ import "../chunk-LCTBQU5F.js";
6
6
  export {
7
7
  getFileBanner
8
8
  };
@@ -6,8 +6,8 @@ import {
6
6
  isPackageInScope,
7
7
  parserPlain,
8
8
  renameRules
9
- } from "../chunk-7NZUDX62.js";
10
- import "../chunk-SHUYVCID.js";
9
+ } from "../chunk-GU2CB5CS.js";
10
+ import "../chunk-LCTBQU5F.js";
11
11
  export {
12
12
  ensurePackages,
13
13
  interopDefault,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  DEFAULT_IGNORES
3
- } from "../chunk-NXBMVNV2.js";
4
- import "../chunk-SHUYVCID.js";
3
+ } from "../chunk-NP3EAMSY.js";
4
+ import "../chunk-LCTBQU5F.js";
5
5
  export {
6
6
  DEFAULT_IGNORES
7
7
  };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  DEFAULT_IGNORES
3
- } from "../chunk-NXBMVNV2.js";
3
+ } from "../chunk-NP3EAMSY.js";
4
4
  import {
5
5
  ACRONYMS_LIST,
6
6
  GLOB_ALL_SRC,
@@ -36,11 +36,16 @@ import {
36
36
  GLOB_VUE,
37
37
  GLOB_XML,
38
38
  GLOB_YAML
39
- } from "../chunk-AIKLBIPC.js";
39
+ } from "../chunk-IQ2DH5EI.js";
40
40
  import {
41
41
  formatConfig
42
- } from "../chunk-FTXILLLE.js";
43
- import "../chunk-SHUYVCID.js";
42
+ } from "../chunk-E4STJ37Q.js";
43
+ import {
44
+ init_esm_shims
45
+ } from "../chunk-LCTBQU5F.js";
46
+
47
+ // src/utils/index.ts
48
+ init_esm_shims();
44
49
  export {
45
50
  ACRONYMS_LIST,
46
51
  DEFAULT_IGNORES,
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  getTsConfigPath
3
- } from "../chunk-D3EN5HD2.js";
4
- import "../chunk-G7QVU75O.js";
5
- import "../chunk-SHUYVCID.js";
3
+ } from "../chunk-KRLDLGWN.js";
4
+ import "../chunk-2QUIVW4L.js";
5
+ import "../chunk-LCTBQU5F.js";
6
6
  export {
7
7
  getTsConfigPath
8
8
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/eslint",
3
- "version": "0.142.0",
3
+ "version": "0.143.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": {
@@ -170,7 +170,7 @@
170
170
  "chalk": "^5.4.1",
171
171
  "defu": "6.1.4",
172
172
  "eslint-config-flat-gitignore": "^2.1.0",
173
- "eslint-config-prettier": "10.0.1",
173
+ "eslint-config-prettier": "^10.0.1",
174
174
  "eslint-flat-config-utils": "^2.0.1",
175
175
  "eslint-merge-processors": "^2.0.0",
176
176
  "eslint-plugin-import-x": "^4.6.1",
@@ -186,7 +186,7 @@
186
186
  "eslint-plugin-no-secrets": "^2.2.1",
187
187
  "eslint-plugin-paths": "^1.1.0",
188
188
  "eslint-plugin-perfectionist": "^4.9.0",
189
- "eslint-plugin-pnpm": "^0.1.2",
189
+ "eslint-plugin-pnpm": "0.1.2",
190
190
  "eslint-plugin-prettier": "^5.2.3",
191
191
  "eslint-plugin-regexp": "^2.7.0",
192
192
  "eslint-plugin-toml": "^0.12.0",
@@ -1,6 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
-
4
- export {
5
- __name
6
- };