Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

Handle fatal syntax errors gracefully #911

Merged
merged 1 commit into from
May 18, 2017
Merged

Handle fatal syntax errors gracefully #911

merged 1 commit into from
May 18, 2017

Conversation

steelbrain
Copy link
Contributor

@steelbrain steelbrain commented May 18, 2017

ESLint outputs context in the most recent versions which is useless inside Atom

Can be seen in a lot of issues across the repos, steelbrain/linter-ui-default#309 is the most recent one

CHANGELOG.md Outdated
@@ -1,5 +1,9 @@
# Changelog

## Upcoming
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changelog here is generated automatically during release, so this should be removed.

@@ -1,7 +1,7 @@
'use babel'

import * as Path from 'path'
import * as Helpers from '../src/worker-helpers'
import * as Helpers from '../src/worker/helpers'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no need to rearrange the files here.

src/helpers.js Outdated
}) => {
const message = fatal ? originalMessage.split('\n').shift() : originalMessage
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since the Array being created here is being discarded within the same command, just do [0] on the end, it's clearer what the intent is.

@Arcanemagus Arcanemagus merged commit 5a0245d into AtomLinter:master May 18, 2017
@steelbrain steelbrain deleted the steelbrain/handle-syntax-errors branch May 18, 2017 18:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants