create-rstack 1.5.2 → 1.5.4
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/index.d.ts +3 -1
- package/dist/index.js +3 -1
- package/package.json +7 -7
- package/template-biome/package.json +1 -1
- package/template-eslint/react-js/eslint.config.mjs +20 -20
- package/template-eslint/react-js/package.json +3 -4
- package/template-eslint/react-ts/eslint.config.mjs +16 -24
- package/template-eslint/react-ts/package.json +4 -5
- package/template-eslint/svelte-js/package.json +3 -3
- package/template-eslint/svelte-ts/package.json +4 -4
- package/template-eslint/vanilla-js/package.json +2 -2
- package/template-eslint/vanilla-ts/package.json +3 -3
- package/template-eslint/vue-js/package.json +2 -2
- package/template-eslint/vue-ts/package.json +2 -2
- package/template-prettier/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -33,7 +33,9 @@ export declare function create({ name, root, templates, skipFiles, getTemplateNa
|
|
|
33
33
|
skipFiles?: string[];
|
|
34
34
|
templates: string[];
|
|
35
35
|
getTemplateName: (argv: Argv) => Promise<string>;
|
|
36
|
-
mapESLintTemplate: (templateName: string
|
|
36
|
+
mapESLintTemplate: (templateName: string, context: {
|
|
37
|
+
distFolder: string;
|
|
38
|
+
}) => ESLintTemplateName | null;
|
|
37
39
|
version?: Record<string, string> | string;
|
|
38
40
|
noteInformation?: string[];
|
|
39
41
|
}): Promise<void>;
|
package/dist/index.js
CHANGED
|
@@ -1672,7 +1672,9 @@ async function create({ name, root, templates, skipFiles, getTemplateName, mapES
|
|
|
1672
1672
|
for (const tool of tools){
|
|
1673
1673
|
const toolFolder = node_path.join(packageRoot, `template-${tool}`);
|
|
1674
1674
|
if ('eslint' === tool) {
|
|
1675
|
-
const eslintTemplateName = mapESLintTemplate(templateName
|
|
1675
|
+
const eslintTemplateName = mapESLintTemplate(templateName, {
|
|
1676
|
+
distFolder
|
|
1677
|
+
});
|
|
1676
1678
|
if (!eslintTemplateName) continue;
|
|
1677
1679
|
const subFolder = node_path.join(toolFolder, eslintTemplateName);
|
|
1678
1680
|
copyFolder({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-rstack",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.4",
|
|
4
4
|
"description": "Create a new Rstack project",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -40,21 +40,21 @@
|
|
|
40
40
|
]
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@biomejs/biome": "2.0.
|
|
43
|
+
"@biomejs/biome": "2.0.6",
|
|
44
44
|
"@clack/prompts": "^0.11.0",
|
|
45
45
|
"@microsoft/api-extractor": "^7.52.8",
|
|
46
|
-
"@rslib/core": "0.10.
|
|
47
|
-
"@rstest/core": "0.0.
|
|
46
|
+
"@rslib/core": "0.10.4",
|
|
47
|
+
"@rstest/core": "0.0.4",
|
|
48
48
|
"@types/minimist": "^1.2.5",
|
|
49
|
-
"@types/node": "22.15.
|
|
49
|
+
"@types/node": "22.15.34",
|
|
50
50
|
"deepmerge": "^4.3.1",
|
|
51
51
|
"minimist": "^1.2.8",
|
|
52
52
|
"picocolors": "^1.1.1",
|
|
53
|
-
"rslog": "^1.2.
|
|
53
|
+
"rslog": "^1.2.9",
|
|
54
54
|
"simple-git-hooks": "^2.13.0",
|
|
55
55
|
"typescript": "^5.8.3"
|
|
56
56
|
},
|
|
57
|
-
"packageManager": "pnpm@10.12.
|
|
57
|
+
"packageManager": "pnpm@10.12.4",
|
|
58
58
|
"publishConfig": {
|
|
59
59
|
"access": "public",
|
|
60
60
|
"provenance": true,
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { fixupConfigRules } from '@eslint/compat';
|
|
2
1
|
import js from '@eslint/js';
|
|
3
|
-
import
|
|
4
|
-
import react from 'eslint-plugin-react/configs/recommended.js';
|
|
2
|
+
import { defineConfig, globalIgnores } from 'eslint/config';
|
|
5
3
|
import reactHooks from 'eslint-plugin-react-hooks';
|
|
4
|
+
import reactRefresh from 'eslint-plugin-react-refresh';
|
|
6
5
|
import globals from 'globals';
|
|
7
6
|
|
|
8
|
-
export default [
|
|
9
|
-
|
|
10
|
-
js.configs.recommended,
|
|
11
|
-
...fixupConfigRules([
|
|
12
|
-
{
|
|
13
|
-
...react,
|
|
14
|
-
settings: {
|
|
15
|
-
react: { version: 'detect' },
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
reactJsx,
|
|
19
|
-
]),
|
|
7
|
+
export default defineConfig([
|
|
8
|
+
globalIgnores(['dist']),
|
|
20
9
|
{
|
|
21
|
-
|
|
22
|
-
|
|
10
|
+
files: ['**/*.{js,jsx}'],
|
|
11
|
+
extends: [
|
|
12
|
+
js.configs.recommended,
|
|
13
|
+
reactHooks.configs['recommended-latest'],
|
|
14
|
+
reactRefresh.configs.vite,
|
|
15
|
+
],
|
|
16
|
+
languageOptions: {
|
|
17
|
+
ecmaVersion: 2020,
|
|
18
|
+
globals: globals.browser,
|
|
19
|
+
parserOptions: {
|
|
20
|
+
ecmaVersion: 'latest',
|
|
21
|
+
ecmaFeatures: { jsx: true },
|
|
22
|
+
sourceType: 'module',
|
|
23
|
+
},
|
|
23
24
|
},
|
|
24
25
|
rules: {
|
|
25
|
-
|
|
26
|
+
'no-unused-vars': ['error', { varsIgnorePattern: '^[A-Z_]' }],
|
|
26
27
|
},
|
|
27
28
|
},
|
|
28
|
-
|
|
29
|
-
];
|
|
29
|
+
]);
|
|
@@ -6,11 +6,10 @@
|
|
|
6
6
|
"lint": "eslint ."
|
|
7
7
|
},
|
|
8
8
|
"devDependencies": {
|
|
9
|
-
"@eslint/
|
|
10
|
-
"
|
|
11
|
-
"eslint": "^9.29.0",
|
|
12
|
-
"eslint-plugin-react": "^7.37.5",
|
|
9
|
+
"@eslint/js": "^9.30.0",
|
|
10
|
+
"eslint": "^9.30.0",
|
|
13
11
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
12
|
+
"eslint-plugin-react-refresh": "^0.4.20",
|
|
14
13
|
"globals": "^16.2.0"
|
|
15
14
|
}
|
|
16
15
|
}
|
|
@@ -1,31 +1,23 @@
|
|
|
1
|
-
import { fixupConfigRules } from '@eslint/compat';
|
|
2
1
|
import js from '@eslint/js';
|
|
3
|
-
import
|
|
4
|
-
import react from 'eslint-plugin-react/configs/recommended.js';
|
|
2
|
+
import { globalIgnores } from 'eslint/config';
|
|
5
3
|
import reactHooks from 'eslint-plugin-react-hooks';
|
|
4
|
+
import reactRefresh from 'eslint-plugin-react-refresh';
|
|
6
5
|
import globals from 'globals';
|
|
7
|
-
import
|
|
6
|
+
import tseslint from 'typescript-eslint';
|
|
8
7
|
|
|
9
|
-
export default [
|
|
10
|
-
|
|
11
|
-
js.configs.recommended,
|
|
12
|
-
...ts.configs.recommended,
|
|
13
|
-
...fixupConfigRules([
|
|
14
|
-
{
|
|
15
|
-
...react,
|
|
16
|
-
settings: {
|
|
17
|
-
react: { version: 'detect' },
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
reactJsx,
|
|
21
|
-
]),
|
|
8
|
+
export default tseslint.config([
|
|
9
|
+
globalIgnores(['dist']),
|
|
22
10
|
{
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
11
|
+
files: ['**/*.{ts,tsx}'],
|
|
12
|
+
extends: [
|
|
13
|
+
js.configs.recommended,
|
|
14
|
+
tseslint.configs.recommended,
|
|
15
|
+
reactHooks.configs['recommended-latest'],
|
|
16
|
+
reactRefresh.configs.vite,
|
|
17
|
+
],
|
|
18
|
+
languageOptions: {
|
|
19
|
+
ecmaVersion: 2020,
|
|
20
|
+
globals: globals.browser,
|
|
28
21
|
},
|
|
29
22
|
},
|
|
30
|
-
|
|
31
|
-
];
|
|
23
|
+
]);
|
|
@@ -6,12 +6,11 @@
|
|
|
6
6
|
"lint": "eslint ."
|
|
7
7
|
},
|
|
8
8
|
"devDependencies": {
|
|
9
|
-
"@eslint/
|
|
10
|
-
"
|
|
11
|
-
"eslint": "^9.29.0",
|
|
12
|
-
"eslint-plugin-react": "^7.37.5",
|
|
9
|
+
"@eslint/js": "^9.30.0",
|
|
10
|
+
"eslint": "^9.30.0",
|
|
13
11
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
12
|
+
"eslint-plugin-react-refresh": "^0.4.20",
|
|
14
13
|
"globals": "^16.2.0",
|
|
15
|
-
"typescript-eslint": "^8.
|
|
14
|
+
"typescript-eslint": "^8.35.1"
|
|
16
15
|
}
|
|
17
16
|
}
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
"lint": "eslint ."
|
|
7
7
|
},
|
|
8
8
|
"devDependencies": {
|
|
9
|
-
"@eslint/js": "^9.
|
|
10
|
-
"eslint": "^9.
|
|
11
|
-
"eslint-plugin-svelte": "^3.
|
|
9
|
+
"@eslint/js": "^9.30.0",
|
|
10
|
+
"eslint": "^9.30.0",
|
|
11
|
+
"eslint-plugin-svelte": "^3.10.1",
|
|
12
12
|
"globals": "^16.2.0"
|
|
13
13
|
}
|
|
14
14
|
}
|
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
"lint": "eslint ."
|
|
7
7
|
},
|
|
8
8
|
"devDependencies": {
|
|
9
|
-
"@eslint/js": "^9.
|
|
10
|
-
"eslint": "^9.
|
|
11
|
-
"eslint-plugin-svelte": "^3.
|
|
9
|
+
"@eslint/js": "^9.30.0",
|
|
10
|
+
"eslint": "^9.30.0",
|
|
11
|
+
"eslint-plugin-svelte": "^3.10.1",
|
|
12
12
|
"globals": "^16.2.0",
|
|
13
|
-
"typescript-eslint": "^8.
|
|
13
|
+
"typescript-eslint": "^8.35.1"
|
|
14
14
|
},
|
|
15
15
|
"type": "module"
|
|
16
16
|
}
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
},
|
|
8
8
|
"devDependencies": {
|
|
9
9
|
"@vue/eslint-config-typescript": "^14.5.1",
|
|
10
|
-
"eslint": "^9.
|
|
10
|
+
"eslint": "^9.30.0",
|
|
11
11
|
"eslint-plugin-vue": "^10.2.0",
|
|
12
12
|
"globals": "^16.2.0",
|
|
13
|
-
"typescript-eslint": "^8.
|
|
13
|
+
"typescript-eslint": "^8.35.1"
|
|
14
14
|
}
|
|
15
15
|
}
|