Skip to content

Commit

Permalink
Merge pull request #16 from Pkcarreno/wip/3
Browse files Browse the repository at this point in the history
Wip/3
  • Loading branch information
Pkcarreno authored Jul 7, 2024
2 parents d3b1776 + 78661f8 commit 409267c
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ updates:
- package-ecosystem: 'npm'
directory: '/'
schedule:
interval: 'monthly'
time: '01:00'
interval: 'weekly'
commit-message:
prefix: 'pnpm'
groups:
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"copy-to-clipboard": "^3.3.3",
"deep-equal": "^2.2.3",
"eslint-linter-browserify": "^9.6.0",
"globals": "^15.8.0",
"js-base64": "^3.7.7",
"only-allow": "^1.2.1",
"pretty-ms": "^9.0.0",
Expand Down
9 changes: 9 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions src/features/editor/components/editor/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { basicSetup } from '@uiw/codemirror-extensions-basic-setup';
import type { ReactCodeMirrorProps } from '@uiw/react-codemirror';
import CodeMirror from '@uiw/react-codemirror';
import * as eslint from 'eslint-linter-browserify';
import { worker as globalsWorker } from 'globals';
import { useMemo, useRef } from 'react';

import { useTheme } from '@/hooks/use-theme';
Expand All @@ -18,6 +19,10 @@ const lightTheme = themeInit({ theme: 'light' });

const EsLintConfig = {
languageOptions: {
globals: {
...globalsWorker,
console: true,
},
parserOptions: {
ecmaVersion: 2023,
sourceType: 'module',
Expand Down

0 comments on commit 409267c

Please sign in to comment.