Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implemented eslint rule for object spacing #72

Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"no-unused-vars": ["warn", { "argsIgnorePattern": "^_" }],
"import/order": ["error", { "groups": [["builtin", "external", "internal"]] }],
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn"
"react-hooks/exhaustive-deps": "warn",
"object-curly-spacing": ["error", "always"]
},
"parserOptions": {
"ecmaVersion": 2023,
Expand Down
2 changes: 1 addition & 1 deletion src/Images/CppLogo.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export default function CppLogo({width = 40, height = 40}) {
export default function CppLogo({ width = 40, height = 40 }) {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
Expand Down
2 changes: 1 addition & 1 deletion src/Images/JavaLogo.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export default function JavaLogo({width = 40, height = 40}) {
export default function JavaLogo({ width = 40, height = 40 }) {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
Expand Down
4 changes: 2 additions & 2 deletions src/components/js/SnackbarProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { SnackbarProvider as Notistack, closeSnackbar } from "notistack";
import { IconButton } from "@mui/material";
import { IoCloseCircleOutline } from "react-icons/io5";

const SnackbarProvider = ({children}) => {
const SnackbarProvider = ({ children }) => {

return (
<Notistack
Expand All @@ -21,7 +21,7 @@ const SnackbarProvider = ({children}) => {
<IoCloseCircleOutline color='#fff' />
</IconButton>
)}
style={{width: "auto", minWidth: "100px", fontSize: "1em"}}
style={{ width: "auto", minWidth: "100px", fontSize: "1em" }}
>
{children}
</Notistack>
Expand Down
4 changes: 2 additions & 2 deletions src/pages/EditorComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import Editor from "@monaco-editor/react";
import "../components/css/EditorComponent.css"; // Optional for styling
import "@fortawesome/fontawesome-free/css/all.css";
import { useSnackbar } from "notistack";
import {Button, CircularProgress, styled} from "@mui/material";
import {LANGUAGES, judge0SubmitUrl, rapidApiHost, rapidApiKey} from "../constants/constants";
import { Button, CircularProgress, styled } from "@mui/material";
import { LANGUAGES, judge0SubmitUrl, rapidApiHost, rapidApiKey } from "../constants/constants";

const StyledButton = styled(Button)({
display: "flex",
Expand Down