@storm-software/eslint 0.88.0 → 0.88.2
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 +1 -1
- package/dist/preset.d.mts +2 -3
- package/dist/preset.d.ts +2 -3
- package/dist/preset.mjs +22 -13
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
21
21
|
|
|
22
22
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
23
23
|
|
|
24
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
25
25
|
|
|
26
26
|
<!-- prettier-ignore-start -->
|
|
27
27
|
<!-- markdownlint-disable -->
|
package/dist/preset.d.mts
CHANGED
|
@@ -7006,9 +7006,8 @@ 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";
|
|
7010
7009
|
interface GetStormRulesConfigOptions {
|
|
7011
|
-
typescriptEslintConfigType?:
|
|
7010
|
+
typescriptEslintConfigType?: string;
|
|
7012
7011
|
useUnicorn?: boolean;
|
|
7013
7012
|
useNx?: boolean;
|
|
7014
7013
|
}
|
|
@@ -7037,7 +7036,7 @@ type PresetOptions = GetStormRulesConfigOptions & {
|
|
|
7037
7036
|
rules?: RuleOptions;
|
|
7038
7037
|
ignores?: string[];
|
|
7039
7038
|
tsconfig?: string;
|
|
7040
|
-
typescriptEslintConfigType?:
|
|
7039
|
+
typescriptEslintConfigType?: string;
|
|
7041
7040
|
parserOptions?: Linter.ParserOptions;
|
|
7042
7041
|
markdown?: false | Linter.RulesRecord;
|
|
7043
7042
|
react?: false | Linter.RulesRecord;
|
package/dist/preset.d.ts
CHANGED
|
@@ -7006,9 +7006,8 @@ 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";
|
|
7010
7009
|
interface GetStormRulesConfigOptions {
|
|
7011
|
-
typescriptEslintConfigType?:
|
|
7010
|
+
typescriptEslintConfigType?: string;
|
|
7012
7011
|
useUnicorn?: boolean;
|
|
7013
7012
|
useNx?: boolean;
|
|
7014
7013
|
}
|
|
@@ -7037,7 +7036,7 @@ type PresetOptions = GetStormRulesConfigOptions & {
|
|
|
7037
7036
|
rules?: RuleOptions;
|
|
7038
7037
|
ignores?: string[];
|
|
7039
7038
|
tsconfig?: string;
|
|
7040
|
-
typescriptEslintConfigType?:
|
|
7039
|
+
typescriptEslintConfigType?: string;
|
|
7041
7040
|
parserOptions?: Linter.ParserOptions;
|
|
7042
7041
|
markdown?: false | Linter.RulesRecord;
|
|
7043
7042
|
react?: false | Linter.RulesRecord;
|
package/dist/preset.mjs
CHANGED
|
@@ -12925,7 +12925,6 @@ const ignores = [
|
|
|
12925
12925
|
function getStormConfig(options = {
|
|
12926
12926
|
rules: {},
|
|
12927
12927
|
ignores: [],
|
|
12928
|
-
typescriptEslintConfigType: "eslint-recommended",
|
|
12929
12928
|
useUnicorn: true,
|
|
12930
12929
|
markdown: {},
|
|
12931
12930
|
react: {},
|
|
@@ -12936,7 +12935,7 @@ function getStormConfig(options = {
|
|
|
12936
12935
|
var _a;
|
|
12937
12936
|
const tsconfig = options.tsconfig;
|
|
12938
12937
|
const parserOptions = options.parserOptions;
|
|
12939
|
-
const typescriptEslintConfigType = options.typescriptEslintConfigType || "
|
|
12938
|
+
const typescriptEslintConfigType = options.typescriptEslintConfigType || "recommendedTypeChecked";
|
|
12940
12939
|
const useUnicorn = options.useUnicorn ?? true;
|
|
12941
12940
|
const react = options.react ?? {};
|
|
12942
12941
|
const nx = options.nx ?? {};
|
|
@@ -13114,6 +13113,12 @@ function getStormConfig(options = {
|
|
|
13114
13113
|
...globals.node,
|
|
13115
13114
|
"window": "readonly",
|
|
13116
13115
|
"Storm": "readonly"
|
|
13116
|
+
},
|
|
13117
|
+
parserOptions: {
|
|
13118
|
+
projectService: true,
|
|
13119
|
+
ecmaFeatures: {
|
|
13120
|
+
jsx: react !== false
|
|
13121
|
+
}
|
|
13117
13122
|
}
|
|
13118
13123
|
},
|
|
13119
13124
|
rules: {
|
|
@@ -13174,17 +13179,21 @@ function getStormConfig(options = {
|
|
|
13174
13179
|
}
|
|
13175
13180
|
const result = formatConfig(
|
|
13176
13181
|
"Preset",
|
|
13177
|
-
configs.reduce(
|
|
13178
|
-
|
|
13179
|
-
|
|
13180
|
-
|
|
13181
|
-
|
|
13182
|
-
|
|
13183
|
-
|
|
13184
|
-
|
|
13185
|
-
|
|
13186
|
-
|
|
13187
|
-
|
|
13182
|
+
configs.reduce(
|
|
13183
|
+
(ret, config) => {
|
|
13184
|
+
delete config.parserOptions;
|
|
13185
|
+
const existingIndex = ret.findIndex(
|
|
13186
|
+
(existing) => areFilesEqual(existing.files, config.files)
|
|
13187
|
+
);
|
|
13188
|
+
if (existingIndex >= 0) {
|
|
13189
|
+
ret[existingIndex] = defu(ret[existingIndex], config);
|
|
13190
|
+
} else {
|
|
13191
|
+
ret.push(config);
|
|
13192
|
+
}
|
|
13193
|
+
return ret;
|
|
13194
|
+
},
|
|
13195
|
+
[]
|
|
13196
|
+
)
|
|
13188
13197
|
);
|
|
13189
13198
|
writeInfo("\u2699\uFE0F Completed generated Storm ESLint configuration objects", {
|
|
13190
13199
|
logLevel
|
package/package.json
CHANGED