Skip to content

Commit

Permalink
Merge pull request #42 from CodinGame/fix-esm-strict
Browse files Browse the repository at this point in the history
Fix esm strict
  • Loading branch information
CGNonofr authored Feb 13, 2024
2 parents c8ba6d2 + 51e253f commit a92fbdd
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 8 deletions.
8 changes: 7 additions & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,11 @@ module.exports = {
extends: [
'@codingame/eslint-config',
'@codingame/eslint-config-react'
]
],
rules: {
'import/extensions': [
'error',
'ignorePackages'
]
}
}
4 changes: 2 additions & 2 deletions src/MonacoEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import { createEditor, getMonacoLanguage, updateEditorKeybindingsMode, registerE
import { IEditorOptions, IResolvedTextEditorModel } from '@codingame/monaco-vscode-editor-service-override'
import { DisposableStore, IReference, ITextFileEditorModel } from 'vscode/monaco'
import type { ITextFileEditorModelSaveEvent } from 'vscode/vscode/vs/workbench/services/textfile/common/textfiles'
import { useDeepMemo, useLastValueRef, useLastVersion, useThemeColor } from './hooks'
import './style'
import { useDeepMemo, useLastValueRef, useLastVersion, useThemeColor } from './hooks.js'
import './style.js'

const STATUS_BAR_HEIGHT = 20

Expand Down
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { loadLanguage, monaco, updateKeybindings, updateUserConfiguration } from '@codingame/monaco-editor-wrapper'
import { IEditorOptions, IResolvedTextEditorModel } from '@codingame/monaco-vscode-editor-service-override'
import { IReference } from 'vscode/monaco'
import { useThemeColor, useUserConfiguration } from './hooks'
import MonacoEditor, { MonacoEditorProps } from './MonacoEditor'
import type { IReference } from 'vscode/monaco'
import { useThemeColor, useUserConfiguration } from './hooks.js'
import MonacoEditor, { MonacoEditorProps } from './MonacoEditor.js'

export default MonacoEditor
export {
Expand Down
2 changes: 1 addition & 1 deletion src/vscodeParts.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { Fragment, ReactNode, useEffect, useRef, useState } from 'react'
import * as monaco from 'monaco-editor'
import { attachPart, Parts, onPartVisibilityChange, registerCustomView, ViewContainerLocation, CustomViewOption, isPartVisibile } from '@codingame/monaco-vscode-views-service-override/views'
import { attachPart, Parts, onPartVisibilityChange, registerCustomView, ViewContainerLocation, CustomViewOption, isPartVisibile } from '@codingame/monaco-vscode-views-service-override'
import { createPortal } from 'react-dom'
import { initializePromise } from '@codingame/monaco-editor-wrapper'
import { DisposableStore } from 'vscode/monaco'
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"sourceMap": true,
"target": "ES2022"
},
"include": ["src"],
"include": ["src", ".eslintrc.cjs"],
"exclude": [
"dist",
"node_modules"
Expand Down

0 comments on commit a92fbdd

Please sign in to comment.