@storm-software/eslint 0.170.57 → 0.170.59
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/{chunk-6T25DCUR.js → chunk-2ACTURAO.js} +3 -3
- package/dist/{chunk-VIFGWE6I.js → chunk-5HGSECRE.js} +1 -1
- package/dist/{chunk-TBHRJJNJ.js → chunk-7SKRGVNR.js} +2 -2
- package/dist/{chunk-U2F5I3UX.js → chunk-DKRHJ72K.js} +1 -1
- package/dist/{chunk-BSVVS7SV.js → chunk-GCFQMUVV.js} +2 -2
- package/dist/{chunk-4ZPL5FXI.js → chunk-JRFR3JJA.js} +1 -1
- package/dist/{chunk-RPALAP3R.js → chunk-LME4RIKT.js} +3 -3
- package/dist/{chunk-QQBZQ6FI.js → chunk-RJLL4PJJ.js} +6 -7
- package/dist/{chunk-H2OHWXFL.js → chunk-TP46XPKP.js} +1 -1
- package/dist/preset.cjs +49 -45
- package/dist/preset.js +45 -42
- package/dist/types.d.cts +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/types.js +1 -1
- package/dist/utils/banner-plugin.js +4 -4
- package/dist/utils/combine.js +1 -1
- package/dist/utils/constants.cjs +5 -6
- package/dist/utils/constants.js +2 -2
- package/dist/utils/correct-paths.js +2 -2
- package/dist/utils/find-workspace-root.js +3 -3
- package/dist/utils/format-config.js +2 -2
- package/dist/utils/get-file-banner.js +3 -3
- package/dist/utils/helpers.cjs +1 -1
- package/dist/utils/helpers.js +2 -2
- package/dist/utils/index.cjs +5 -6
- package/dist/utils/index.js +3 -3
- package/dist/utils/tsconfig-path.js +4 -4
- package/package.json +6 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { getFileBanner } from './chunk-
|
|
2
|
-
import { GLOB_SRC } from './chunk-
|
|
3
|
-
import { init_esm_shims } from './chunk-
|
|
1
|
+
import { getFileBanner } from './chunk-7SKRGVNR.js';
|
|
2
|
+
import { GLOB_SRC } from './chunk-RJLL4PJJ.js';
|
|
3
|
+
import { init_esm_shims } from './chunk-TP46XPKP.js';
|
|
4
4
|
import { ESLintUtils } from '@typescript-eslint/utils';
|
|
5
5
|
import os from 'node:os';
|
|
6
6
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ACRONYMS_LIST } from './chunk-
|
|
2
|
-
import { init_esm_shims } from './chunk-
|
|
1
|
+
import { ACRONYMS_LIST } from './chunk-RJLL4PJJ.js';
|
|
2
|
+
import { init_esm_shims } from './chunk-TP46XPKP.js';
|
|
3
3
|
|
|
4
4
|
// src/utils/get-file-banner.ts
|
|
5
5
|
init_esm_shims();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { correctPaths } from './chunk-
|
|
2
|
-
import { init_esm_shims } from './chunk-
|
|
1
|
+
import { correctPaths } from './chunk-5HGSECRE.js';
|
|
2
|
+
import { init_esm_shims } from './chunk-TP46XPKP.js';
|
|
3
3
|
import { existsSync } from 'node:fs';
|
|
4
4
|
import { join } from 'node:path';
|
|
5
5
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { findWorkspaceRoot } from './chunk-
|
|
2
|
-
import { relative, joinPaths } from './chunk-
|
|
3
|
-
import { init_esm_shims } from './chunk-
|
|
1
|
+
import { findWorkspaceRoot } from './chunk-GCFQMUVV.js';
|
|
2
|
+
import { relative, joinPaths } from './chunk-5HGSECRE.js';
|
|
3
|
+
import { init_esm_shims } from './chunk-TP46XPKP.js';
|
|
4
4
|
import { existsSync, statSync } from 'node:fs';
|
|
5
5
|
|
|
6
6
|
// src/utils/tsconfig-path.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { init_esm_shims } from './chunk-
|
|
1
|
+
import { init_esm_shims } from './chunk-TP46XPKP.js';
|
|
2
2
|
|
|
3
3
|
// src/utils/constants.ts
|
|
4
4
|
init_esm_shims();
|
|
@@ -180,12 +180,11 @@ var GLOB_EXCLUDE = [
|
|
|
180
180
|
"**/next-env.d.ts",
|
|
181
181
|
"**/CODEOWNERS",
|
|
182
182
|
"**/yarn.lock",
|
|
183
|
-
"**/jest.
|
|
184
|
-
"**/
|
|
185
|
-
"**/jest.config.ts",
|
|
186
|
-
"**/
|
|
187
|
-
"**/
|
|
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",
|
|
@@ -30,7 +30,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
30
30
|
mod
|
|
31
31
|
));
|
|
32
32
|
var init_esm_shims = __esm({
|
|
33
|
-
"../../node_modules/.pnpm/tsup@8.4.0_patch_hash=
|
|
33
|
+
"../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__41e53e38ed75f3cd4f840eaa11e2e6a7/node_modules/tsup/assets/esm_shims.js"() {
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
36
|
|
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
|
|
17
|
-
var
|
|
18
|
-
var
|
|
19
|
-
var
|
|
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
|
|
27
|
-
var
|
|
28
|
-
var
|
|
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);
|
|
@@ -112,10 +116,10 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
112
116
|
mod
|
|
113
117
|
));
|
|
114
118
|
|
|
115
|
-
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=
|
|
119
|
+
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__41e53e38ed75f3cd4f840eaa11e2e6a7/node_modules/tsup/assets/cjs_shims.js
|
|
116
120
|
var getImportMetaUrl, importMetaUrl;
|
|
117
121
|
var init_cjs_shims = __esm({
|
|
118
|
-
"../../node_modules/.pnpm/tsup@8.4.0_patch_hash=
|
|
122
|
+
"../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__41e53e38ed75f3cd4f840eaa11e2e6a7/node_modules/tsup/assets/cjs_shims.js"() {
|
|
119
123
|
getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
|
|
120
124
|
importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
|
|
121
125
|
}
|
|
@@ -482,7 +486,7 @@ var require_lib = __commonJS({
|
|
|
482
486
|
defaultTSDocConfiguration.allTsdocMessageIds.forEach((messageId) => {
|
|
483
487
|
tsdocMessageIds[messageId] = `${messageId}: {{unformattedText}}`;
|
|
484
488
|
});
|
|
485
|
-
var
|
|
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 =
|
|
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.
|
|
809
|
-
"**/
|
|
810
|
-
"**/jest.config.ts",
|
|
811
|
-
"**/
|
|
812
|
-
"**/
|
|
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":
|
|
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:
|
|
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:
|
|
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:
|
|
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":
|
|
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
|
|
8551
|
+
var plugin3;
|
|
8549
8552
|
async function test(options = {}) {
|
|
8550
8553
|
const { files = GLOB_TESTS, isInEditor = false, overrides = {} } = options;
|
|
8551
|
-
|
|
8552
|
-
|
|
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
|
-
...
|
|
8557
|
+
...default4__default.default.rules,
|
|
8560
8558
|
// extend `test/no-only-tests` rule
|
|
8561
|
-
...
|
|
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:
|
|
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
|
-
|
|
8587
|
-
|
|
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:
|
|
8994
|
+
unicorn: default11__default.default
|
|
8992
8995
|
},
|
|
8993
8996
|
rules: {
|
|
8994
|
-
...options.allRecommended ?
|
|
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":
|
|
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 (
|
|
9300
|
+
if (enableTest) {
|
|
9297
9301
|
configs3.push(
|
|
9298
9302
|
test({
|
|
9299
9303
|
isInEditor,
|
package/dist/preset.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { isInEditorEnv, interopDefault, ensurePackages, renameRules, parserPlain, isPackageInScope } from './chunk-
|
|
2
|
-
import { getTsConfigPath } from './chunk-
|
|
3
|
-
import { banner_plugin_default } from './chunk-
|
|
4
|
-
import { getFileBanner } from './chunk-
|
|
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-
|
|
6
|
-
import { findWorkspaceRoot } from './chunk-
|
|
7
|
-
import { joinPaths } from './chunk-
|
|
8
|
-
import { __commonJS, init_esm_shims, __toESM } from './chunk-
|
|
1
|
+
import { isInEditorEnv, interopDefault, ensurePackages, renameRules, parserPlain, isPackageInScope } from './chunk-JRFR3JJA.js';
|
|
2
|
+
import { getTsConfigPath } from './chunk-LME4RIKT.js';
|
|
3
|
+
import { banner_plugin_default } from './chunk-2ACTURAO.js';
|
|
4
|
+
import { getFileBanner } from './chunk-7SKRGVNR.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-RJLL4PJJ.js';
|
|
6
|
+
import { findWorkspaceRoot } from './chunk-GCFQMUVV.js';
|
|
7
|
+
import { joinPaths } from './chunk-5HGSECRE.js';
|
|
8
|
+
import { __commonJS, init_esm_shims, __toESM } from './chunk-TP46XPKP.js';
|
|
9
9
|
import * as __import__microsoft_tsdocConfig from '@microsoft/tsdoc-config';
|
|
10
10
|
import * as __import_path from 'path';
|
|
11
11
|
import * as __import_fs from 'fs';
|
|
@@ -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
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
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
|
|
33
|
-
import
|
|
34
|
-
import
|
|
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
|
|
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 =
|
|
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":
|
|
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:
|
|
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:
|
|
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:
|
|
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":
|
|
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
|
|
7531
|
+
var plugin2;
|
|
7530
7532
|
async function test(options = {}) {
|
|
7531
7533
|
const { files = GLOB_TESTS, isInEditor = false, overrides = {} } = options;
|
|
7532
|
-
|
|
7533
|
-
|
|
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
|
-
...
|
|
7537
|
+
...default4.rules,
|
|
7541
7538
|
// extend `test/no-only-tests` rule
|
|
7542
|
-
...
|
|
7539
|
+
...default7.rules
|
|
7543
7540
|
}
|
|
7544
7541
|
};
|
|
7545
7542
|
return [
|
|
7546
7543
|
{
|
|
7547
7544
|
name: "storm/test/setup",
|
|
7548
7545
|
plugins: {
|
|
7549
|
-
test:
|
|
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
|
-
|
|
7568
|
-
|
|
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:
|
|
7935
|
+
unicorn: default11
|
|
7934
7936
|
},
|
|
7935
7937
|
rules: {
|
|
7936
|
-
...options.allRecommended ?
|
|
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":
|
|
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 (
|
|
8241
|
+
if (enableTest) {
|
|
8239
8242
|
configs3.push(
|
|
8240
8243
|
test({
|
|
8241
8244
|
isInEditor,
|
package/dist/types.d.cts
CHANGED
|
@@ -18118,7 +18118,7 @@ type Yoda = []|[("always" | "never")]|[("always" | "never"), {
|
|
|
18118
18118
|
onlyEquality?: boolean
|
|
18119
18119
|
}]
|
|
18120
18120
|
// Names of all the configs
|
|
18121
|
-
type ConfigNames = 'storm/cspell/rules' | 'storm/astro/setup' | 'storm/astro/rules' | 'storm/formatter/setup' | 'storm/imports/rules' | 'storm/graphql/setup' | 'storm/graphql/rules' | 'storm/graphql/relay' | 'storm/javascript/setup' | 'storm/javascript/banner' | 'storm/javascript/rules' | 'storm/jsx/rules' | 'storm/jsdoc/rules' | 'storm/jsonc/setup' | 'storm/jsonc/rules' | 'storm/markdown/setup' | 'storm/markdown/processor' | 'storm/markdown/parser' | '
|
|
18121
|
+
type ConfigNames = 'storm/cspell/rules' | 'storm/astro/setup' | 'storm/astro/rules' | 'storm/formatter/setup' | 'storm/imports/rules' | 'storm/graphql/setup' | 'storm/graphql/rules' | 'storm/graphql/relay' | 'storm/javascript/setup' | 'storm/javascript/banner' | 'storm/javascript/rules' | 'storm/jsx/rules' | 'storm/jsdoc/rules' | 'storm/jsonc/setup' | 'storm/jsonc/rules' | 'storm/markdown/setup' | 'storm/markdown/processor' | 'storm/markdown/parser' | 'mdx/flat' | 'storm/node/rules' | 'storm/nx/setup' | 'storm/nx/schema' | 'storm/nx/dependency-check' | 'storm/nx/module-boundaries' | 'storm/next/rules' | 'storm/prettier' | 'storm/perfectionist/rules' | 'storm/pnpm/setup' | 'storm/pnpm/package-json' | 'storm/pnpm/pnpm-workspace-yaml' | 'storm/react/setup' | 'storm/react/rules' | 'storm/react-native/rules' | 'storm/sort/package-json' | 'storm/stylistic/rules' | 'storm/secrets/rules' | 'storm/storybook/setup' | 'storm/storybook/rules' | 'storm/storybook/main' | 'storm/test/setup' | 'storm/test/rules' | 'storm/tsdoc/rules' | 'storm/toml/setup' | 'storm/toml/rules' | 'storm/typescript/setup' | 'storm/typescript/parser' | 'storm/typescript/type-aware-parser' | 'storm/typescript/rules' | 'storm/typescript/rules-type-aware' | 'storm/regexp/rules' | 'storm/unicorn/rules' | 'storm/unocss' | 'storm/yaml/setup' | 'storm/yaml/rules' | 'storm/zod/rules'
|
|
18122
18122
|
|
|
18123
18123
|
/**
|
|
18124
18124
|
* Vendor types from Prettier so we don't rely on the dependency.
|
package/dist/types.d.ts
CHANGED
|
@@ -18118,7 +18118,7 @@ type Yoda = []|[("always" | "never")]|[("always" | "never"), {
|
|
|
18118
18118
|
onlyEquality?: boolean
|
|
18119
18119
|
}]
|
|
18120
18120
|
// Names of all the configs
|
|
18121
|
-
type ConfigNames = 'storm/cspell/rules' | 'storm/astro/setup' | 'storm/astro/rules' | 'storm/formatter/setup' | 'storm/imports/rules' | 'storm/graphql/setup' | 'storm/graphql/rules' | 'storm/graphql/relay' | 'storm/javascript/setup' | 'storm/javascript/banner' | 'storm/javascript/rules' | 'storm/jsx/rules' | 'storm/jsdoc/rules' | 'storm/jsonc/setup' | 'storm/jsonc/rules' | 'storm/markdown/setup' | 'storm/markdown/processor' | 'storm/markdown/parser' | '
|
|
18121
|
+
type ConfigNames = 'storm/cspell/rules' | 'storm/astro/setup' | 'storm/astro/rules' | 'storm/formatter/setup' | 'storm/imports/rules' | 'storm/graphql/setup' | 'storm/graphql/rules' | 'storm/graphql/relay' | 'storm/javascript/setup' | 'storm/javascript/banner' | 'storm/javascript/rules' | 'storm/jsx/rules' | 'storm/jsdoc/rules' | 'storm/jsonc/setup' | 'storm/jsonc/rules' | 'storm/markdown/setup' | 'storm/markdown/processor' | 'storm/markdown/parser' | 'mdx/flat' | 'storm/node/rules' | 'storm/nx/setup' | 'storm/nx/schema' | 'storm/nx/dependency-check' | 'storm/nx/module-boundaries' | 'storm/next/rules' | 'storm/prettier' | 'storm/perfectionist/rules' | 'storm/pnpm/setup' | 'storm/pnpm/package-json' | 'storm/pnpm/pnpm-workspace-yaml' | 'storm/react/setup' | 'storm/react/rules' | 'storm/react-native/rules' | 'storm/sort/package-json' | 'storm/stylistic/rules' | 'storm/secrets/rules' | 'storm/storybook/setup' | 'storm/storybook/rules' | 'storm/storybook/main' | 'storm/test/setup' | 'storm/test/rules' | 'storm/tsdoc/rules' | 'storm/toml/setup' | 'storm/toml/rules' | 'storm/typescript/setup' | 'storm/typescript/parser' | 'storm/typescript/type-aware-parser' | 'storm/typescript/rules' | 'storm/typescript/rules-type-aware' | 'storm/regexp/rules' | 'storm/unicorn/rules' | 'storm/unocss' | 'storm/yaml/setup' | 'storm/yaml/rules' | 'storm/zod/rules'
|
|
18122
18122
|
|
|
18123
18123
|
/**
|
|
18124
18124
|
* Vendor types from Prettier so we don't rely on the dependency.
|
package/dist/types.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { banner_plugin_default as default } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
1
|
+
export { banner_plugin_default as default } from '../chunk-2ACTURAO.js';
|
|
2
|
+
import '../chunk-7SKRGVNR.js';
|
|
3
|
+
import '../chunk-RJLL4PJJ.js';
|
|
4
|
+
import '../chunk-TP46XPKP.js';
|
package/dist/utils/combine.js
CHANGED
package/dist/utils/constants.cjs
CHANGED
|
@@ -179,12 +179,11 @@ var GLOB_EXCLUDE = [
|
|
|
179
179
|
"**/next-env.d.ts",
|
|
180
180
|
"**/CODEOWNERS",
|
|
181
181
|
"**/yarn.lock",
|
|
182
|
-
"**/jest.
|
|
183
|
-
"**/
|
|
184
|
-
"**/jest.config.ts",
|
|
185
|
-
"**/
|
|
186
|
-
"**/
|
|
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",
|
package/dist/utils/constants.js
CHANGED
|
@@ -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-
|
|
2
|
-
import '../chunk-
|
|
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-RJLL4PJJ.js';
|
|
2
|
+
import '../chunk-TP46XPKP.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { basename, correctPaths, dirname, extname, format, isAbsolute, joinPaths, normalizeString, normalizeWindowsPath, parse, relative, resolve, sep, toNamespacedPath } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { basename, correctPaths, dirname, extname, format, isAbsolute, joinPaths, normalizeString, normalizeWindowsPath, parse, relative, resolve, sep, toNamespacedPath } from '../chunk-5HGSECRE.js';
|
|
2
|
+
import '../chunk-TP46XPKP.js';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { findWorkspaceRoot, findWorkspaceRootSafe } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
export { findWorkspaceRoot, findWorkspaceRootSafe } from '../chunk-GCFQMUVV.js';
|
|
2
|
+
import '../chunk-5HGSECRE.js';
|
|
3
|
+
import '../chunk-TP46XPKP.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { formatConfig } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { formatConfig } from '../chunk-DKRHJ72K.js';
|
|
2
|
+
import '../chunk-TP46XPKP.js';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { getFileBanner } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
export { getFileBanner } from '../chunk-7SKRGVNR.js';
|
|
2
|
+
import '../chunk-RJLL4PJJ.js';
|
|
3
|
+
import '../chunk-TP46XPKP.js';
|
package/dist/utils/helpers.cjs
CHANGED
|
@@ -8,7 +8,7 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
|
8
8
|
|
|
9
9
|
var process__default = /*#__PURE__*/_interopDefault(process);
|
|
10
10
|
|
|
11
|
-
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=
|
|
11
|
+
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__41e53e38ed75f3cd4f840eaa11e2e6a7/node_modules/tsup/assets/cjs_shims.js
|
|
12
12
|
var getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
|
|
13
13
|
var importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
|
|
14
14
|
var scopeUrl = url.fileURLToPath(new URL(".", importMetaUrl));
|
package/dist/utils/helpers.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { ensurePackages, interopDefault, isInEditorEnv, isInGitHooksOrLintStaged, isPackageInScope, parserPlain, renameRules } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { ensurePackages, interopDefault, isInEditorEnv, isInGitHooksOrLintStaged, isPackageInScope, parserPlain, renameRules } from '../chunk-JRFR3JJA.js';
|
|
2
|
+
import '../chunk-TP46XPKP.js';
|
package/dist/utils/index.cjs
CHANGED
|
@@ -179,12 +179,11 @@ var GLOB_EXCLUDE = [
|
|
|
179
179
|
"**/next-env.d.ts",
|
|
180
180
|
"**/CODEOWNERS",
|
|
181
181
|
"**/yarn.lock",
|
|
182
|
-
"**/jest.
|
|
183
|
-
"**/
|
|
184
|
-
"**/jest.config.ts",
|
|
185
|
-
"**/
|
|
186
|
-
"**/
|
|
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",
|
package/dist/utils/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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-
|
|
2
|
-
export { formatConfig } from '../chunk-
|
|
3
|
-
import { init_esm_shims } from '../chunk-
|
|
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-RJLL4PJJ.js';
|
|
2
|
+
export { formatConfig } from '../chunk-DKRHJ72K.js';
|
|
3
|
+
import { init_esm_shims } from '../chunk-TP46XPKP.js';
|
|
4
4
|
|
|
5
5
|
// src/utils/index.ts
|
|
6
6
|
init_esm_shims();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { checkTsConfigPath, getTsConfigPath } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
1
|
+
export { checkTsConfigPath, getTsConfigPath } from '../chunk-LME4RIKT.js';
|
|
2
|
+
import '../chunk-GCFQMUVV.js';
|
|
3
|
+
import '../chunk-5HGSECRE.js';
|
|
4
|
+
import '../chunk-TP46XPKP.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/eslint",
|
|
3
|
-
"version": "0.170.
|
|
3
|
+
"version": "0.170.59",
|
|
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.
|
|
145
|
-
"@storm-software/config-tools": "1.190.
|
|
144
|
+
"@storm-software/config": "1.137.70",
|
|
145
|
+
"@storm-software/config-tools": "1.190.38",
|
|
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",
|
|
@@ -161,7 +161,7 @@
|
|
|
161
161
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
162
162
|
"eslint-plugin-markdown": "^5.1.0",
|
|
163
163
|
"eslint-plugin-markdownlint": "^0.6.0",
|
|
164
|
-
"eslint-plugin-mdx": "^3.
|
|
164
|
+
"eslint-plugin-mdx": "^3.8.1",
|
|
165
165
|
"eslint-plugin-n": "^17.24.0",
|
|
166
166
|
"eslint-plugin-no-only-tests": "^3.4.0",
|
|
167
167
|
"eslint-plugin-no-secrets": "^2.3.3",
|
|
@@ -213,7 +213,7 @@
|
|
|
213
213
|
"graphql": "^16.14.0",
|
|
214
214
|
"prettier-plugin-astro": "^0.14.1",
|
|
215
215
|
"tsup": "8.4.0",
|
|
216
|
-
"tsx": "^4.22.
|
|
216
|
+
"tsx": "^4.22.4",
|
|
217
217
|
"typescript": "^5.9.3"
|
|
218
218
|
},
|
|
219
219
|
"peerDependencies": {
|
|
@@ -239,5 +239,5 @@
|
|
|
239
239
|
"prettier-plugin-astro": "^0.14.0"
|
|
240
240
|
},
|
|
241
241
|
"publishConfig": { "access": "public" },
|
|
242
|
-
"gitHead": "
|
|
242
|
+
"gitHead": "f37fb6ffa883d1246e2647eb83ad87e77dc2fb25"
|
|
243
243
|
}
|