Skip to content

Commit a450c4d

Browse files
committed
chore: setup prettier
1 parent fc42fcb commit a450c4d

File tree

4 files changed

+50
-0
lines changed

4 files changed

+50
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: CI
2+
on:
3+
push:
4+
branches: [main]
5+
pull_request:
6+
branches: [main]
7+
workflow_dispatch:
8+
jobs:
9+
lint:
10+
name: Lint
11+
runs-on: ubuntu-18.04
12+
steps:
13+
- name: Check out code
14+
uses: actions/checkout@v2
15+
16+
- name: Setup Node.js environment
17+
uses: actions/setup-node@v2
18+
with:
19+
node-version: 16
20+
cache: "yarn"
21+
22+
- name: Install dependencies
23+
run: yarn
24+
25+
- name: Check formatting
26+
run: yarn prettier

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

package.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"name": "docs-v4",
3+
"version": "0.0.0",
4+
"description": "Venus V4 documentation",
5+
"repository": "[email protected]:VenusProtocol/docs-v4.git",
6+
"author": "Venus",
7+
"license": "ISC",
8+
"scripts": {
9+
"prettier": "prettier --write \"**/*.{md,yaml}\"",
10+
"prettier:check": "prettier --check \"**/*.{md,yaml}\""
11+
},
12+
"devDependencies": {
13+
"prettier": "^2.7.1"
14+
}
15+
}

yarn.lock

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
2+
# yarn lockfile v1
3+
4+
5+
prettier@^2.7.1:
6+
version "2.7.1"
7+
resolved "https://registry.npmjs.org/prettier/-/prettier-2.7.1.tgz#e235806850d057f97bb08368a4f7d899f7760c64"
8+
integrity sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g==

0 commit comments

Comments
 (0)