@storm-software/eslint 0.81.0 → 0.82.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.d.mts +2 -1
- package/dist/preset.d.ts +2 -1
- package/dist/preset.mjs +7 -7
- package/package.json +2 -2
package/dist/preset.d.mts
CHANGED
|
@@ -7006,8 +7006,9 @@ type YmlSpacedComment =
|
|
|
7006
7006
|
}
|
|
7007
7007
|
];
|
|
7008
7008
|
|
|
7009
|
+
type TypeScriptEslintConfigType = "none" | "all" | "base" | "disable-type-checked" | "eslint-recommended" | "recommended-type-checked-only" | "recommended-type-checked" | "recommended" | "strict-type-checked" | "strict" | "stylistic-type-checked-only" | "stylistic-type-checked" | "stylistic";
|
|
7009
7010
|
interface GetStormRulesConfigOptions {
|
|
7010
|
-
|
|
7011
|
+
tsConfigType?: TypeScriptEslintConfigType;
|
|
7011
7012
|
useUnicorn?: boolean;
|
|
7012
7013
|
}
|
|
7013
7014
|
|
package/dist/preset.d.ts
CHANGED
|
@@ -7006,8 +7006,9 @@ type YmlSpacedComment =
|
|
|
7006
7006
|
}
|
|
7007
7007
|
];
|
|
7008
7008
|
|
|
7009
|
+
type TypeScriptEslintConfigType = "none" | "all" | "base" | "disable-type-checked" | "eslint-recommended" | "recommended-type-checked-only" | "recommended-type-checked" | "recommended" | "strict-type-checked" | "strict" | "stylistic-type-checked-only" | "stylistic-type-checked" | "stylistic";
|
|
7009
7010
|
interface GetStormRulesConfigOptions {
|
|
7010
|
-
|
|
7011
|
+
tsConfigType?: TypeScriptEslintConfigType;
|
|
7011
7012
|
useUnicorn?: boolean;
|
|
7012
7013
|
}
|
|
7013
7014
|
|
package/dist/preset.mjs
CHANGED
|
@@ -1296,7 +1296,7 @@ const getStormRulesConfig = (options) => {
|
|
|
1296
1296
|
}
|
|
1297
1297
|
]
|
|
1298
1298
|
};
|
|
1299
|
-
if (options.
|
|
1299
|
+
if (options.tsConfigType !== "none") {
|
|
1300
1300
|
rules = {
|
|
1301
1301
|
...rules,
|
|
1302
1302
|
/*************************************************************
|
|
@@ -1348,7 +1348,7 @@ const getStormRulesConfig = (options) => {
|
|
|
1348
1348
|
]
|
|
1349
1349
|
};
|
|
1350
1350
|
}
|
|
1351
|
-
if (options.useUnicorn) {
|
|
1351
|
+
if (options.useUnicorn !== false) {
|
|
1352
1352
|
rules = {
|
|
1353
1353
|
...rules,
|
|
1354
1354
|
/*************************************************************
|
|
@@ -12894,7 +12894,7 @@ function getStormConfig(options = {
|
|
|
12894
12894
|
react: {},
|
|
12895
12895
|
useReactCompiler: false
|
|
12896
12896
|
}, ...userConfigs) {
|
|
12897
|
-
const
|
|
12897
|
+
const tsConfigType = options.tsConfigType || "eslint-recommended";
|
|
12898
12898
|
const useUnicorn = options.useUnicorn ?? true;
|
|
12899
12899
|
const react = options.react ?? {};
|
|
12900
12900
|
const useReactCompiler = options.useReactCompiler ?? false;
|
|
@@ -12983,13 +12983,13 @@ function getStormConfig(options = {
|
|
|
12983
12983
|
// User overrides
|
|
12984
12984
|
...userConfigs
|
|
12985
12985
|
].filter(Boolean);
|
|
12986
|
-
if (
|
|
12986
|
+
if (tsConfigType !== "none") {
|
|
12987
12987
|
configs.push(
|
|
12988
|
-
...tsEslint$1.configs
|
|
12988
|
+
...tsEslint$1.configs[tsConfigType]?.map((config) => ({
|
|
12989
12989
|
...config,
|
|
12990
12990
|
files: [TS_FILE]
|
|
12991
12991
|
// We use TS config only for TS files
|
|
12992
|
-
}))
|
|
12992
|
+
})) ?? []
|
|
12993
12993
|
);
|
|
12994
12994
|
}
|
|
12995
12995
|
if (useUnicorn) {
|
|
@@ -13037,7 +13037,7 @@ function getStormConfig(options = {
|
|
|
13037
13037
|
}
|
|
13038
13038
|
},
|
|
13039
13039
|
rules: {
|
|
13040
|
-
...getStormRulesConfig({ ...options,
|
|
13040
|
+
...getStormRulesConfig({ ...options, tsConfigType, useUnicorn }),
|
|
13041
13041
|
...options.rules ?? {}
|
|
13042
13042
|
},
|
|
13043
13043
|
ignores: [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/eslint",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.82.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": {
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
"globals": "^15.8.0",
|
|
97
97
|
"jsonc-eslint-parser": "2.4.0",
|
|
98
98
|
"synckit": "0.9.0",
|
|
99
|
-
"typescript-eslint": "
|
|
99
|
+
"typescript-eslint": "8.6.0",
|
|
100
100
|
"ws": "8.17.1",
|
|
101
101
|
"yaml-eslint-parser": "1.2.3"
|
|
102
102
|
},
|