Skip to content

Commit

Permalink
Run [ppx_js_style] as a linter
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarbin committed Mar 1, 2024
1 parent e2c7972 commit d1af253
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions dune-project
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
(< v0.17)))
(ppx_js_style
(and
:dev
(>= v0.16)
(< v0.17)))
(ppx_let
Expand Down
2 changes: 1 addition & 1 deletion loc.opam
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ depends: [
"ppx_fields_conv" {>= "v0.16" & < "v0.17"}
"ppx_hash" {>= "v0.16" & < "v0.17"}
"ppx_here" {>= "v0.16" & < "v0.17"}
"ppx_js_style" {>= "v0.16" & < "v0.17"}
"ppx_js_style" {dev & >= "v0.16" & < "v0.17"}
"ppx_let" {>= "v0.16" & < "v0.17"}
"ppx_sexp_conv" {>= "v0.16" & < "v0.17"}
"ppx_sexp_value" {>= "v0.16" & < "v0.17"}
Expand Down
6 changes: 3 additions & 3 deletions src/dune
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
(public_name loc)
(instrumentation
(backend bisect_ppx))
(lint
(pps ppx_js_style -check-doc-comments))
(wrapped false)
(flags :standard -w +a-4-40-41-42-44-45-48-66 -warn-error +a -open Base)
(libraries base fpath stdune)
Expand All @@ -15,6 +17,4 @@
ppx_here
ppx_let
ppx_sexp_conv
ppx_sexp_value
ppx_js_style
-check-doc-comments)))
ppx_sexp_value)))
6 changes: 3 additions & 3 deletions test/dune
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
(libraries loc)
(instrumentation
(backend bisect_ppx))
(lint
(pps ppx_js_style -check-doc-comments))
(preprocess
(pps
ppx_compare
Expand All @@ -14,6 +16,4 @@
ppx_here
ppx_let
ppx_sexp_conv
ppx_sexp_value
ppx_js_style
-check-doc-comments)))
ppx_sexp_value)))

0 comments on commit d1af253

Please sign in to comment.