@storm-software/eslint 0.170.91 → 0.170.92
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.cjs +22 -19
- package/dist/preset.js +23 -20
- package/package.json +2 -2
package/dist/preset.cjs
CHANGED
|
@@ -20796,7 +20796,7 @@ async function typescript(options = {}) {
|
|
|
20796
20796
|
allowDefaultProject: [GLOB_SRC_FILE],
|
|
20797
20797
|
defaultProject: tsconfigPath
|
|
20798
20798
|
},
|
|
20799
|
-
tsconfigRootDir: findWorkspaceRoot2()
|
|
20799
|
+
tsconfigRootDir: !tsconfigPath ? findWorkspaceRoot2() : path16.dirname(tsconfigPath)
|
|
20800
20800
|
} : {},
|
|
20801
20801
|
...parserOptions
|
|
20802
20802
|
}
|
|
@@ -21289,13 +21289,6 @@ function preset(options, ...userConfigs) {
|
|
|
21289
21289
|
);
|
|
21290
21290
|
}
|
|
21291
21291
|
}
|
|
21292
|
-
const typescriptOptions = resolveSubOptions(options, "typescript");
|
|
21293
|
-
if (typescriptOptions.tsconfigPath !== false) {
|
|
21294
|
-
typescriptOptions.tsconfigPath = getTsConfigPath(
|
|
21295
|
-
typescriptOptions.tsconfigPath,
|
|
21296
|
-
options.type
|
|
21297
|
-
);
|
|
21298
|
-
}
|
|
21299
21292
|
configs6.push(
|
|
21300
21293
|
ignores(options.ignores),
|
|
21301
21294
|
javascript({
|
|
@@ -21310,6 +21303,27 @@ function preset(options, ...userConfigs) {
|
|
|
21310
21303
|
perfectionist(),
|
|
21311
21304
|
secrets({ json: options.jsonc !== false })
|
|
21312
21305
|
);
|
|
21306
|
+
let typescriptOptions = {};
|
|
21307
|
+
if (enableTypeScript) {
|
|
21308
|
+
typescriptOptions = resolveSubOptions(options, "typescript");
|
|
21309
|
+
if (typescriptOptions.tsconfigPath !== false) {
|
|
21310
|
+
typescriptOptions.tsconfigPath = getTsConfigPath(
|
|
21311
|
+
typescriptOptions.tsconfigPath,
|
|
21312
|
+
options.type
|
|
21313
|
+
);
|
|
21314
|
+
}
|
|
21315
|
+
}
|
|
21316
|
+
if (enableTypeScript) {
|
|
21317
|
+
configs6.push(
|
|
21318
|
+
typescript({
|
|
21319
|
+
...typescriptOptions,
|
|
21320
|
+
tsconfigPath: typescriptOptions.tsconfigPath === false ? void 0 : typescriptOptions.tsconfigPath,
|
|
21321
|
+
componentExts,
|
|
21322
|
+
overrides: getOverrides(options, "typescript"),
|
|
21323
|
+
type: options.type
|
|
21324
|
+
})
|
|
21325
|
+
);
|
|
21326
|
+
}
|
|
21313
21327
|
if (enableBanner) {
|
|
21314
21328
|
configs6.push(
|
|
21315
21329
|
banner({
|
|
@@ -21347,17 +21361,6 @@ function preset(options, ...userConfigs) {
|
|
|
21347
21361
|
if (enableJsx) {
|
|
21348
21362
|
configs6.push(jsx());
|
|
21349
21363
|
}
|
|
21350
|
-
if (enableTypeScript) {
|
|
21351
|
-
configs6.push(
|
|
21352
|
-
typescript({
|
|
21353
|
-
...typescriptOptions,
|
|
21354
|
-
tsconfigPath: typescriptOptions.tsconfigPath === false ? void 0 : typescriptOptions.tsconfigPath,
|
|
21355
|
-
componentExts,
|
|
21356
|
-
overrides: getOverrides(options, "typescript"),
|
|
21357
|
-
type: options.type
|
|
21358
|
-
})
|
|
21359
|
-
);
|
|
21360
|
-
}
|
|
21361
21364
|
if (enableZod) {
|
|
21362
21365
|
configs6.push(
|
|
21363
21366
|
zod({
|
package/dist/preset.js
CHANGED
|
@@ -14,7 +14,7 @@ import { loadConfig } from 'c12';
|
|
|
14
14
|
import defu from 'defu';
|
|
15
15
|
import chalk from 'chalk';
|
|
16
16
|
import fs3, { existsSync, readFileSync } from 'node:fs';
|
|
17
|
-
import path16, { join } from 'node:path';
|
|
17
|
+
import path16, { dirname as dirname$1, join } from 'node:path';
|
|
18
18
|
import { readFile } from 'node:fs/promises';
|
|
19
19
|
import { EOL } from 'node:os';
|
|
20
20
|
import cspellConfig from '@cspell/eslint-plugin/recommended';
|
|
@@ -20397,7 +20397,7 @@ async function typescript(options = {}) {
|
|
|
20397
20397
|
allowDefaultProject: [GLOB_SRC_FILE],
|
|
20398
20398
|
defaultProject: tsconfigPath
|
|
20399
20399
|
},
|
|
20400
|
-
tsconfigRootDir: findWorkspaceRoot()
|
|
20400
|
+
tsconfigRootDir: !tsconfigPath ? findWorkspaceRoot() : dirname$1(tsconfigPath)
|
|
20401
20401
|
} : {},
|
|
20402
20402
|
...parserOptions
|
|
20403
20403
|
}
|
|
@@ -20853,13 +20853,6 @@ function preset(options, ...userConfigs) {
|
|
|
20853
20853
|
);
|
|
20854
20854
|
}
|
|
20855
20855
|
}
|
|
20856
|
-
const typescriptOptions = resolveSubOptions(options, "typescript");
|
|
20857
|
-
if (typescriptOptions.tsconfigPath !== false) {
|
|
20858
|
-
typescriptOptions.tsconfigPath = getTsConfigPath(
|
|
20859
|
-
typescriptOptions.tsconfigPath,
|
|
20860
|
-
options.type
|
|
20861
|
-
);
|
|
20862
|
-
}
|
|
20863
20856
|
configs6.push(
|
|
20864
20857
|
ignores(options.ignores),
|
|
20865
20858
|
javascript({
|
|
@@ -20874,6 +20867,27 @@ function preset(options, ...userConfigs) {
|
|
|
20874
20867
|
perfectionist(),
|
|
20875
20868
|
secrets({ json: options.jsonc !== false })
|
|
20876
20869
|
);
|
|
20870
|
+
let typescriptOptions = {};
|
|
20871
|
+
if (enableTypeScript) {
|
|
20872
|
+
typescriptOptions = resolveSubOptions(options, "typescript");
|
|
20873
|
+
if (typescriptOptions.tsconfigPath !== false) {
|
|
20874
|
+
typescriptOptions.tsconfigPath = getTsConfigPath(
|
|
20875
|
+
typescriptOptions.tsconfigPath,
|
|
20876
|
+
options.type
|
|
20877
|
+
);
|
|
20878
|
+
}
|
|
20879
|
+
}
|
|
20880
|
+
if (enableTypeScript) {
|
|
20881
|
+
configs6.push(
|
|
20882
|
+
typescript({
|
|
20883
|
+
...typescriptOptions,
|
|
20884
|
+
tsconfigPath: typescriptOptions.tsconfigPath === false ? void 0 : typescriptOptions.tsconfigPath,
|
|
20885
|
+
componentExts,
|
|
20886
|
+
overrides: getOverrides(options, "typescript"),
|
|
20887
|
+
type: options.type
|
|
20888
|
+
})
|
|
20889
|
+
);
|
|
20890
|
+
}
|
|
20877
20891
|
if (enableBanner) {
|
|
20878
20892
|
configs6.push(
|
|
20879
20893
|
banner({
|
|
@@ -20911,17 +20925,6 @@ function preset(options, ...userConfigs) {
|
|
|
20911
20925
|
if (enableJsx) {
|
|
20912
20926
|
configs6.push(jsx());
|
|
20913
20927
|
}
|
|
20914
|
-
if (enableTypeScript) {
|
|
20915
|
-
configs6.push(
|
|
20916
|
-
typescript({
|
|
20917
|
-
...typescriptOptions,
|
|
20918
|
-
tsconfigPath: typescriptOptions.tsconfigPath === false ? void 0 : typescriptOptions.tsconfigPath,
|
|
20919
|
-
componentExts,
|
|
20920
|
-
overrides: getOverrides(options, "typescript"),
|
|
20921
|
-
type: options.type
|
|
20922
|
-
})
|
|
20923
|
-
);
|
|
20924
|
-
}
|
|
20925
20928
|
if (enableZod) {
|
|
20926
20929
|
configs6.push(
|
|
20927
20930
|
zod({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/eslint",
|
|
3
|
-
"version": "0.170.
|
|
3
|
+
"version": "0.170.92",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A package containing the base ESLint configuration used by Storm Software across many projects.",
|
|
6
6
|
"keywords": [
|
|
@@ -271,5 +271,5 @@
|
|
|
271
271
|
"zod": { "optional": true }
|
|
272
272
|
},
|
|
273
273
|
"publishConfig": { "access": "public" },
|
|
274
|
-
"gitHead": "
|
|
274
|
+
"gitHead": "9922d1f0f3307b6823f994db8545e164984c8be7"
|
|
275
275
|
}
|