@batijs/cli 0.0.157 → 0.0.158
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.
|
@@ -7,8 +7,14 @@ async function getEslintConfig(props) {
|
|
|
7
7
|
eslintConfig.extends = eslintConfig.extends.filter(
|
|
8
8
|
(p) => p !== "eslint:recommended" && p !== "plugin:@typescript-eslint/recommended"
|
|
9
9
|
);
|
|
10
|
-
eslintConfig.extends.push("react
|
|
10
|
+
eslintConfig.extends.push("plugin:react/recommended");
|
|
11
11
|
eslintConfig.plugins = eslintConfig.plugins.filter((p) => p !== "@typescript-eslint");
|
|
12
|
+
eslintConfig.plugins.push("react");
|
|
13
|
+
eslintConfig.settings ??= {};
|
|
14
|
+
eslintConfig.settings.react = { version: "detect" };
|
|
15
|
+
eslintConfig.parserOptions ??= {};
|
|
16
|
+
eslintConfig.parserOptions.ecmaFeatures ??= {};
|
|
17
|
+
eslintConfig.parserOptions.ecmaFeatures.jsx = true;
|
|
12
18
|
return eslintConfig;
|
|
13
19
|
}
|
|
14
20
|
export {
|
|
@@ -50,7 +50,7 @@ var require_package = __commonJS({
|
|
|
50
50
|
"@types/react-dom": "^18.2.19",
|
|
51
51
|
"@vitejs/plugin-react": "^4.2.1",
|
|
52
52
|
"cross-fetch": "^4.0.0",
|
|
53
|
-
"eslint-
|
|
53
|
+
"eslint-plugin-react": "^7.33.2",
|
|
54
54
|
react: "^18.2.0",
|
|
55
55
|
"react-dom": "^18.2.0",
|
|
56
56
|
tailwindcss: "^3.4.1",
|
|
@@ -182,7 +182,7 @@ async function getPackageJson(props) {
|
|
|
182
182
|
const packageJson = await loadAsJson(props);
|
|
183
183
|
if (props.meta.BATI.has("eslint")) {
|
|
184
184
|
addDependency(packageJson, await Promise.resolve().then(() => __toESM(require_package(), 1)), {
|
|
185
|
-
devDependencies: ["eslint-
|
|
185
|
+
devDependencies: ["eslint-plugin-react"]
|
|
186
186
|
});
|
|
187
187
|
}
|
|
188
188
|
return addDependency(packageJson, await Promise.resolve().then(() => __toESM(require_package(), 1)), {
|
package/dist/index.js
CHANGED
|
@@ -585,7 +585,7 @@ Please report this issue to https://github.com/magne4000/bati`
|
|
|
585
585
|
// package.json
|
|
586
586
|
var package_default = {
|
|
587
587
|
name: "@batijs/cli",
|
|
588
|
-
version: "0.0.
|
|
588
|
+
version: "0.0.158",
|
|
589
589
|
type: "module",
|
|
590
590
|
scripts: {
|
|
591
591
|
"check-types": "tsc --noEmit",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@batijs/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.158",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"description": "Next-gen scaffolder. Get started with fully-functional apps, and choose any tool you want",
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
"tsup": "^8.0.2",
|
|
20
20
|
"typescript": "^5.3.3",
|
|
21
21
|
"vite": "^5.1.1",
|
|
22
|
-
"@batijs/build": "0.0.
|
|
23
|
-
"@batijs/compile": "0.0.
|
|
22
|
+
"@batijs/build": "0.0.158",
|
|
23
|
+
"@batijs/compile": "0.0.158"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@batijs/core": "0.0.
|
|
27
|
-
"@batijs/features": "0.0.
|
|
26
|
+
"@batijs/core": "0.0.158",
|
|
27
|
+
"@batijs/features": "0.0.158"
|
|
28
28
|
},
|
|
29
29
|
"bin": "./dist/index.js",
|
|
30
30
|
"exports": {
|