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:
+1
-2
@@ -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/";
|
||||
|
||||
Reference in New Issue
Block a user