Fixes lint issue #2

Closed
puneeth8994 wants to merge 1 commit from lint-fix into main
puneeth8994 commented 2021-05-24 16:07:35 +02:00 (Migrated from github.com)

labeled loop causes build to break.

babel doesn't seem to understand "if statement followed by label loop" and throws the following error -

node_modules/@codemirror/lint/dist/index.js: Property body expected type of array but got null

The suggested PR fixes this by adding curly braces to the if statement.

labeled loop causes build to break. babel doesn't seem to understand "if statement followed by label loop" and throws the following error - `node_modules/@codemirror/lint/dist/index.js: Property body expected type of array but got null` The suggested PR fixes this by adding curly braces to the if statement.
marijnh commented 2021-05-24 17:08:06 +02:00 (Migrated from github.com)

I think you should file this as a Babel bug, since that's where the problem lies. Have you tried?

I think you should file this as a Babel bug, since that's where the problem lies. Have you tried?
vidhlakh commented 2021-07-21 19:57:03 +02:00 (Migrated from github.com)

Getting the same error in react making use codemirror/lint
node_modules/@codemirror/lint/dist/index.js: Property body expected type of array but got null
Need to make use of this library. May I know the fix?

Getting the same error in react making use codemirror/lint node_modules/@codemirror/lint/dist/index.js: Property body expected type of array but got null Need to make use of this library. May I know the fix?
puneeth8994 commented 2021-07-21 20:29:17 +02:00 (Migrated from github.com)

@vidhlakh Upgrading babel fixed it for me.

@vidhlakh Upgrading babel fixed it for me.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
codemirror/lint!2
No description provided.