-
Notifications
You must be signed in to change notification settings - Fork 12
Prettier Usage #141
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
Prettier Usage #141
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
b5df402
add dependencies and config files
egekorkan cc179c1
run format
egekorkan ba30a56
fix prettier version
egekorkan 2bb6c31
devops: add basic ci workflow with prettier
egekorkan 0ac2c8f
chore: run format
egekorkan c664e10
chore: rerun npm install
egekorkan a92dec8
chore: run format
egekorkan fef6879
chore: fix prettier to 3.3.3
egekorkan e265771
fix: correct file extension
egekorkan 01865d9
add gitattributes file
egekorkan 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 |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| # Set default behaviour, in case users don't have core.autocrlf set. | ||
| * text=auto | ||
|
|
||
| # Explicitly declare text files we want to always be normalized and converted | ||
| # to native line endings on checkout. | ||
|
|
||
| # Declare files that will always have LF line endings on checkout. | ||
| *.c text eol=lf | ||
| *.css text eol=lf | ||
| *.cpp text eol=lf | ||
| .editorconfig text eol=lf | ||
| .gitattributes text eol=lf | ||
| .gitignore text eol=lf | ||
| .gitmodules text eol=lf | ||
| *.gyp text eol=lf | ||
| *.h text eol=lf | ||
| *.hpp text eol=lf | ||
| *.html text eol=lf | ||
| *.js text eol=lf | ||
| *.ts text eol=lf | ||
| *.json text eol=lf | ||
| LICENSE text eol=lf | ||
| *.md text eol=lf | ||
| *.puml text eol=lf | ||
| *.svg text eol=lf | ||
| *.sh text eol=lf | ||
| *.sparql text eol=lf | ||
| *.ttl text eol=lf | ||
| *.yml text eol=lf | ||
|
|
||
| # Declare files that will always have CRLF line endings on checkout. | ||
| *.bat text eol=crlf | ||
| *.cmd text eol=crlf | ||
|
|
||
| # Denote all files that are truly binary and should not be modified. | ||
| *.gif binary | ||
| *.jpg binary | ||
| *.node binary | ||
| *.png binary |
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 |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| name: Default CI Pipeline | ||
|
|
||
| on: | ||
| push: | ||
| branches: [master] | ||
| pull_request: | ||
| branches: [master] | ||
| workflow_dispatch: | ||
| jobs: | ||
| setup: | ||
| name: Install dependencies and run build | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
| - name: Install | ||
| run: npm ci | ||
| - name: Build | ||
| run: npm run build | ||
| prettier: | ||
| name: Check coding style | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: Nerixyz/actionsx-prettier@v3-adj | ||
| with: | ||
| args: --check . |
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 |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| package-lock.json | ||
| .docusaurus | ||
| node_modules | ||
| build | ||
| .nyc_output |
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 |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| { | ||
| "trailingComma": "es5", | ||
| "printWidth": 120, | ||
| "singleQuote": false, | ||
| "tabWidth": 4, | ||
| "endOfLine": "lf" | ||
| } | ||
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 |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| module.exports = { | ||
| presets: [require.resolve('@docusaurus/core/lib/babel/preset')], | ||
| }; | ||
| presets: [require.resolve("@docusaurus/core/lib/babel/preset")], | ||
| }; |
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,10 +1,11 @@ | ||
| --- | ||
| sidebar_position: 1 | ||
| --- | ||
|
|
||
| # Introduction | ||
|
|
||
| :::info | ||
|
|
||
| For the moment the documentation page is still under construction. For more information about Thingweb and node-wot refer to this [`repository`](https://github.com/eclipse-thingweb/node-wot). | ||
|
|
||
| ::: | ||
| ::: |
Oops, something went wrong.
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.