@adbayb/stack 0.0.0-next-4a1a044 → 0.0.0-next-c2ead0b
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.
|
@@ -82,6 +82,7 @@ export const config = [
|
|
|
82
82
|
"no-self-assign": "error",
|
|
83
83
|
"no-shadow-restricted-names": "error",
|
|
84
84
|
"no-sparse-arrays": "error",
|
|
85
|
+
"no-template-curly-in-string": "error",
|
|
85
86
|
"no-unexpected-multiline": "error",
|
|
86
87
|
"no-unsafe-finally": "error",
|
|
87
88
|
"no-unsafe-optional-chaining": "error",
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* eslint-disable unicorn/string-content */
|
|
1
2
|
import unicornPlugin from "eslint-plugin-unicorn";
|
|
2
3
|
|
|
3
4
|
import { JAVASCRIPT_LIKE_EXTENSIONS } from "../constants.js";
|
|
@@ -111,6 +112,19 @@ export const config = [
|
|
|
111
112
|
"unicorn/relative-url-style": ["error", "always"],
|
|
112
113
|
"unicorn/require-array-join-separator": "error",
|
|
113
114
|
"unicorn/require-number-to-fixed-digits-argument": "error",
|
|
115
|
+
"unicorn/string-content": [
|
|
116
|
+
"error",
|
|
117
|
+
{
|
|
118
|
+
patterns: {
|
|
119
|
+
"->": "→",
|
|
120
|
+
"\\.\\.\\.": "…",
|
|
121
|
+
"^http:\\/\\/": String.raw`^https:\/\/`,
|
|
122
|
+
},
|
|
123
|
+
},
|
|
124
|
+
],
|
|
125
|
+
"unicorn/switch-case-braces": "error",
|
|
126
|
+
"unicorn/text-encoding-identifier-case": "error",
|
|
127
|
+
"unicorn/throw-new-error": "error",
|
|
114
128
|
},
|
|
115
129
|
},
|
|
116
130
|
];
|
package/dist/index.js
CHANGED
|
@@ -167,7 +167,7 @@ const ESLINT_EXTENSIONS = [
|
|
|
167
167
|
"mdx"
|
|
168
168
|
];
|
|
169
169
|
|
|
170
|
-
var version = "0.0.0-next-
|
|
170
|
+
var version = "0.0.0-next-c2ead0b";
|
|
171
171
|
|
|
172
172
|
const createWatchCommand = (program)=>{
|
|
173
173
|
program.command({
|
|
@@ -479,9 +479,9 @@ const label$2 = (message)=>`${message} 🔨`;
|
|
|
479
479
|
});
|
|
480
480
|
/** Template file mutations. */ new fdir().withBasePath().glob(`**/*${templateExtension}`).crawl(projectRootPath).sync().forEach((templateFilePath)=>{
|
|
481
481
|
const projectFilePath = templateFilePath.slice(0, templateFilePath.lastIndexOf(templateExtension));
|
|
482
|
-
const content = evaluate(readFileSync(templateFilePath, "
|
|
482
|
+
const content = evaluate(readFileSync(templateFilePath, "utf8"));
|
|
483
483
|
renameSync(templateFilePath, projectFilePath);
|
|
484
|
-
writeFileSync(projectFilePath, content, "
|
|
484
|
+
writeFileSync(projectFilePath, content, "utf8");
|
|
485
485
|
});
|
|
486
486
|
/** Template folder mutations. */ new fdir().withBasePath().onlyDirs().filter((path)=>{
|
|
487
487
|
return templateExpressionRegExp.test(path);
|
|
@@ -636,7 +636,7 @@ const createPackagesVersionMismatchChecker = ()=>{
|
|
|
636
636
|
}
|
|
637
637
|
const isSameMonorepoVersion = depVersion === storedVersion;
|
|
638
638
|
if (!isSameMonorepoVersion) {
|
|
639
|
-
throw createPackageError(`Mismatched versions: received version \`${depVersion}\` while others use \`${storedVersion}\`. To prevent issues with singleton-like code (React contexts,
|
|
639
|
+
throw createPackageError(`Mismatched versions: received version \`${depVersion}\` while others use \`${storedVersion}\`. To prevent issues with singleton-like code (React contexts, …), please make sure to update all packages to use the same \`${dependencyName}\` version (either \`${storedVersion}\` or \`${depVersion}\`.`, {
|
|
640
640
|
name: dependencyName,
|
|
641
641
|
consumedBy: packageName
|
|
642
642
|
});
|