Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

linter-elm-make

Lint Elm code with elm-make

readme

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.

changelog

0.3.0

  • Don't output a file on compilation.

0.2.0

  • Use JavaScript instead of CoffeeScript.
  • Warn the user if they're missing prerequisite packages.

0.1.1

  • Update the README to credit linter-hlint.
  • Update the README to note that one needs the language-elm package.
  • Remove some unnecessary startup code.

0.1.0 - First Release

  • Every feature added
  • Every bug fixed