create-modern-react 2.3.1 → 2.3.3
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/package.json +1 -1
- package/templates/base/.eslintrc.cjs +48 -26
- package/templates/base/package.json +4 -3
- package/templates/base/src/screens/home/index.tsx +2 -2
- package/templates/base/src/services/alertify-services.ts +0 -32
- package/templates/base/tsconfig.node.json +4 -1
- package/templates/base/public/screenshots/healthmug.png +0 -0
- package/templates/base/public/screenshots/resumefreepro.png +0 -0
package/package.json
CHANGED
|
@@ -1,37 +1,59 @@
|
|
|
1
1
|
module.exports = {
|
|
2
2
|
root: true,
|
|
3
|
-
env: {
|
|
3
|
+
env: {
|
|
4
|
+
browser: true,
|
|
5
|
+
node: true,
|
|
6
|
+
es6: true,
|
|
7
|
+
},
|
|
4
8
|
extends: [
|
|
5
9
|
'eslint:recommended',
|
|
6
10
|
'plugin:@typescript-eslint/recommended',
|
|
7
|
-
'
|
|
11
|
+
'eslint-config-prettier',
|
|
8
12
|
],
|
|
9
|
-
ignorePatterns: ['dist', '.eslintrc.cjs'],
|
|
13
|
+
ignorePatterns: ['dist', '.eslintrc.cjs', 'node_modules'],
|
|
10
14
|
parser: '@typescript-eslint/parser',
|
|
11
|
-
plugins: ['
|
|
15
|
+
plugins: ['@typescript-eslint', 'import'],
|
|
12
16
|
rules: {
|
|
13
|
-
'react-refresh/only-export-components': [
|
|
14
|
-
'warn',
|
|
15
|
-
{ allowConstantExport: true },
|
|
16
|
-
],
|
|
17
|
-
// Unused imports
|
|
18
|
-
'unused-imports/no-unused-imports': 'error',
|
|
19
|
-
'unused-imports/no-unused-vars': [
|
|
20
|
-
'warn',
|
|
21
|
-
{
|
|
22
|
-
vars: 'all',
|
|
23
|
-
varsIgnorePattern: '^_',
|
|
24
|
-
args: 'after-used',
|
|
25
|
-
argsIgnorePattern: '^_',
|
|
26
|
-
},
|
|
27
|
-
],
|
|
28
17
|
// TypeScript
|
|
29
|
-
'
|
|
30
|
-
'@typescript-eslint/no-
|
|
31
|
-
|
|
32
|
-
//
|
|
33
|
-
'no-
|
|
34
|
-
'
|
|
35
|
-
|
|
18
|
+
'no-unused-vars': 'off',
|
|
19
|
+
'@typescript-eslint/no-unused-vars': ['warn'],
|
|
20
|
+
|
|
21
|
+
// Import validation
|
|
22
|
+
'import/no-unresolved': 'error',
|
|
23
|
+
'import/named': 'error',
|
|
24
|
+
|
|
25
|
+
// Core JavaScript
|
|
26
|
+
'no-undef': ['error'],
|
|
27
|
+
'no-var': ['error'],
|
|
28
|
+
'no-await-in-loop': 'error',
|
|
29
|
+
'no-constant-binary-expression': 'error',
|
|
30
|
+
'no-duplicate-imports': 'error',
|
|
31
|
+
'no-new-native-nonconstructor': 'error',
|
|
32
|
+
'no-promise-executor-return': 'error',
|
|
33
|
+
'no-self-compare': 'error',
|
|
34
|
+
'no-template-curly-in-string': 'error',
|
|
35
|
+
'no-unmodified-loop-condition': 'error',
|
|
36
|
+
'no-unreachable-loop': 'error',
|
|
37
|
+
'no-unused-private-class-members': 'error',
|
|
38
|
+
'no-use-before-define': 'error',
|
|
39
|
+
|
|
40
|
+
// React
|
|
41
|
+
'react/prop-types': 'off',
|
|
42
|
+
'react/react-in-jsx-scope': 'off',
|
|
43
|
+
|
|
44
|
+
// Disabled
|
|
45
|
+
'no-extra-boolean-cast': 'off',
|
|
46
|
+
},
|
|
47
|
+
settings: {
|
|
48
|
+
react: {
|
|
49
|
+
version: 'detect',
|
|
50
|
+
},
|
|
51
|
+
'import/resolver': {
|
|
52
|
+
typescript: {},
|
|
53
|
+
node: {
|
|
54
|
+
extensions: ['.js', '.jsx', '.ts', '.tsx'],
|
|
55
|
+
moduleDirectory: ['node_modules', 'src/'],
|
|
56
|
+
},
|
|
57
|
+
},
|
|
36
58
|
},
|
|
37
59
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "modern-react-app",
|
|
3
3
|
"private": true,
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "1.0.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"dev": "vite --open --port 3000",
|
|
@@ -32,9 +32,10 @@
|
|
|
32
32
|
"@vitejs/plugin-react-swc": "^3.7.0",
|
|
33
33
|
"autoprefixer": "^10.4.19",
|
|
34
34
|
"eslint": "^8.57.0",
|
|
35
|
+
"eslint-config-prettier": "^9.1.0",
|
|
36
|
+
"eslint-plugin-import": "^2.29.1",
|
|
37
|
+
"eslint-import-resolver-typescript": "^3.6.1",
|
|
35
38
|
"eslint-plugin-react-hooks": "^4.6.2",
|
|
36
|
-
"eslint-plugin-react-refresh": "^0.4.7",
|
|
37
|
-
"eslint-plugin-unused-imports": "^3.2.0",
|
|
38
39
|
"postcss": "^8.4.39",
|
|
39
40
|
"prettier": "^3.3.0",
|
|
40
41
|
"prettier-plugin-tailwindcss": "^0.6.5",
|
|
@@ -135,7 +135,7 @@ export default function Home() {
|
|
|
135
135
|
description="AI-Powered Resume Builder"
|
|
136
136
|
designStyle="Modern + Glassmorphism"
|
|
137
137
|
url="https://resumefreepro.com?utm_source=starter-template&utm_medium=landing-page&utm_campaign=create-modern-react-demo"
|
|
138
|
-
previewUrl="/
|
|
138
|
+
previewUrl="https://storage.resumefreepro.com/media-files/resumefreepro.webp"
|
|
139
139
|
/>
|
|
140
140
|
<ProjectCard
|
|
141
141
|
category="E-Pharmacy"
|
|
@@ -143,7 +143,7 @@ export default function Home() {
|
|
|
143
143
|
description="Online Pharmacy Platform"
|
|
144
144
|
designStyle="Clean + Professional"
|
|
145
145
|
url="https://healthmug.com?utm_source=starter-template&utm_medium=landing-page&utm_campaign=create-modern-react-demo"
|
|
146
|
-
previewUrl="/
|
|
146
|
+
previewUrl="https://storage.resumefreepro.com/media-files/healthmug.webp"
|
|
147
147
|
/>
|
|
148
148
|
</div>
|
|
149
149
|
</div>
|
|
@@ -79,38 +79,6 @@ export const Alertify = {
|
|
|
79
79
|
};
|
|
80
80
|
},
|
|
81
81
|
|
|
82
|
-
/**
|
|
83
|
-
* Show a custom toast with action button
|
|
84
|
-
*/
|
|
85
|
-
withAction(
|
|
86
|
-
message: string,
|
|
87
|
-
actionText: string,
|
|
88
|
-
onAction: () => void,
|
|
89
|
-
position: ToastPosition = 'bottom-right'
|
|
90
|
-
) {
|
|
91
|
-
if (currentToastId) {
|
|
92
|
-
toast.dismiss(currentToastId);
|
|
93
|
-
}
|
|
94
|
-
currentToastId = toast(
|
|
95
|
-
(t) => (
|
|
96
|
-
<div className="flex items-center gap-2">
|
|
97
|
-
<span>{message}</span>
|
|
98
|
-
<button
|
|
99
|
-
onClick={() => {
|
|
100
|
-
onAction();
|
|
101
|
-
toast.dismiss(t.id);
|
|
102
|
-
}}
|
|
103
|
-
className="rounded bg-primary px-2 py-1 text-xs font-medium text-primary-foreground hover:bg-primary/90"
|
|
104
|
-
>
|
|
105
|
-
{actionText}
|
|
106
|
-
</button>
|
|
107
|
-
</div>
|
|
108
|
-
),
|
|
109
|
-
{ position, duration: 5000 }
|
|
110
|
-
);
|
|
111
|
-
return currentToastId;
|
|
112
|
-
},
|
|
113
|
-
|
|
114
82
|
/**
|
|
115
83
|
* Dismiss all toasts
|
|
116
84
|
*/
|
|
@@ -10,7 +10,10 @@
|
|
|
10
10
|
"allowImportingTsExtensions": true,
|
|
11
11
|
"isolatedModules": true,
|
|
12
12
|
"moduleDetection": "force",
|
|
13
|
-
"
|
|
13
|
+
"emitDeclarationOnly": true,
|
|
14
|
+
|
|
15
|
+
/* Composite project (required for project references) */
|
|
16
|
+
"composite": true,
|
|
14
17
|
|
|
15
18
|
/* Linting */
|
|
16
19
|
"strict": true,
|
|
Binary file
|
|
Binary file
|