Skip to content

Commit 41fe8e5

Browse files
committed
Migrate from Parcel to Vite
1 parent c98f2df commit 41fe8e5

12 files changed

+4637
-2523
lines changed

Diff for: .gitignore

+8-1
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,15 @@
77
node_modules/
88
dist/
99

10-
# Log files
10+
# Logs
11+
logs
1112
*.log
13+
npm-debug.log*
14+
yarn-debug.log*
15+
yarn-error.log*
16+
pnpm-debug.log*
17+
lerna-debug.log*
18+
1219

1320
# Package files
1421
*.jar

Diff for: .postcssrc

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"plugins": {
3-
"tailwindcss": {}
3+
"tailwindcss": {},
4+
"autoprefixer": {}
45
}
5-
}
6+
}

Diff for: eslint.config.js

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
import js from '@eslint/js'
2+
import globals from 'globals'
3+
import react from 'eslint-plugin-react'
4+
import reactHooks from 'eslint-plugin-react-hooks'
5+
import reactRefresh from 'eslint-plugin-react-refresh'
6+
7+
export default [
8+
{ ignores: ['dist'] },
9+
{
10+
files: ['**/*.{js,jsx}'],
11+
languageOptions: {
12+
ecmaVersion: 2020,
13+
globals: globals.browser,
14+
parserOptions: {
15+
ecmaVersion: 'latest',
16+
ecmaFeatures: { jsx: true },
17+
sourceType: 'module',
18+
},
19+
},
20+
settings: { react: { version: '18.3' } },
21+
plugins: {
22+
react,
23+
'react-hooks': reactHooks,
24+
'react-refresh': reactRefresh,
25+
},
26+
rules: {
27+
...js.configs.recommended.rules,
28+
...react.configs.recommended.rules,
29+
...react.configs['jsx-runtime'].rules,
30+
...reactHooks.configs.recommended.rules,
31+
'react/jsx-no-target-blank': 'off',
32+
'react-refresh/only-export-components': [
33+
'warn',
34+
{ allowConstantExport: true },
35+
],
36+
},
37+
},
38+
]

Diff for: public/index.html renamed to index.html

+6-6
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,25 @@
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
77
<meta
88
name="description"
9-
content="React js Practice Updates - Small React js Project that helps in Production"
9+
content="React.js Projects that helps you in Machine Coding Technical Interview Round for Fresher and Experience Front-End Developer"
1010
/>
1111
<meta
1212
name="keywords"
13-
content="React js, React js Practice, Redux, Redux-toolkit"
13+
content="React js, React.js Projects, Machine Coding React.js Projects, React js Practice Project"
1414
/>
1515
<meta name="author" content="Chetan Nada" />
1616

17-
<!-- Favicon for React.js Practice Update -->
17+
<!-- Favicon for React.js Projects -->
1818
<link rel="icon" href="./Images//favicon-16x16.png" />
1919

2020
<!-- Change href value in below line for particular CSS file of Project -->
21-
<link rel="stylesheet" href="../src/Redux-Counter-App/index.css" />
22-
<title>React.js Practice Update</title>
21+
<link rel="stylesheet" href="src/React-Fetch-Get/index.css" />
22+
<title>React.js Projects</title>
2323
</head>
2424
<body>
2525
<div id="root"></div>
2626

2727
<!-- Change src value in below line for particular App file of Project -->
28-
<script type="module" src="../src/Redux-Counter-App/App.js"></script>
28+
<script type="module" src="src/React-Fetch-Get/App.jsx"></script>
2929
</body>
3030
</html>

0 commit comments

Comments
 (0)