Updates prettier configuration and adds prettier workflow
This commit is contained in:
parent
dc8bb0eed7
commit
9ec96d6393
4 changed files with 27 additions and 14 deletions
28
.github/workflows/ci.yml
vendored
28
.github/workflows/ci.yml
vendored
|
@ -24,20 +24,20 @@ jobs:
|
||||||
# run: npm ci
|
# run: npm ci
|
||||||
# - name: Run linter
|
# - name: Run linter
|
||||||
# run: npm run lint:report
|
# run: npm run lint:report
|
||||||
# prettier:
|
prettier:
|
||||||
# name: Prettier
|
name: Prettier
|
||||||
# runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# steps:
|
steps:
|
||||||
# - uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
# - name: Use Node.js 16.13.1
|
- name: Use Node.js 16.13.1
|
||||||
# uses: actions/setup-node@v2
|
uses: actions/setup-node@v2
|
||||||
# with:
|
with:
|
||||||
# node-version: 16.13.1
|
node-version: 16.13.1
|
||||||
# cache: "npm"
|
cache: "npm"
|
||||||
# - name: Install npm dependencies
|
- name: Install npm dependencies
|
||||||
# run: npm ci
|
run: npm ci
|
||||||
# - name: Run prettier check
|
- name: Run prettier check
|
||||||
# run: npm run format:report
|
run: npm run format:report
|
||||||
test:
|
test:
|
||||||
name: Test
|
name: Test
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
2
.prettierignore
Normal file
2
.prettierignore
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
node_modules
|
||||||
|
dist
|
10
.vscode/settings.json
vendored
Normal file
10
.vscode/settings.json
vendored
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
{
|
||||||
|
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
||||||
|
"editor.formatOnSave": true,
|
||||||
|
"[typescript]": {
|
||||||
|
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||||
|
},
|
||||||
|
"[jsonc]": {
|
||||||
|
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||||
|
}
|
||||||
|
}
|
|
@ -7,6 +7,7 @@
|
||||||
"main": "./npx/bitburner-filesync.ts",
|
"main": "./npx/bitburner-filesync.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"format": "prettier -w .",
|
"format": "prettier -w .",
|
||||||
|
"format:report": "prettier -c .",
|
||||||
"test:all": "mocha --recursive test",
|
"test:all": "mocha --recursive test",
|
||||||
"test:single": "mocha",
|
"test:single": "mocha",
|
||||||
"start": "npx/bitburner-filesync.ts"
|
"start": "npx/bitburner-filesync.ts"
|
||||||
|
|
Loading…
Add table
Reference in a new issue