mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-12-23 20:03:31 +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",
|
"elm/project-metadata-utils": "1.0.2",
|
||||||
"jfmengels/elm-review": "2.4.2",
|
"jfmengels/elm-review": "2.4.2",
|
||||||
"jfmengels/elm-review-common": "1.0.4",
|
"jfmengels/elm-review-common": "1.0.4",
|
||||||
|
"jfmengels/elm-review-debug": "1.0.6",
|
||||||
"jfmengels/elm-review-performance": "1.0.0",
|
"jfmengels/elm-review-performance": "1.0.0",
|
||||||
"jfmengels/elm-review-unused": "1.1.11",
|
"jfmengels/elm-review-unused": "1.1.11",
|
||||||
"sparksp/elm-review-imports": "1.0.1",
|
"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 NoExposingEverything
|
||||||
import NoImportingEverything
|
import NoImportingEverything
|
||||||
import NoInconsistentAliases
|
import NoInconsistentAliases
|
||||||
@ -91,6 +93,10 @@ config =
|
|||||||
]
|
]
|
||||||
, NoUnoptimizedRecursion.rule (NoUnoptimizedRecursion.optOutWithComment "known-unoptimized-recursion")
|
, NoUnoptimizedRecursion.rule (NoUnoptimizedRecursion.optOutWithComment "known-unoptimized-recursion")
|
||||||
|> ignoreInTest
|
|> ignoreInTest
|
||||||
|
, NoDebug.Log.rule
|
||||||
|
|> ignoreInTest
|
||||||
|
, NoDebug.TodoOrToString.rule
|
||||||
|
|> ignoreInTest
|
||||||
]
|
]
|
||||||
|> List.map
|
|> List.map
|
||||||
(\rule ->
|
(\rule ->
|
||||||
|
@ -95,7 +95,7 @@ document pathPatterns payload =
|
|||||||
|
|
||||||
_ ->
|
_ ->
|
||||||
[ Html.text "Page not found"
|
[ Html.text "Page not found"
|
||||||
, Html.text <| Debug.toString payload
|
, Html.text <| "TODO"
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user