Skip to content

Commit

Permalink
Prettier on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
robatwilliams committed Dec 15, 2023
1 parent 49792d1 commit bb07af6
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 19 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,22 @@ on:
- 'main'

jobs:
code_quality:
name: Code quality checks
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '20.x'
cache: 'npm'
- run: npm ci
- run: npm run prettier:check

test:
name: Test
runs-on: ubuntu-latest

steps:
Expand Down
12 changes: 6 additions & 6 deletions .prettierrc.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
singleQuote: true
overrides:
- files: '*.md'
options:
printWidth: 120
proseWrap: never
singleQuote: true
overrides:
- files: '*.md'
options:
printWidth: 120
proseWrap: never
6 changes: 3 additions & 3 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"recommendations": ["esbenp.prettier-vscode"]
}
{
"recommendations": ["esbenp.prettier-vscode"]
}
20 changes: 10 additions & 10 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.rulers": [80],
"editor.tabSize": 2,

"files.eol": "\n",
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true,
"files.trimTrailingWhitespace": true
}
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.rulers": [80],
"editor.tabSize": 2,

"files.eol": "\n",
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true,
"files.trimTrailingWhitespace": true
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"main": "index.js",
"scripts": {
"install-certs": "office-addin-dev-certs install --days 3650",
"prettier:check": "prettier --check .",
"sideload:desktop": "office-addin-debugging start manifest-localhost.xml desktop --no-debug",
"start": "http-server --tls --cert ~/.office-addin-dev-certs/localhost.crt --key ~/.office-addin-dev-certs/localhost.key --port 3000 --cors -c-1",
"test": "node --test --require=./testFramework/excelStubs.cjs"
Expand Down

0 comments on commit bb07af6

Please sign in to comment.