Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/r-k-b/no-long-import-lines
A rule for elm-review that discourages long one-line Imports.
https://github.com/r-k-b/no-long-import-lines
Last synced: about 1 month ago
JSON representation
A rule for elm-review that discourages long one-line Imports.
- Host: GitHub
- URL: https://github.com/r-k-b/no-long-import-lines
- Owner: r-k-b
- License: bsd-3-clause
- Created: 2020-03-07T02:56:22.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-06-17T01:41:17.000Z (7 months ago)
- Last Synced: 2024-06-17T02:45:57.422Z (7 months ago)
- Language: Elm
- Homepage: https://package.elm-lang.org/packages/r-k-b/no-long-import-lines/latest/
- Size: 113 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# NoLongImportLines
![.github/workflows/build.yml](https://github.com/r-k-b/no-long-import-lines/workflows/.github/workflows/build.yml/badge.svg)
A rule for elm-review that discourages keeping very long one-line `import`
statements.Some Elm tools will change multi-line import statements back to a single line
when modifying the `exposing ()` section.## Usage
After adding [`elm-review`][elm-review] to your project, import this rule from
your `ReviewConfig.elm` file and add it to the config. E.g.:```elm
import NoLongImportLines
import Review.Rule exposing (Rule)config : List Rule
config =
[ NoLongImportLines.rule ]
```[elm-review]: https://package.elm-lang.org/packages/jfmengels/elm-review/latest/
## Roadmap
- [ ] Save users from users having to manually break up the line, by adding a [`fix`][fix]
[fix]: https://package.elm-lang.org/packages/jfmengels/elm-review/latest/Review-Fix