@storm-software/eslint 0.85.1 → 0.85.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.mjs +10 -6
- 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.mjs
CHANGED
|
@@ -13173,13 +13173,17 @@ function getStormConfig(options = {
|
|
|
13173
13173
|
}
|
|
13174
13174
|
});
|
|
13175
13175
|
}
|
|
13176
|
+
writeInfo("\u2699\uFE0F Merging generated Storm ESLint configuration objects", {
|
|
13177
|
+
logLevel: "all"
|
|
13178
|
+
});
|
|
13179
|
+
writeDebug(configs, { logLevel: "all" });
|
|
13176
13180
|
const result = formatConfig(
|
|
13177
13181
|
"Preset",
|
|
13178
13182
|
configs.reduce((ret, config) => {
|
|
13179
13183
|
const existingIndex = ret.findIndex(
|
|
13180
13184
|
(existing) => areFilesEqual(existing.files, config.files)
|
|
13181
13185
|
);
|
|
13182
|
-
if (existingIndex) {
|
|
13186
|
+
if (existingIndex >= 0) {
|
|
13183
13187
|
ret[existingIndex] = defu(ret[existingIndex], config);
|
|
13184
13188
|
} else {
|
|
13185
13189
|
ret.push(config);
|
|
@@ -13196,15 +13200,15 @@ function getStormConfig(options = {
|
|
|
13196
13200
|
const areFilesEqual = (files1, files2) => {
|
|
13197
13201
|
if (files1 === files2) {
|
|
13198
13202
|
return true;
|
|
13199
|
-
}
|
|
13200
|
-
if (files1 == null || files2 == null) {
|
|
13203
|
+
} else if (!files1 || !files2) {
|
|
13201
13204
|
return false;
|
|
13202
|
-
}
|
|
13203
|
-
|
|
13205
|
+
} else if (typeof files1 === "string" && typeof files2 !== "string" || typeof files1 !== "string" && typeof files2 === "string" || Array.isArray(files1) && !Array.isArray(files2) || !Array.isArray(files1) && Array.isArray(files2)) {
|
|
13206
|
+
return false;
|
|
13207
|
+
} else if (files1.length !== files2.length) {
|
|
13204
13208
|
return false;
|
|
13205
13209
|
}
|
|
13206
13210
|
return files1.every(
|
|
13207
|
-
(file, index) => Array.isArray(file) && Array.isArray(files2?.[index]) ? areFilesEqual(file, files2?.[index]) : file === files2?.[index]
|
|
13211
|
+
(file, index) => Array.isArray(file) && Array.isArray(files2?.[index]) ? areFilesEqual(file, files2?.[index]) : !Array.isArray(file) && !Array.isArray(files2?.[index]) ? file?.toLowerCase() === files2?.[index]?.toLowerCase() : file === files2
|
|
13208
13212
|
);
|
|
13209
13213
|
};
|
|
13210
13214
|
|
package/package.json
CHANGED