Skip to content

Commit

Permalink
eslint rules for indent & semi-colon
Browse files Browse the repository at this point in the history
  • Loading branch information
nighca committed Mar 20, 2024
1 parent f7256b4 commit 05e105f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
6 changes: 5 additions & 1 deletion goplus.org/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
{
"extends": "next/core-web-vitals"
"extends": "next/core-web-vitals",
"rules": {
"indent": ["error", 2],
"semi": ["error", "never"]
}
}
4 changes: 2 additions & 2 deletions goplus.org/components/Code/Block/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,8 @@ function EditButton({ code }: { code: string }) {
const urlReady = url != null
const title = (
urlReady
? 'Edit Code In Playground'
: 'Fetching Playground URL...'
? 'Edit Code In Playground'
: 'Fetching Playground URL...'
)

return (
Expand Down
10 changes: 5 additions & 5 deletions goplus.org/components/Code/Run/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@ export function useCodeRun(code: string) {
}
endWaiting(
result.Errors
? <>
<Error>Error encountered:</Error>
<p>{result.Errors}</p>
</>
: <EventsWithStatus result={result} />
? <>
<Error>Error encountered:</Error>
<p>{result.Errors}</p>
</>
: <EventsWithStatus result={result} />
)
}, [code])

Expand Down

0 comments on commit 05e105f

Please sign in to comment.