mirror of
https://github.com/jfmengels/elm-review.git
synced 2024-09-11 08:05:46 +03:00
Re-configure elm-review
This commit is contained in:
parent
5977bb06f2
commit
b3cd4f8ee8
482
package-lock.json
generated
482
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "elm-review",
|
"name": "elm-review-package",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
@ -8,8 +8,8 @@
|
|||||||
"test": "tests"
|
"test": "tests"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "elm make --docs=elm-stuff/docs.json && elm-format src/ --validate && elm-test && elm-xref",
|
"test": "elm make --docs=elm-stuff/docs.json && elm-format src/ --validate && elm-test && elm-review . && elm-xref",
|
||||||
"test:watch": "npm run test -s -- --watch"
|
"test:watch": "npx elm-test --watch"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
@ -22,7 +22,8 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/jfmengels/elm-review#readme",
|
"homepage": "https://github.com/jfmengels/elm-review#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"elm": "^0.19.0-no-deps"
|
"elm": "^0.19.0-no-deps",
|
||||||
|
"elm-review": "^1.0.0-beta.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"elm-format": "^0.8.2",
|
"elm-format": "^0.8.2",
|
||||||
|
@ -8,9 +8,9 @@
|
|||||||
"direct": {
|
"direct": {
|
||||||
"elm/core": "1.0.2",
|
"elm/core": "1.0.2",
|
||||||
"elm/json": "1.1.3",
|
"elm/json": "1.1.3",
|
||||||
"jfmengels/elm-lint": "4.0.0",
|
"jfmengels/elm-review": "1.0.0",
|
||||||
"jfmengels/lint-debug": "1.0.0",
|
"jfmengels/review-debug": "1.0.0",
|
||||||
"jfmengels/lint-unused": "1.0.0"
|
"jfmengels/review-unused": "1.0.0"
|
||||||
},
|
},
|
||||||
"indirect": {
|
"indirect": {
|
||||||
"elm/html": "1.0.0",
|
"elm/html": "1.0.0",
|
||||||
|
@ -20,8 +20,8 @@ module Review exposing
|
|||||||
import Elm.Parser as Parser
|
import Elm.Parser as Parser
|
||||||
import Elm.Processing exposing (init, process)
|
import Elm.Processing exposing (init, process)
|
||||||
import Elm.Syntax.File exposing (File)
|
import Elm.Syntax.File exposing (File)
|
||||||
import Elm.Syntax.Module exposing (Module(..))
|
import Elm.Syntax.Module as Module
|
||||||
import Elm.Syntax.Node as Node exposing (Node)
|
import Elm.Syntax.Node as Node
|
||||||
import Elm.Syntax.Range exposing (Range)
|
import Elm.Syntax.Range exposing (Range)
|
||||||
import Review.Fix exposing (Fix)
|
import Review.Fix exposing (Fix)
|
||||||
import Review.Project exposing (Project)
|
import Review.Project exposing (Project)
|
||||||
@ -100,7 +100,7 @@ moduleName : File -> String
|
|||||||
moduleName file =
|
moduleName file =
|
||||||
file.moduleDefinition
|
file.moduleDefinition
|
||||||
|> Node.value
|
|> Node.value
|
||||||
|> Elm.Syntax.Module.moduleName
|
|> Module.moduleName
|
||||||
|> String.join "."
|
|> String.join "."
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user