Skip to content

Commit e1f5056

Browse files
committed
Format with Prettier
1 parent 5628a75 commit e1f5056

7 files changed

Lines changed: 17 additions & 10 deletions

File tree

Ghalactic/CurlyQuotes.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ level: error
55
nonword: true
66
tokens: []
77
raw:
8-
- '[‘’“”]'
8+
- "[‘’“”]"

Ghalactic/Ellipsis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ level: error
55
nonword: true
66
tokens: []
77
raw:
8-
- ''
8+
- ""

Ghalactic/EnDash.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ level: error
55
nonword: true
66
tokens: []
77
raw:
8-
- ''
8+
- ""

Ghalactic/Exclamation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ action:
99
- trim_right
1010
- "!"
1111
raw:
12-
- '[a-zA-Z]+!'
12+
- "[a-zA-Z]+!"

Ghalactic/HeadingEndPunctuation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ level: error
55
scope: heading
66
nonword: true
77
raw:
8-
- '[.;:!?]$'
8+
- "[.;:!?]$"

Makefile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ VALE_FLAGS := --config=testdata/.vale.ini --no-wrap
33

44
FIXTURES := $(wildcard testdata/pass/*.md testdata/fail/*.md)
55

6-
.PHONY: test test-snapshots test-self update-snapshots lint bump-version
6+
.PHONY: test test-snapshots test-self update-snapshots lint prettier bump-version precommit
77

88
test: test-snapshots test-self
99

@@ -43,3 +43,10 @@ test-self:
4343

4444
bump-version:
4545
@bash scripts/bump-version.sh
46+
47+
prettier:
48+
@npx -y prettier --write .
49+
50+
lint: bump-version prettier
51+
52+
precommit: lint test

testdata/pass/suppressed.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ This document shows how to suppress rules with inline comments.
44

55
## Overview
66

7-
The API lets you manage resources. You can create, read, update, and
8-
delete items with simple calls.
7+
The API lets you manage resources. You can create, read, update, and delete
8+
items with simple calls.
99

1010
<!-- vale Ghalactic.Will = NO -->
1111

@@ -15,5 +15,5 @@ In a future release, the API will support batch operations.
1515

1616
## Authentication
1717

18-
To log in, send a POST request to the `/auth` endpoint. The server
19-
returns a token that you include in later requests.
18+
To log in, send a POST request to the `/auth` endpoint. The server returns a
19+
token that you include in later requests.

0 commit comments

Comments
 (0)