Skip to content

Commit

Permalink
fix: fix ESLint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
kagankan committed Feb 8, 2025
1 parent 399abd5 commit dd91943
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/components/ConsoleOutput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ export const ConsoleOutput = forwardRef<ConsoleOutputRef, Props>((_, ref) => {

useEffect(() => {
if (wrapperRef.current) {
// eslint-disable-next-line unicorn/prefer-global-this -- fix it later
const elementStyle = window.getComputedStyle(wrapperRef.current);
const elementStyle = globalThis.getComputedStyle(wrapperRef.current);
const terminal = new Terminal({
theme: {
background: elementStyle.backgroundColor,
Expand Down
3 changes: 1 addition & 2 deletions src/server/linter/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ import path from 'node:path';
import { fileURLToPath } from 'node:url';

const __dirname = path.dirname(fileURLToPath(import.meta.url));
// eslint-disable-next-line unicorn/text-encoding-identifier-case -- fix it later
const content = fs.readFileSync(path.resolve(__dirname, './constants.json'), { encoding: 'utf-8' });
const content = fs.readFileSync(path.resolve(__dirname, './constants.json'), { encoding: 'utf8' });
const constants = JSON.parse(content);

main();
Expand Down

0 comments on commit dd91943

Please sign in to comment.