Fix ESLint configuration and parsing errors

- Fix .eslintrc.json format (remove comments and invalid JSON syntax)
- Simplify environment.jsx to fix parsing error
- Add proper ESLint rules for React project
- Enable react-hooks plugin and configure settings
This commit is contained in:
tuanOts
2025-05-25 02:15:41 +07:00
parent 37f11dc23a
commit 1e9bab5d07
2 changed files with 22 additions and 46 deletions
+1 -2
View File
@@ -1,6 +1,5 @@
// For development environment
const publicUrl = process.env.PUBLIC_URL || "/";
export const base_path = publicUrl.endsWith('/') ? publicUrl : publicUrl + '/';
export const base_path = process.env.PUBLIC_URL || "/";
// For production with a subdirectory (uncomment and modify as needed)
// export const base_path = "/react/";