mirror of
https://github.com/jfmengels/elm-review.git
synced 2024-12-23 09:42:49 +03:00
Make example easier to use
This commit is contained in:
parent
d265e09d06
commit
4be496579c
1
.gitignore
vendored
1
.gitignore
vendored
@ -2,3 +2,4 @@ elm-stuff
|
||||
example/elm.js
|
||||
*.log
|
||||
node_modules/
|
||||
example/index.html
|
||||
|
@ -4,7 +4,7 @@ module Main exposing (main)
|
||||
|
||||
import Browser
|
||||
import Html exposing (..)
|
||||
import Html.Attributes exposing (class, id)
|
||||
import Html.Attributes exposing (class, id, style)
|
||||
import Html.Events exposing (onInput)
|
||||
import Lint exposing (lintSource)
|
||||
import Lint.Rules.NoDebug
|
||||
@ -93,6 +93,8 @@ view model =
|
||||
, textarea
|
||||
[ id "input"
|
||||
, onInput Replace
|
||||
, style "height" "500px"
|
||||
, style "width" "500px"
|
||||
]
|
||||
[ text model ]
|
||||
, div []
|
||||
|
@ -1,6 +1,7 @@
|
||||
{
|
||||
"type": "application",
|
||||
"source-directories": [
|
||||
"../src",
|
||||
"."
|
||||
],
|
||||
"elm-version": "0.19.0",
|
||||
@ -9,11 +10,10 @@
|
||||
"elm/browser": "1.0.1",
|
||||
"elm/core": "1.0.0",
|
||||
"elm/html": "1.0.0",
|
||||
"elm/json": "1.0.0",
|
||||
"elm/regex": "1.0.0",
|
||||
"jfmengels/elm-lint": "3.0.0"
|
||||
"stil4m/elm-syntax": "7.0.2"
|
||||
},
|
||||
"indirect": {
|
||||
"elm/json": "1.0.0",
|
||||
"elm/parser": "1.1.0",
|
||||
"elm/time": "1.0.0",
|
||||
"elm/url": "1.0.0",
|
||||
@ -22,7 +22,6 @@
|
||||
"elm-community/list-extra": "8.1.0",
|
||||
"rtfeldman/elm-hex": "1.0.0",
|
||||
"rtfeldman/elm-iso8601-date-strings": "1.1.2",
|
||||
"stil4m/elm-syntax": "7.0.2",
|
||||
"stil4m/structured-writer": "1.0.2"
|
||||
}
|
||||
},
|
||||
|
12312
example/index.html
12312
example/index.html
File diff suppressed because it is too large
Load Diff
@ -52,7 +52,6 @@ import Elm.Syntax.File exposing (File)
|
||||
import Elm.Syntax.Node exposing (Node)
|
||||
import Lint.Types exposing (Direction, LintError, LintImplementation, LintRule, LintRuleImplementation, Severity(..), Visitor)
|
||||
import Lint.Visitor exposing (expressionToVisitors, transformDeclarationsIntoVisitors)
|
||||
import Regex
|
||||
|
||||
|
||||
{-| Lints a file and gives back the errors raised by the given rules.
|
||||
|
Loading…
Reference in New Issue
Block a user