mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-12-23 11:55:41 +03:00
Add rules and remove some Debug functions.
This commit is contained in:
parent
e38c3bda3e
commit
8572a54b6e
@ -11,6 +11,7 @@
|
||||
"elm/project-metadata-utils": "1.0.2",
|
||||
"jfmengels/elm-review": "2.4.2",
|
||||
"jfmengels/elm-review-common": "1.0.4",
|
||||
"jfmengels/elm-review-debug": "1.0.6",
|
||||
"jfmengels/elm-review-performance": "1.0.0",
|
||||
"jfmengels/elm-review-unused": "1.1.11",
|
||||
"sparksp/elm-review-imports": "1.0.1",
|
||||
|
@ -11,6 +11,8 @@ when inside the directory containing this file.
|
||||
|
||||
-}
|
||||
|
||||
import NoDebug.Log
|
||||
import NoDebug.TodoOrToString
|
||||
import NoExposingEverything
|
||||
import NoImportingEverything
|
||||
import NoInconsistentAliases
|
||||
@ -91,6 +93,10 @@ config =
|
||||
]
|
||||
, NoUnoptimizedRecursion.rule (NoUnoptimizedRecursion.optOutWithComment "known-unoptimized-recursion")
|
||||
|> ignoreInTest
|
||||
, NoDebug.Log.rule
|
||||
|> ignoreInTest
|
||||
, NoDebug.TodoOrToString.rule
|
||||
|> ignoreInTest
|
||||
]
|
||||
|> List.map
|
||||
(\rule ->
|
||||
|
@ -95,7 +95,7 @@ document pathPatterns payload =
|
||||
|
||||
_ ->
|
||||
[ Html.text "Page not found"
|
||||
, Html.text <| Debug.toString payload
|
||||
, Html.text <| "TODO"
|
||||
]
|
||||
)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user