Skip to content
This repository has been archived by the owner on Nov 15, 2024. It is now read-only.

Add option to resolve elm-format binary from local project directory #26

Closed
wants to merge 3 commits into from

Conversation

MethodGrab
Copy link

I have different projects that use different versions of elm-format. This new option will help avoid formatting with the wrong version by checking for an elm-format binary in the project's local node_modules folder.

The linting fixes might also fix #24.

@MethodGrab MethodGrab force-pushed the use-local-binary branch 2 times, most recently from 8b18f2c to b8c3f08 Compare July 25, 2018 12:40
@SidneyNemzer
Copy link

SidneyNemzer commented Oct 9, 2018

It would be great to get this feature merged, I could really use it while transitioning from 0.18 to 0.19 (some projects use different versions of elm-format)

@MethodGrab
Copy link
Author

If you want to use my fork you can install it like so:

  1. cd ~/code && git clone [email protected]:MethodGrab/atom-elm-format.git && cd atom-elm-format && git checkout use-local-binary && npm install && apm uninstall elm-format && apm link
    (~/code can be any directory you want)
  2. Atom -> Settings -> Packages -> elm-format -> Settings -> [x] Prefer local binary

@anagrius
Copy link
Contributor

I am closing this PR, if you feel it is still relevant please reopen it.

@anagrius anagrius closed this Oct 20, 2020
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.

Uncaught ReferenceError: errorLineNum is not defined
3 participants