linter-elm-make

0.6.0 • Public • Published

linter-elm-make

Lint your Elm files in Atom with linter and elm-make.

Installation

  1. Install elm.
  2. $ apm install linter
  3. $ apm install language-elm
  4. $ apm install linter-elm-make
  5. $ which elm-make and set that as your executable path in this installed package's configuration.

Quick Fixes

Move your cursor to a problematic text range and choose Linter Elm Make: Quick Fix from the command palette to show the possible fixes. Select a fix from the list to apply it to your code.

quick-fix

Choosing Linter Elm Make: Quick Fix All will fix all the issues in the active text editor. If there is more than one fix for an issue, it will choose the first from the list.

You may also add something like this in your keymap.cson:

'atom-text-editor:not([mini])[data-grammar^="source elm"]':
  'f6': 'linter-elm-make:quick-fix'
  'shift-f6': 'linter-elm-make:quick-fix-all'

'.linter-elm-make atom-text-editor[mini]':
    'f6': 'core:confirm'

Prior Art

The boilerplate code here is repurposed from linter-hlint. Much thanks to its contributors.

Readme

Keywords

none

Package Sidebar

Install

npm i linter-elm-make

Weekly Downloads

1

Version

0.6.0

License

MIT

Last publish

Collaborators

  • splodingsocks