Skip to content

Commit

Permalink
chore: add prettier to optionalDependencies (#79)
Browse files Browse the repository at this point in the history
* chore: add prettier to optionalDependencies
* chore: run `yarn lint --write`
  • Loading branch information
sidvishnoi authored Jun 7, 2021
1 parent 37f6962 commit 453bce4
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ jobs:
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- run: npx prettier@2 --check '**/*.{ts,md,yml,json}'
- run: yarn
- run: yarn lint
- run: yarn build --noEmit
4 changes: 2 additions & 2 deletions .pr-preview.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"src_file": "docs/index.html",
"type": "respec"
"src_file": "docs/index.html",
"type": "respec"
}
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ runs:
- name: Set up action
run: |
echo "::group::Set up action"
yarn --cwd ${{ github.action_path }}
yarn --cwd ${{ github.action_path }} --ignore-optional
yarn --cwd ${{ github.action_path }} build
echo "::endgroup::"
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ To get started, do the following:

```yml
# Inside .github/workflows/auto-publish.yml
name: Automatic Publication
name: Automatic Publication

on:
pull_request: {}
Expand Down
2 changes: 1 addition & 1 deletion docs/options.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ A URL to the working group decision to use auto-publish, usually from a w3c mail
- Aria: https://lists.w3.org/Archives/Public/public-html-admin/2015May/0021.html
- Device APIs: https://lists.w3.org/Archives/Public/public-device-apis/2021May/0008.html
- Web Performance: https://lists.w3.org/Archives/Public/public-web-perf/2021Apr/0005.html
- WebAppSec: https://lists.w3.org/Archives/Public/public-webappsec/2015Mar/0170.html
- WebAppSec: https://lists.w3.org/Archives/Public/public-webappsec/2015Mar/0170.html
- Web Payments WG: https://www.w3.org/2016/04/14-wpwg-minutes.html#item02

**Default:** None.
Expand Down
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"subresources": "^1.0.1"
},
"scripts": {
"build": "tsc -p tsconfig.json"
"build": "tsc -p tsconfig.json",
"lint": "prettier '**/*.{ts,md,yml,json}' '!python_modules/**' --check"
},
"devDependencies": {
"@types/finalhandler": "^1.1.0",
Expand All @@ -19,5 +20,9 @@
"@types/split2": "^3.2.0",
"typescript": "^4.3.2",
"yaml": "^1.10.2"
},
"optionalDependencies": {
"prettier": "^2.3.1",
"yaml": "^1.10.2"
}
}
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,11 @@ pkg-dir@4.2.0, pkg-dir@^4.2.0:
dependencies:
find-up "^4.0.0"

prettier@^2.3.1:
version "2.3.1"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.3.1.tgz#76903c3f8c4449bc9ac597acefa24dc5ad4cbea6"
integrity sha512-p+vNbgpLjif/+D+DwAZAbndtRrR0md0MwfmOVN9N+2RgyACMT+7tfaRnT+WDPkqnuVwleyuBIG2XBxKDme3hPA==

progress@2.0.1:
version "2.0.1"
resolved "https://registry.yarnpkg.com/progress/-/progress-2.0.1.tgz#c9242169342b1c29d275889c95734621b1952e31"
Expand Down

0 comments on commit 453bce4

Please sign in to comment.