Maintain consistent code formatting patterns across the codebase to improve readability and maintainability. This includes: 1. Use consistent spacing and indentation
Maintain consistent code formatting patterns across the codebase to improve readability and maintainability. This includes:
Example of good formatting:
// Good: Clear organization and spacing
import React from 'react';
import { createTheme, ThemeProvider } from '@mui/material/styles';
const theme = createTheme({
modularCssLayers: true,
});
export default function AppTheme({ children }: { children: React.ReactNode }) {
return <ThemeProvider theme={theme}>{children}</ThemeProvider>;
}
// Bad: Inconsistent spacing and organization
import React from 'react'
import {createTheme,ThemeProvider} from '@mui/material/styles'
const theme=createTheme({modularCssLayers:true})
export default function AppTheme({children}:{children:React.ReactNode}){return(
<ThemeProvider theme={theme}>{children}</ThemeProvider>
)}
This pattern helps maintain code quality by:
Enter the URL of a public GitHub repository