You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using version 2.23.1 I'm getting the following error:
TypeError: Cannot read property 'type' of null
Occurred while linting P:\HexEd.it\src\ts\context\editors\index.tsx:23
at isExportNameClass (P:\linter-bundle\node_modules\eslint-plugin-import\lib\rules\newline-after-import.js:51:69)
at checkForNewLine (P:\linter-bundle\node_modules\eslint-plugin-import\lib\rules\newline-after-import.js:79:45)
at checkImport (P:\linter-bundle\node_modules\eslint-plugin-import\lib\rules\newline-after-import.js:133:9)
at P:\linter-bundle\node_modules\eslint\lib\linter\timing.js:142:13
at P:\linter-bundle\node_modules\eslint\lib\linter\safe-emitter.js:45:58
at Array.forEach (<anonymous>)
at Object.emit (P:\linter-bundle\node_modules\eslint\lib\linter\safe-emitter.js:45:38)
at NodeEventGenerator.applySelector (P:\linter-bundle\node_modules\eslint\lib\linter\node-event-generator.js:256:26)
at NodeEventGenerator.applySelectors (P:\linter-bundle\node_modules\eslint\lib\linter\node-event-generator.js:285:22)
at NodeEventGenerator.enterNode (P:\linter-bundle\node_modules\eslint\lib\linter\node-event-generator.js:299:14)
The source file (P:\HexEd.it\src\ts\context\editors\index.tsx) looks like this:
/**
* ...
* ...
* ...
* ...
* ...
*/
import * as Sentry from '@sentry/browser';
import type { EditorOptions, ContextMenuData, CursorChangeData, DataChangeData, InvalidUserInputData, SizeChangeData, InternalEventData, LayoutOptions } from 'hexedit';
import { Editor, BlobDataProvider } from 'hexedit';
import * as React from 'react';
import type { I18N } from '@context/i18n';
import type { Settings } from '@context/settings';
import { withContext } from '@context/withContext';
import * as IntelHexHelper from '@helper/IntelHex';
import * as MotorolaSRecordHelper from '@helper/MotorolaSRecord';
import * as RevertNativeMethodOverridesHelper from '@helper/RevertNativeMethodOverrides';
import * as TypedArrayHelper from '@helper/TypedArray';
import * as Utils from '@utils';
import styles from './styles.module.scss'; // This is line 23
export { default as editorsStyles } from './styles.module.scss';
(See the comment // This is line 23 for the errornous line)
The configuration of the newline-after-import rule looks like this:
'import/newline-after-import': 'error',
The text was updated successfully, but these errors were encountered:
Using version
2.23.1
I'm getting the following error:The source file (P:\HexEd.it\src\ts\context\editors\index.tsx) looks like this:
(See the comment
// This is line 23
for the errornous line)The configuration of the
newline-after-import
rule looks like this:The text was updated successfully, but these errors were encountered: