-
Notifications
You must be signed in to change notification settings - Fork 6.1k
refactor: update prettier and doctoc #5605
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
f18a86d
docs: add toc to CODE OF CONDUCT
jsjoeio dade3dd
chore: add prettier ignore blocks to docs
jsjoeio 4827f81
chore: update styles for Dockerfile
jsjoeio 9825c13
refactor: separate prettier, doctoc
jsjoeio d8c6c01
refactor: update prettier job, add doctoc
jsjoeio c8bbb65
Merge branch 'main' into jsjoeio/prettier-fixes
jsjoeio 9e14d07
Merge branch 'main' into jsjoeio/prettier-fixes
jsjoeio 97f1399
chore: upgrade to prettier 2.7.1
jsjoeio fd4f413
chore: pin doctoc to 2.0.0
jsjoeio ccb0ea3
fixup!: add .pc to prettierignore
jsjoeio 73328a7
feat: add --cache to prettier cmd
jsjoeio d00d3ea
Merge branch 'main' into jsjoeio/prettier-fixes
jsjoeio File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,34 +22,47 @@ concurrency: | |
# will skip running `yarn install` if it successfully fetched from cache | ||
|
||
jobs: | ||
fmt: | ||
prettier: | ||
name: Format with Prettier | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 5 | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v3 | ||
|
||
- name: Run prettier with actionsx/prettier | ||
uses: actionsx/prettier@v2 | ||
with: | ||
args: --check --loglevel=warn . | ||
|
||
doctoc: | ||
code-asher marked this conversation as resolved.
Show resolved
Hide resolved
|
||
name: Doctoc markdown files | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 5 | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v3 | ||
|
||
- name: Get changed files | ||
id: changed-files | ||
uses: tj-actions/[email protected] | ||
with: | ||
files: | | ||
docs/** | ||
|
||
- name: Install Node.js v16 | ||
if: steps.changed-files.outputs.any_changed == 'true' | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "16" | ||
cache: "yarn" | ||
|
||
- name: Fetch dependencies from cache | ||
id: cache-node-modules | ||
uses: actions/cache@v3 | ||
with: | ||
path: "**/node_modules" | ||
key: yarn-build-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: | | ||
yarn-build- | ||
|
||
- name: Install dependencies | ||
if: steps.cache-node-modules.outputs.cache-hit != 'true' | ||
run: SKIP_SUBMODULE_DEPS=1 yarn --frozen-lockfile | ||
- name: Install doctoc | ||
run: yarn global add [email protected] | ||
jsjoeio marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
- name: Format files with Prettier | ||
run: yarn fmt | ||
- name: Run doctoc | ||
if: steps.changed-files.outputs.any_changed == 'true' | ||
run: yarn doctoc | ||
|
||
lint-helm: | ||
name: Lint Helm chart | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
lib/vscode | ||
lib/vscode | ||
helm-chart | ||
test/scripts | ||
test/e2e/extensions/test-extension | ||
.pc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -952,16 +952,16 @@ dir-glob@^3.0.1: | |
dependencies: | ||
path-type "^4.0.0" | ||
|
||
doctoc@^2.0.0: | ||
version "2.0.1" | ||
resolved "https://registry.yarnpkg.com/doctoc/-/doctoc-2.0.1.tgz#d5aee2bce65a438ff8717d9e51df3d540caa3b78" | ||
integrity sha512-JsxnSVZtLCThKehjFPBDhP1+ZLmdfXQynZH/0ABAwrnd1Zf3AV6LigC9oWJyaZ+c6RXCDnlGUNJ7I+1v8VaaRg== | ||
[email protected]: | ||
version "2.0.0" | ||
resolved "https://registry.yarnpkg.com/doctoc/-/doctoc-2.0.0.tgz#3c5c51ba89acb9b8e1924cc429500d6de2dfb90e" | ||
integrity sha512-thvCndtwVPe3GCDUG09NYPu9D72Ons3MFh/Fe5A3bePMHGa1XSMgJWyL04bkxa0DyyaylEB2UrqigbQM0fcj7w== | ||
dependencies: | ||
"@textlint/markdown-to-ast" "~6.1.7" | ||
anchor-markdown-header "~0.5.7" | ||
htmlparser2 "~4.1.0" | ||
minimist "~1.2.5" | ||
underscore "~1.12.1" | ||
underscore "~1.10.2" | ||
update-section "~0.3.3" | ||
|
||
doctrine@^2.1.0: | ||
|
@@ -2583,10 +2583,10 @@ prettier-plugin-sh@^0.12.0: | |
dependencies: | ||
mvdan-sh "^0.10.1" | ||
|
||
prettier@^2.2.1: | ||
version "2.3.2" | ||
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.3.2.tgz#ef280a05ec253712e486233db5c6f23441e7342d" | ||
integrity sha512-lnJzDfJ66zkMy58OL5/NY5zp70S7Nz6KqcKkXYzn2tMVrNxvbqaBpg7H3qHaLxCJ5lNMsGuM8+ohS7cZrthdLQ== | ||
prettier@2.7.1: | ||
version "2.7.1" | ||
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.7.1.tgz#e235806850d057f97bb08368a4f7d899f7760c64" | ||
integrity sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g== | ||
|
||
progress@^2.0.0: | ||
version "2.0.3" | ||
|
@@ -3288,7 +3288,7 @@ unbox-primitive@^1.0.0: | |
has-symbols "^1.0.2" | ||
which-boxed-primitive "^1.0.2" | ||
|
||
underscore@^1.13.1, underscore@~1.12.1: | ||
underscore@^1.13.1, underscore@~1.10.2: | ||
version "1.13.1" | ||
resolved "https://registry.yarnpkg.com/underscore/-/underscore-1.13.1.tgz#0c1c6bd2df54b6b69f2314066d65b6cde6fcf9d1" | ||
integrity sha512-hzSoAVtJF+3ZtiFX0VgfFPHEDRm7Y/QPjGyNo4TVdnDTdft3tr8hEkD25a1jC+TjTuE7tkHGKkhwCgs9dgBB2g== | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.