create-rstack 1.5.3 → 1.5.5
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.js
CHANGED
|
@@ -1749,10 +1749,8 @@ function copyFolder({ from, to, version, packageName, isMergePackageJson, skipFi
|
|
|
1749
1749
|
else if ('package.json' === file) {
|
|
1750
1750
|
const targetPackage = node_path.resolve(to, 'package.json');
|
|
1751
1751
|
if (isMergePackageJson && node_fs.existsSync(targetPackage)) mergePackageJson(targetPackage, srcFile);
|
|
1752
|
-
else
|
|
1753
|
-
|
|
1754
|
-
updatePackageJson(distFile, version, packageName);
|
|
1755
|
-
}
|
|
1752
|
+
else node_fs.copyFileSync(srcFile, distFile);
|
|
1753
|
+
updatePackageJson(distFile, version, packageName);
|
|
1756
1754
|
} else node_fs.copyFileSync(srcFile, distFile);
|
|
1757
1755
|
}
|
|
1758
1756
|
}
|
package/package.json
CHANGED
|
@@ -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/compat": "^1.3.1",
|
|
10
9
|
"@eslint/js": "^9.30.0",
|
|
11
10
|
"eslint": "^9.30.0",
|
|
12
|
-
"eslint-plugin-react": "^7.37.5",
|
|
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,11 +6,10 @@
|
|
|
6
6
|
"lint": "eslint ."
|
|
7
7
|
},
|
|
8
8
|
"devDependencies": {
|
|
9
|
-
"@eslint/compat": "^1.3.1",
|
|
10
9
|
"@eslint/js": "^9.30.0",
|
|
11
10
|
"eslint": "^9.30.0",
|
|
12
|
-
"eslint-plugin-react": "^7.37.5",
|
|
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
|
"typescript-eslint": "^8.35.1"
|
|
16
15
|
}
|