@storm-software/eslint 0.170.56 → 0.170.58

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
@@ -27,7 +27,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
27
27
 
28
28
  <h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
29
29
 
30
- [![Version](https://img.shields.io/badge/version-0.170.53-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)
30
+ [![Version](https://img.shields.io/badge/version-0.170.55-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)
31
31
 
32
32
  <!-- prettier-ignore-start -->
33
33
  <!-- markdownlint-disable -->
@@ -1,4 +1,4 @@
1
- import { ACRONYMS_LIST } from './chunk-QQBZQ6FI.js';
1
+ import { ACRONYMS_LIST } from './chunk-ZWL5DCHO.js';
2
2
  import { init_esm_shims } from './chunk-H2OHWXFL.js';
3
3
 
4
4
  // src/utils/get-file-banner.ts
@@ -1,5 +1,5 @@
1
- import { getFileBanner } from './chunk-TBHRJJNJ.js';
2
- import { GLOB_SRC } from './chunk-QQBZQ6FI.js';
1
+ import { getFileBanner } from './chunk-NF4GLJDM.js';
2
+ import { GLOB_SRC } from './chunk-ZWL5DCHO.js';
3
3
  import { init_esm_shims } from './chunk-H2OHWXFL.js';
4
4
  import { ESLintUtils } from '@typescript-eslint/utils';
5
5
  import os from 'node:os';
@@ -180,12 +180,11 @@ var GLOB_EXCLUDE = [
180
180
  "**/next-env.d.ts",
181
181
  "**/CODEOWNERS",
182
182
  "**/yarn.lock",
183
- "**/jest.config.js",
184
- "**/jest.setup.js",
185
- "**/jest.config.ts",
186
- "**/jest.setup.ts",
187
- "**/jest.config.json",
188
- "**/jest.setup.json",
183
+ "**/jest.preset.{js,ts,cjs,cts,mjs,mts,json}",
184
+ "**/vitest.preset.{js,ts,cjs,cts,mjs,mts,json}",
185
+ "**/jest.config.{js,ts,cjs,cts,mjs,mts,json}",
186
+ "**/vitest.config.{js,ts,cjs,cts,mjs,mts,json}",
187
+ "**/vitest.workspace.{js,ts,cjs,cts,mjs,mts,json}",
189
188
  "**/*.spec.{ts,tsx}",
190
189
  "**/*.test.{ts,tsx}",
191
190
  "**/output",
package/dist/preset.cjs CHANGED
@@ -12,20 +12,22 @@ var path = require('path');
12
12
  var defu = require('defu');
13
13
  require('@cspell/eslint-plugin');
14
14
  var default3 = require('@nx/eslint-plugin/nx.js');
15
+ var default4 = require('@vitest/eslint-plugin');
15
16
  var pluginImport = require('eslint-plugin-import-x');
16
- var default4 = require('eslint-plugin-import-zod');
17
- var default5 = require('eslint-plugin-n');
18
- var default6 = require('eslint-plugin-no-secrets');
19
- var default7 = require('eslint-plugin-perfectionist');
17
+ var default5 = require('eslint-plugin-import-zod');
18
+ var default6 = require('eslint-plugin-n');
19
+ var default7 = require('eslint-plugin-no-only-tests');
20
+ var default8 = require('eslint-plugin-no-secrets');
21
+ var default9 = require('eslint-plugin-perfectionist');
20
22
  var jsoncParser = require('jsonc-eslint-parser');
21
23
  var yamlParser = require('yaml-eslint-parser');
22
24
  var findUpSimple = require('find-up-simple');
23
25
  var pnpmWorkspaceYaml = require('pnpm-workspace-yaml');
24
26
  var pathe = require('pathe');
25
27
  var tinyglobby = require('tinyglobby');
26
- var default8 = require('eslint-plugin-prettier');
27
- var default9 = require('eslint-plugin-unicorn');
28
- var default10 = require('eslint-plugin-unused-imports');
28
+ var default10 = require('eslint-plugin-prettier');
29
+ var default11 = require('eslint-plugin-unicorn');
30
+ var default12 = require('eslint-plugin-unused-imports');
29
31
  var c12 = require('c12');
30
32
  var chalk = require('chalk');
31
33
  var promises = require('fs/promises');
@@ -62,16 +64,18 @@ var cspellConfig__default = /*#__PURE__*/_interopDefault(cspellConfig);
62
64
  var fs__default = /*#__PURE__*/_interopDefault(fs);
63
65
  var defu__default = /*#__PURE__*/_interopDefault(defu);
64
66
  var default3__default = /*#__PURE__*/_interopDefault(default3);
65
- var pluginImport__namespace = /*#__PURE__*/_interopNamespace(pluginImport);
66
67
  var default4__default = /*#__PURE__*/_interopDefault(default4);
68
+ var pluginImport__namespace = /*#__PURE__*/_interopNamespace(pluginImport);
67
69
  var default5__default = /*#__PURE__*/_interopDefault(default5);
68
70
  var default6__default = /*#__PURE__*/_interopDefault(default6);
69
71
  var default7__default = /*#__PURE__*/_interopDefault(default7);
70
- var jsoncParser__namespace = /*#__PURE__*/_interopNamespace(jsoncParser);
71
- var yamlParser__namespace = /*#__PURE__*/_interopNamespace(yamlParser);
72
72
  var default8__default = /*#__PURE__*/_interopDefault(default8);
73
73
  var default9__default = /*#__PURE__*/_interopDefault(default9);
74
+ var jsoncParser__namespace = /*#__PURE__*/_interopNamespace(jsoncParser);
75
+ var yamlParser__namespace = /*#__PURE__*/_interopNamespace(yamlParser);
74
76
  var default10__default = /*#__PURE__*/_interopDefault(default10);
77
+ var default11__default = /*#__PURE__*/_interopDefault(default11);
78
+ var default12__default = /*#__PURE__*/_interopDefault(default12);
75
79
  var chalk__default = /*#__PURE__*/_interopDefault(chalk);
76
80
  var globalsLib__default = /*#__PURE__*/_interopDefault(globalsLib);
77
81
  var os__default = /*#__PURE__*/_interopDefault(os);
@@ -482,7 +486,7 @@ var require_lib = __commonJS({
482
486
  defaultTSDocConfiguration.allTsdocMessageIds.forEach((messageId) => {
483
487
  tsdocMessageIds[messageId] = `${messageId}: {{unformattedText}}`;
484
488
  });
485
- var plugin3 = {
489
+ var plugin4 = {
486
490
  rules: {
487
491
  // NOTE: The actual ESLint rule name will be "tsdoc/syntax". It is calculated by deleting "eslint-plugin-"
488
492
  // from the NPM package name, and then appending this string.
@@ -643,7 +647,7 @@ Please ensure "@storm-software/tsdoc" is installed in the workspace root.`,
643
647
  }
644
648
  }
645
649
  };
646
- module.exports = plugin3;
650
+ module.exports = plugin4;
647
651
  }
648
652
  });
649
653
 
@@ -805,12 +809,11 @@ var GLOB_EXCLUDE = [
805
809
  "**/next-env.d.ts",
806
810
  "**/CODEOWNERS",
807
811
  "**/yarn.lock",
808
- "**/jest.config.js",
809
- "**/jest.setup.js",
810
- "**/jest.config.ts",
811
- "**/jest.setup.ts",
812
- "**/jest.config.json",
813
- "**/jest.setup.json",
812
+ "**/jest.preset.{js,ts,cjs,cts,mjs,mts,json}",
813
+ "**/vitest.preset.{js,ts,cjs,cts,mjs,mts,json}",
814
+ "**/jest.config.{js,ts,cjs,cts,mjs,mts,json}",
815
+ "**/vitest.config.{js,ts,cjs,cts,mjs,mts,json}",
816
+ "**/vitest.workspace.{js,ts,cjs,cts,mjs,mts,json}",
814
817
  "**/*.spec.{ts,tsx}",
815
818
  "**/*.test.{ts,tsx}",
816
819
  "**/output",
@@ -6451,7 +6454,7 @@ async function javascript(options = {}) {
6451
6454
  {
6452
6455
  name: "storm/javascript/rules",
6453
6456
  plugins: {
6454
- "unused-imports": default10__default.default
6457
+ "unused-imports": default12__default.default
6455
6458
  },
6456
6459
  rules: {
6457
6460
  // disallow use of console
@@ -7759,7 +7762,7 @@ async function node() {
7759
7762
  {
7760
7763
  name: "storm/node/rules",
7761
7764
  plugins: {
7762
- node: default5__default.default
7765
+ node: default6__default.default
7763
7766
  },
7764
7767
  rules: {
7765
7768
  "node/handle-callback-err": ["error", "^(err|error)$"],
@@ -7849,7 +7852,7 @@ async function perfectionist() {
7849
7852
  {
7850
7853
  name: "storm/perfectionist/rules",
7851
7854
  plugins: {
7852
- perfectionist: default7__default.default
7855
+ perfectionist: default9__default.default
7853
7856
  },
7854
7857
  rules: {
7855
7858
  "perfectionist/sort-exports": [
@@ -7999,7 +8002,7 @@ async function prettier() {
7999
8002
  {
8000
8003
  name: "storm/prettier",
8001
8004
  plugins: {
8002
- prettier: default8__default.default
8005
+ prettier: default10__default.default
8003
8006
  },
8004
8007
  rules: {
8005
8008
  "prettier/prettier": "error",
@@ -8249,7 +8252,7 @@ async function secrets(options) {
8249
8252
  name: "storm/secrets/rules",
8250
8253
  files: [`**/*.{js,ts,jsx,tsx${json ? ",json,jsonc" : ""}`],
8251
8254
  plugins: {
8252
- "no-secrets": default6__default.default
8255
+ "no-secrets": default8__default.default
8253
8256
  },
8254
8257
  rules: {
8255
8258
  "no-secrets/no-secrets": [
@@ -8545,33 +8548,35 @@ async function storybook(options = {}) {
8545
8548
 
8546
8549
  // src/configs/test.ts
8547
8550
  init_cjs_shims();
8548
- var _pluginTest;
8551
+ var plugin3;
8549
8552
  async function test(options = {}) {
8550
8553
  const { files = GLOB_TESTS, isInEditor = false, overrides = {} } = options;
8551
- const [pluginVitest, pluginNoOnlyTests] = await Promise.all([
8552
- interopDefault(import('@vitest/eslint-plugin')),
8553
- // @ts-expect-error missing types
8554
- interopDefault(import('eslint-plugin-no-only-tests'))
8555
- ]);
8556
- _pluginTest = _pluginTest || {
8557
- ...pluginVitest,
8554
+ plugin3 = plugin3 || {
8555
+ ...default4__default.default,
8558
8556
  rules: {
8559
- ...pluginVitest.rules,
8557
+ ...default4__default.default.rules,
8560
8558
  // extend `test/no-only-tests` rule
8561
- ...pluginNoOnlyTests.rules
8559
+ ...default7__default.default.rules
8562
8560
  }
8563
8561
  };
8564
8562
  return [
8565
8563
  {
8566
8564
  name: "storm/test/setup",
8567
8565
  plugins: {
8568
- test: _pluginTest
8566
+ test: plugin3
8569
8567
  }
8570
8568
  },
8571
8569
  {
8572
8570
  files,
8573
8571
  name: "storm/test/rules",
8574
8572
  rules: {
8573
+ ...Object.entries(default4__default.default.configs.recommended.rules).reduce(
8574
+ (acc, [key, value]) => {
8575
+ acc[key.replace("vitest/", "test/")] = value;
8576
+ return acc;
8577
+ },
8578
+ {}
8579
+ ),
8575
8580
  "test/consistent-test-it": [
8576
8581
  "error",
8577
8582
  { fn: "it", withinDescribe: "it" }
@@ -8582,11 +8587,9 @@ async function test(options = {}) {
8582
8587
  "test/prefer-hooks-in-order": "error",
8583
8588
  "test/prefer-lowercase-title": "error",
8584
8589
  // Disables
8585
- ...{
8586
- "no-unused-expressions": "off",
8587
- "node/prefer-global/process": "off",
8588
- "ts/explicit-function-return-type": "off"
8589
- },
8590
+ "no-unused-expressions": "off",
8591
+ "node/prefer-global/process": "off",
8592
+ "ts/explicit-function-return-type": "off",
8590
8593
  ...overrides
8591
8594
  }
8592
8595
  }
@@ -8988,10 +8991,10 @@ async function unicorn(options = {}) {
8988
8991
  {
8989
8992
  name: "storm/unicorn/rules",
8990
8993
  plugins: {
8991
- unicorn: default9__default.default
8994
+ unicorn: default11__default.default
8992
8995
  },
8993
8996
  rules: {
8994
- ...options.allRecommended ? default9__default.default.configs["recommended"].rules : {
8997
+ ...options.allRecommended ? default11__default.default.configs["recommended"].rules : {
8995
8998
  "unicorn/consistent-empty-array-spread": "error",
8996
8999
  "unicorn/error-message": "error",
8997
9000
  "unicorn/escape-case": "error",
@@ -9128,7 +9131,7 @@ async function zod(options = {}) {
9128
9131
  name: "storm/zod/rules",
9129
9132
  files: [GLOB_SRC],
9130
9133
  plugins: {
9131
- "import-zod": default4__default.default
9134
+ "import-zod": default5__default.default
9132
9135
  },
9133
9136
  rules: {
9134
9137
  "import-zod/prefer-zod-namespace": "error"
@@ -9187,6 +9190,7 @@ function getStormConfig(options, ...userConfigs) {
9187
9190
  typescript: enableTypeScript = localPkg.isPackageExists("typescript"),
9188
9191
  unicorn: enableUnicorn = true,
9189
9192
  tsdoc: enableTSDoc = true,
9193
+ test: enableTest = true,
9190
9194
  unocss: enableUnoCSS = false,
9191
9195
  zod: enableZod = true
9192
9196
  } = options;
@@ -9293,7 +9297,7 @@ function getStormConfig(options, ...userConfigs) {
9293
9297
  if (enableRegexp) {
9294
9298
  configs3.push(regexp(typeof enableRegexp === "boolean" ? {} : enableRegexp));
9295
9299
  }
9296
- if (options.test ?? true) {
9300
+ if (enableTest) {
9297
9301
  configs3.push(
9298
9302
  test({
9299
9303
  isInEditor,
package/dist/preset.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { isInEditorEnv, interopDefault, ensurePackages, renameRules, parserPlain, isPackageInScope } from './chunk-4ZPL5FXI.js';
2
2
  import { getTsConfigPath } from './chunk-RPALAP3R.js';
3
- import { banner_plugin_default } from './chunk-6T25DCUR.js';
4
- import { getFileBanner } from './chunk-TBHRJJNJ.js';
5
- import { GLOB_EXCLUDE, GLOB_TS, GLOB_TSX, GLOB_JSX, GLOB_MARKDOWN, GLOB_ASTRO_TS, GLOB_SRC, GLOB_TESTS, GLOB_ASTRO, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_YAML, GLOB_TOML, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_MDX, GLOB_CSS, GLOB_POSTCSS, GLOB_SCSS, GLOB_LESS, GLOB_HTML, GLOB_XML, GLOB_SVG, GLOB_GRAPHQL, GLOB_SRC_EXT, GLOB_SRC_FILE } from './chunk-QQBZQ6FI.js';
3
+ import { banner_plugin_default } from './chunk-QGAM5CKD.js';
4
+ import { getFileBanner } from './chunk-NF4GLJDM.js';
5
+ import { GLOB_EXCLUDE, GLOB_TS, GLOB_TSX, GLOB_JSX, GLOB_MARKDOWN, GLOB_ASTRO_TS, GLOB_SRC, GLOB_TESTS, GLOB_ASTRO, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_YAML, GLOB_TOML, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_MDX, GLOB_CSS, GLOB_POSTCSS, GLOB_SCSS, GLOB_LESS, GLOB_HTML, GLOB_XML, GLOB_SVG, GLOB_GRAPHQL, GLOB_SRC_EXT, GLOB_SRC_FILE } from './chunk-ZWL5DCHO.js';
6
6
  import { findWorkspaceRoot } from './chunk-BSVVS7SV.js';
7
7
  import { joinPaths } from './chunk-VIFGWE6I.js';
8
8
  import { __commonJS, init_esm_shims, __toESM } from './chunk-H2OHWXFL.js';
@@ -16,11 +16,13 @@ import cspellConfig from '@cspell/eslint-plugin/recommended';
16
16
  import defu from 'defu';
17
17
  import '@cspell/eslint-plugin';
18
18
  import default3 from '@nx/eslint-plugin/nx.js';
19
+ import default4 from '@vitest/eslint-plugin';
19
20
  import * as pluginImport from 'eslint-plugin-import-x';
20
- import default4 from 'eslint-plugin-import-zod';
21
- import default5 from 'eslint-plugin-n';
22
- import default6 from 'eslint-plugin-no-secrets';
23
- import default7 from 'eslint-plugin-perfectionist';
21
+ import default5 from 'eslint-plugin-import-zod';
22
+ import default6 from 'eslint-plugin-n';
23
+ import default7 from 'eslint-plugin-no-only-tests';
24
+ import default8 from 'eslint-plugin-no-secrets';
25
+ import default9 from 'eslint-plugin-perfectionist';
24
26
  import * as jsoncParser from 'jsonc-eslint-parser';
25
27
  import * as yamlParser from 'yaml-eslint-parser';
26
28
  import fs, { existsSync, readFileSync } from 'node:fs';
@@ -29,9 +31,9 @@ import { findUpSync } from 'find-up-simple';
29
31
  import { parsePnpmWorkspaceYaml } from 'pnpm-workspace-yaml';
30
32
  import { basename, normalize, resolve, dirname } from 'pathe';
31
33
  import { globSync } from 'tinyglobby';
32
- import default8 from 'eslint-plugin-prettier';
33
- import default9 from 'eslint-plugin-unicorn';
34
- import default10 from 'eslint-plugin-unused-imports';
34
+ import default10 from 'eslint-plugin-prettier';
35
+ import default11 from 'eslint-plugin-unicorn';
36
+ import default12 from 'eslint-plugin-unused-imports';
35
37
  import { loadConfig } from 'c12';
36
38
  import chalk from 'chalk';
37
39
  import { join } from 'node:path';
@@ -402,7 +404,7 @@ var require_lib = __commonJS({
402
404
  defaultTSDocConfiguration.allTsdocMessageIds.forEach((messageId) => {
403
405
  tsdocMessageIds[messageId] = `${messageId}: {{unformattedText}}`;
404
406
  });
405
- var plugin2 = {
407
+ var plugin3 = {
406
408
  rules: {
407
409
  // NOTE: The actual ESLint rule name will be "tsdoc/syntax". It is calculated by deleting "eslint-plugin-"
408
410
  // from the NPM package name, and then appending this string.
@@ -563,7 +565,7 @@ Please ensure "@storm-software/tsdoc" is installed in the workspace root.`,
563
565
  }
564
566
  }
565
567
  };
566
- module.exports = plugin2;
568
+ module.exports = plugin3;
567
569
  }
568
570
  });
569
571
 
@@ -5432,7 +5434,7 @@ async function javascript(options = {}) {
5432
5434
  {
5433
5435
  name: "storm/javascript/rules",
5434
5436
  plugins: {
5435
- "unused-imports": default10
5437
+ "unused-imports": default12
5436
5438
  },
5437
5439
  rules: {
5438
5440
  // disallow use of console
@@ -6740,7 +6742,7 @@ async function node() {
6740
6742
  {
6741
6743
  name: "storm/node/rules",
6742
6744
  plugins: {
6743
- node: default5
6745
+ node: default6
6744
6746
  },
6745
6747
  rules: {
6746
6748
  "node/handle-callback-err": ["error", "^(err|error)$"],
@@ -6830,7 +6832,7 @@ async function perfectionist() {
6830
6832
  {
6831
6833
  name: "storm/perfectionist/rules",
6832
6834
  plugins: {
6833
- perfectionist: default7
6835
+ perfectionist: default9
6834
6836
  },
6835
6837
  rules: {
6836
6838
  "perfectionist/sort-exports": [
@@ -6980,7 +6982,7 @@ async function prettier() {
6980
6982
  {
6981
6983
  name: "storm/prettier",
6982
6984
  plugins: {
6983
- prettier: default8
6985
+ prettier: default10
6984
6986
  },
6985
6987
  rules: {
6986
6988
  "prettier/prettier": "error",
@@ -7230,7 +7232,7 @@ async function secrets(options) {
7230
7232
  name: "storm/secrets/rules",
7231
7233
  files: [`**/*.{js,ts,jsx,tsx${json ? ",json,jsonc" : ""}`],
7232
7234
  plugins: {
7233
- "no-secrets": default6
7235
+ "no-secrets": default8
7234
7236
  },
7235
7237
  rules: {
7236
7238
  "no-secrets/no-secrets": [
@@ -7526,33 +7528,35 @@ async function storybook(options = {}) {
7526
7528
 
7527
7529
  // src/configs/test.ts
7528
7530
  init_esm_shims();
7529
- var _pluginTest;
7531
+ var plugin2;
7530
7532
  async function test(options = {}) {
7531
7533
  const { files = GLOB_TESTS, isInEditor = false, overrides = {} } = options;
7532
- const [pluginVitest, pluginNoOnlyTests] = await Promise.all([
7533
- interopDefault(import('@vitest/eslint-plugin')),
7534
- // @ts-expect-error missing types
7535
- interopDefault(import('eslint-plugin-no-only-tests'))
7536
- ]);
7537
- _pluginTest = _pluginTest || {
7538
- ...pluginVitest,
7534
+ plugin2 = plugin2 || {
7535
+ ...default4,
7539
7536
  rules: {
7540
- ...pluginVitest.rules,
7537
+ ...default4.rules,
7541
7538
  // extend `test/no-only-tests` rule
7542
- ...pluginNoOnlyTests.rules
7539
+ ...default7.rules
7543
7540
  }
7544
7541
  };
7545
7542
  return [
7546
7543
  {
7547
7544
  name: "storm/test/setup",
7548
7545
  plugins: {
7549
- test: _pluginTest
7546
+ test: plugin2
7550
7547
  }
7551
7548
  },
7552
7549
  {
7553
7550
  files,
7554
7551
  name: "storm/test/rules",
7555
7552
  rules: {
7553
+ ...Object.entries(default4.configs.recommended.rules).reduce(
7554
+ (acc, [key, value]) => {
7555
+ acc[key.replace("vitest/", "test/")] = value;
7556
+ return acc;
7557
+ },
7558
+ {}
7559
+ ),
7556
7560
  "test/consistent-test-it": [
7557
7561
  "error",
7558
7562
  { fn: "it", withinDescribe: "it" }
@@ -7563,11 +7567,9 @@ async function test(options = {}) {
7563
7567
  "test/prefer-hooks-in-order": "error",
7564
7568
  "test/prefer-lowercase-title": "error",
7565
7569
  // Disables
7566
- ...{
7567
- "no-unused-expressions": "off",
7568
- "node/prefer-global/process": "off",
7569
- "ts/explicit-function-return-type": "off"
7570
- },
7570
+ "no-unused-expressions": "off",
7571
+ "node/prefer-global/process": "off",
7572
+ "ts/explicit-function-return-type": "off",
7571
7573
  ...overrides
7572
7574
  }
7573
7575
  }
@@ -7930,10 +7932,10 @@ async function unicorn(options = {}) {
7930
7932
  {
7931
7933
  name: "storm/unicorn/rules",
7932
7934
  plugins: {
7933
- unicorn: default9
7935
+ unicorn: default11
7934
7936
  },
7935
7937
  rules: {
7936
- ...options.allRecommended ? default9.configs["recommended"].rules : {
7938
+ ...options.allRecommended ? default11.configs["recommended"].rules : {
7937
7939
  "unicorn/consistent-empty-array-spread": "error",
7938
7940
  "unicorn/error-message": "error",
7939
7941
  "unicorn/escape-case": "error",
@@ -8070,7 +8072,7 @@ async function zod(options = {}) {
8070
8072
  name: "storm/zod/rules",
8071
8073
  files: [GLOB_SRC],
8072
8074
  plugins: {
8073
- "import-zod": default4
8075
+ "import-zod": default5
8074
8076
  },
8075
8077
  rules: {
8076
8078
  "import-zod/prefer-zod-namespace": "error"
@@ -8129,6 +8131,7 @@ function getStormConfig(options, ...userConfigs) {
8129
8131
  typescript: enableTypeScript = isPackageExists("typescript"),
8130
8132
  unicorn: enableUnicorn = true,
8131
8133
  tsdoc: enableTSDoc = true,
8134
+ test: enableTest = true,
8132
8135
  unocss: enableUnoCSS = false,
8133
8136
  zod: enableZod = true
8134
8137
  } = options;
@@ -8235,7 +8238,7 @@ function getStormConfig(options, ...userConfigs) {
8235
8238
  if (enableRegexp) {
8236
8239
  configs3.push(regexp(typeof enableRegexp === "boolean" ? {} : enableRegexp));
8237
8240
  }
8238
- if (options.test ?? true) {
8241
+ if (enableTest) {
8239
8242
  configs3.push(
8240
8243
  test({
8241
8244
  isInEditor,
@@ -1,4 +1,4 @@
1
- export { banner_plugin_default as default } from '../chunk-6T25DCUR.js';
2
- import '../chunk-TBHRJJNJ.js';
3
- import '../chunk-QQBZQ6FI.js';
1
+ export { banner_plugin_default as default } from '../chunk-QGAM5CKD.js';
2
+ import '../chunk-NF4GLJDM.js';
3
+ import '../chunk-ZWL5DCHO.js';
4
4
  import '../chunk-H2OHWXFL.js';
@@ -179,12 +179,11 @@ var GLOB_EXCLUDE = [
179
179
  "**/next-env.d.ts",
180
180
  "**/CODEOWNERS",
181
181
  "**/yarn.lock",
182
- "**/jest.config.js",
183
- "**/jest.setup.js",
184
- "**/jest.config.ts",
185
- "**/jest.setup.ts",
186
- "**/jest.config.json",
187
- "**/jest.setup.json",
182
+ "**/jest.preset.{js,ts,cjs,cts,mjs,mts,json}",
183
+ "**/vitest.preset.{js,ts,cjs,cts,mjs,mts,json}",
184
+ "**/jest.config.{js,ts,cjs,cts,mjs,mts,json}",
185
+ "**/vitest.config.{js,ts,cjs,cts,mjs,mts,json}",
186
+ "**/vitest.workspace.{js,ts,cjs,cts,mjs,mts,json}",
188
187
  "**/*.spec.{ts,tsx}",
189
188
  "**/*.test.{ts,tsx}",
190
189
  "**/output",
@@ -1,2 +1,2 @@
1
- export { ACRONYMS_LIST, GLOB_ALL_SRC, GLOB_ASTRO, GLOB_ASTRO_EXT, GLOB_ASTRO_FILE, GLOB_ASTRO_TS, GLOB_CODE_BLOCK, GLOB_CODE_FILE, GLOB_CSS, GLOB_CSS_EXT, GLOB_CSS_FILE, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_GRAPHQL_EXT, GLOB_GRAPHQL_FILE, GLOB_HTML, GLOB_HTML_EXT, GLOB_HTML_FILE, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSON5_EXT, GLOB_JSON5_FILE, GLOB_JSONC, GLOB_JSONC_EXT, GLOB_JSONC_FILE, GLOB_JSON_EXT, GLOB_JSON_FILE, GLOB_JSX, GLOB_JSX_EXT, GLOB_JSX_FILE, GLOB_JS_EXT, GLOB_JS_FILE, GLOB_LESS, GLOB_LESS_EXT, GLOB_LESS_FILE, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_EXT, GLOB_MARKDOWN_FILE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_MDX, GLOB_MDX_EXT, GLOB_MDX_FILE, GLOB_POSTCSS, GLOB_POSTCSS_EXT, GLOB_POSTCSS_FILE, GLOB_SCSS, GLOB_SCSS_EXT, GLOB_SCSS_FILE, GLOB_SRC, GLOB_SRC_EXT, GLOB_SRC_FILE, GLOB_STYLE, GLOB_STYLE_EXT, GLOB_STYLE_FILE, GLOB_SVELTE, GLOB_SVELTE_EXT, GLOB_SVELTE_FILE, GLOB_SVG, GLOB_SVG_EXT, GLOB_SVG_FILE, GLOB_TESTS, GLOB_TOML, GLOB_TOML_EXT, GLOB_TOML_FILE, GLOB_TS, GLOB_TSX, GLOB_TSX_EXT, GLOB_TSX_FILE, GLOB_TS_EXT, GLOB_TS_FILE, GLOB_VUE, GLOB_VUE_EXT, GLOB_VUE_FILE, GLOB_XML, GLOB_XML_EXT, GLOB_XML_FILE, GLOB_YAML, GLOB_YAML_EXT, GLOB_YAML_FILE } from '../chunk-QQBZQ6FI.js';
1
+ export { ACRONYMS_LIST, GLOB_ALL_SRC, GLOB_ASTRO, GLOB_ASTRO_EXT, GLOB_ASTRO_FILE, GLOB_ASTRO_TS, GLOB_CODE_BLOCK, GLOB_CODE_FILE, GLOB_CSS, GLOB_CSS_EXT, GLOB_CSS_FILE, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_GRAPHQL_EXT, GLOB_GRAPHQL_FILE, GLOB_HTML, GLOB_HTML_EXT, GLOB_HTML_FILE, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSON5_EXT, GLOB_JSON5_FILE, GLOB_JSONC, GLOB_JSONC_EXT, GLOB_JSONC_FILE, GLOB_JSON_EXT, GLOB_JSON_FILE, GLOB_JSX, GLOB_JSX_EXT, GLOB_JSX_FILE, GLOB_JS_EXT, GLOB_JS_FILE, GLOB_LESS, GLOB_LESS_EXT, GLOB_LESS_FILE, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_EXT, GLOB_MARKDOWN_FILE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_MDX, GLOB_MDX_EXT, GLOB_MDX_FILE, GLOB_POSTCSS, GLOB_POSTCSS_EXT, GLOB_POSTCSS_FILE, GLOB_SCSS, GLOB_SCSS_EXT, GLOB_SCSS_FILE, GLOB_SRC, GLOB_SRC_EXT, GLOB_SRC_FILE, GLOB_STYLE, GLOB_STYLE_EXT, GLOB_STYLE_FILE, GLOB_SVELTE, GLOB_SVELTE_EXT, GLOB_SVELTE_FILE, GLOB_SVG, GLOB_SVG_EXT, GLOB_SVG_FILE, GLOB_TESTS, GLOB_TOML, GLOB_TOML_EXT, GLOB_TOML_FILE, GLOB_TS, GLOB_TSX, GLOB_TSX_EXT, GLOB_TSX_FILE, GLOB_TS_EXT, GLOB_TS_FILE, GLOB_VUE, GLOB_VUE_EXT, GLOB_VUE_FILE, GLOB_XML, GLOB_XML_EXT, GLOB_XML_FILE, GLOB_YAML, GLOB_YAML_EXT, GLOB_YAML_FILE } from '../chunk-ZWL5DCHO.js';
2
2
  import '../chunk-H2OHWXFL.js';
@@ -1,3 +1,3 @@
1
- export { getFileBanner } from '../chunk-TBHRJJNJ.js';
2
- import '../chunk-QQBZQ6FI.js';
1
+ export { getFileBanner } from '../chunk-NF4GLJDM.js';
2
+ import '../chunk-ZWL5DCHO.js';
3
3
  import '../chunk-H2OHWXFL.js';
@@ -179,12 +179,11 @@ var GLOB_EXCLUDE = [
179
179
  "**/next-env.d.ts",
180
180
  "**/CODEOWNERS",
181
181
  "**/yarn.lock",
182
- "**/jest.config.js",
183
- "**/jest.setup.js",
184
- "**/jest.config.ts",
185
- "**/jest.setup.ts",
186
- "**/jest.config.json",
187
- "**/jest.setup.json",
182
+ "**/jest.preset.{js,ts,cjs,cts,mjs,mts,json}",
183
+ "**/vitest.preset.{js,ts,cjs,cts,mjs,mts,json}",
184
+ "**/jest.config.{js,ts,cjs,cts,mjs,mts,json}",
185
+ "**/vitest.config.{js,ts,cjs,cts,mjs,mts,json}",
186
+ "**/vitest.workspace.{js,ts,cjs,cts,mjs,mts,json}",
188
187
  "**/*.spec.{ts,tsx}",
189
188
  "**/*.test.{ts,tsx}",
190
189
  "**/output",
@@ -1,4 +1,4 @@
1
- export { ACRONYMS_LIST, GLOB_ALL_SRC, GLOB_ASTRO, GLOB_ASTRO_EXT, GLOB_ASTRO_FILE, GLOB_ASTRO_TS, GLOB_CODE_BLOCK, GLOB_CODE_FILE, GLOB_CSS, GLOB_CSS_EXT, GLOB_CSS_FILE, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_GRAPHQL_EXT, GLOB_GRAPHQL_FILE, GLOB_HTML, GLOB_HTML_EXT, GLOB_HTML_FILE, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSON5_EXT, GLOB_JSON5_FILE, GLOB_JSONC, GLOB_JSONC_EXT, GLOB_JSONC_FILE, GLOB_JSON_EXT, GLOB_JSON_FILE, GLOB_JSX, GLOB_JSX_EXT, GLOB_JSX_FILE, GLOB_JS_EXT, GLOB_JS_FILE, GLOB_LESS, GLOB_LESS_EXT, GLOB_LESS_FILE, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_EXT, GLOB_MARKDOWN_FILE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_MDX, GLOB_MDX_EXT, GLOB_MDX_FILE, GLOB_POSTCSS, GLOB_POSTCSS_EXT, GLOB_POSTCSS_FILE, GLOB_SCSS, GLOB_SCSS_EXT, GLOB_SCSS_FILE, GLOB_SRC, GLOB_SRC_EXT, GLOB_SRC_FILE, GLOB_STYLE, GLOB_STYLE_EXT, GLOB_STYLE_FILE, GLOB_SVELTE, GLOB_SVELTE_EXT, GLOB_SVELTE_FILE, GLOB_SVG, GLOB_SVG_EXT, GLOB_SVG_FILE, GLOB_TESTS, GLOB_TOML, GLOB_TOML_EXT, GLOB_TOML_FILE, GLOB_TS, GLOB_TSX, GLOB_TSX_EXT, GLOB_TSX_FILE, GLOB_TS_EXT, GLOB_TS_FILE, GLOB_VUE, GLOB_VUE_EXT, GLOB_VUE_FILE, GLOB_XML, GLOB_XML_EXT, GLOB_XML_FILE, GLOB_YAML, GLOB_YAML_EXT, GLOB_YAML_FILE } from '../chunk-QQBZQ6FI.js';
1
+ export { ACRONYMS_LIST, GLOB_ALL_SRC, GLOB_ASTRO, GLOB_ASTRO_EXT, GLOB_ASTRO_FILE, GLOB_ASTRO_TS, GLOB_CODE_BLOCK, GLOB_CODE_FILE, GLOB_CSS, GLOB_CSS_EXT, GLOB_CSS_FILE, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_GRAPHQL_EXT, GLOB_GRAPHQL_FILE, GLOB_HTML, GLOB_HTML_EXT, GLOB_HTML_FILE, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSON5_EXT, GLOB_JSON5_FILE, GLOB_JSONC, GLOB_JSONC_EXT, GLOB_JSONC_FILE, GLOB_JSON_EXT, GLOB_JSON_FILE, GLOB_JSX, GLOB_JSX_EXT, GLOB_JSX_FILE, GLOB_JS_EXT, GLOB_JS_FILE, GLOB_LESS, GLOB_LESS_EXT, GLOB_LESS_FILE, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_EXT, GLOB_MARKDOWN_FILE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_MDX, GLOB_MDX_EXT, GLOB_MDX_FILE, GLOB_POSTCSS, GLOB_POSTCSS_EXT, GLOB_POSTCSS_FILE, GLOB_SCSS, GLOB_SCSS_EXT, GLOB_SCSS_FILE, GLOB_SRC, GLOB_SRC_EXT, GLOB_SRC_FILE, GLOB_STYLE, GLOB_STYLE_EXT, GLOB_STYLE_FILE, GLOB_SVELTE, GLOB_SVELTE_EXT, GLOB_SVELTE_FILE, GLOB_SVG, GLOB_SVG_EXT, GLOB_SVG_FILE, GLOB_TESTS, GLOB_TOML, GLOB_TOML_EXT, GLOB_TOML_FILE, GLOB_TS, GLOB_TSX, GLOB_TSX_EXT, GLOB_TSX_FILE, GLOB_TS_EXT, GLOB_TS_FILE, GLOB_VUE, GLOB_VUE_EXT, GLOB_VUE_FILE, GLOB_XML, GLOB_XML_EXT, GLOB_XML_FILE, GLOB_YAML, GLOB_YAML_EXT, GLOB_YAML_FILE } from '../chunk-ZWL5DCHO.js';
2
2
  export { formatConfig } from '../chunk-U2F5I3UX.js';
3
3
  import { init_esm_shims } from '../chunk-H2OHWXFL.js';
4
4
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/eslint",
3
- "version": "0.170.56",
3
+ "version": "0.170.58",
4
4
  "private": false,
5
5
  "description": "A package containing the base ESLint configuration used by Storm Software across many projects.",
6
6
  "keywords": [
@@ -141,8 +141,8 @@
141
141
  "@eslint/eslintrc": "^3.3.5",
142
142
  "@eslint/markdown": "^6.6.0",
143
143
  "@nx/eslint-plugin": "22.7.5",
144
- "@storm-software/config": "1.137.67",
145
- "@storm-software/config-tools": "1.190.35",
144
+ "@storm-software/config": "1.137.69",
145
+ "@storm-software/config-tools": "1.190.37",
146
146
  "@stylistic/eslint-plugin": "^4.4.1",
147
147
  "@typescript-eslint/eslint-plugin": "^8.60.0",
148
148
  "@typescript-eslint/parser": "^8.60.0",
@@ -239,5 +239,5 @@
239
239
  "prettier-plugin-astro": "^0.14.0"
240
240
  },
241
241
  "publishConfig": { "access": "public" },
242
- "gitHead": "bcbc59a290ff30bb57a5224789269ecb8414bd43"
242
+ "gitHead": "c27544197ecb1fa5f354ef64400908169f7c0b29"
243
243
  }