Skip to content

Commit e0a8090

Browse files
authored
Merge pull request #26 from kagankan/feature/fix-eslint-errors
fix: fix ESLint errors
2 parents 399abd5 + dd91943 commit e0a8090

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/components/ConsoleOutput.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ export const ConsoleOutput = forwardRef<ConsoleOutputRef, Props>((_, ref) => {
1616

1717
useEffect(() => {
1818
if (wrapperRef.current) {
19-
// eslint-disable-next-line unicorn/prefer-global-this -- fix it later
20-
const elementStyle = window.getComputedStyle(wrapperRef.current);
19+
const elementStyle = globalThis.getComputedStyle(wrapperRef.current);
2120
const terminal = new Terminal({
2221
theme: {
2322
background: elementStyle.backgroundColor,

src/server/linter/index.mjs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ import path from 'node:path';
88
import { fileURLToPath } from 'node:url';
99

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

1514
main();

0 commit comments

Comments
 (0)