Make example easier to use

This commit is contained in:
Jeroen Engels 2018-11-06 13:08:20 +01:00
parent d265e09d06
commit 4be496579c
5 changed files with 7 additions and 12318 deletions

1
.gitignore vendored
View File

@ -2,3 +2,4 @@ elm-stuff
example/elm.js
*.log
node_modules/
example/index.html

View File

@ -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 []

View File

@ -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"
}
},

File diff suppressed because it is too large Load Diff

View File

@ -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.