-
-
Notifications
You must be signed in to change notification settings - Fork 20
Add prettier config #123
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
Add prettier config #123
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
9a2bf49
add prettier config
toger5 b541574
Prettier in test files
toger5 b9737bf
apply prettier
toger5 bb93831
use double quotes in tests as well.
toger5 5e9810f
more 4 tab files
toger5 8368650
use shared config
toger5 ac15148
run prettier
toger5 ccff9cd
move prettier to overwrites
toger5 5b25823
back to 4 spaces
toger5 e7e2488
review
toger5 7b9643e
apply prettier
toger5 8cb34be
Merge branch 'master' into toger5/prettier-config
hughns 3a5f87c
Remove vscode settings.json which only contains a personal preference
hughns 318dcc7
Smaller diff from code review
hughns 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 |
|---|---|---|
| @@ -1,10 +1,5 @@ | ||
| { | ||
| "sourceMaps": true, | ||
| "presets": [ | ||
| "@babel/preset-env", | ||
| "@babel/preset-typescript" | ||
| ], | ||
| "plugins": [ | ||
| "@babel/plugin-proposal-class-properties" | ||
| ] | ||
| "presets": ["@babel/preset-env", "@babel/preset-typescript"], | ||
| "plugins": ["@babel/plugin-proposal-class-properties"] | ||
| } |
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,38 +1,41 @@ | ||
| name: Build and test | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - master | ||
| pull_request: | ||
| push: | ||
| branches: | ||
| - master | ||
| pull_request: | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup Node.js | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| cache: 'yarn' | ||
|
|
||
| - name: Install NPM packages | ||
| run: yarn install --frozen-lockfile | ||
|
|
||
| - name: Check Linting Rules and Types | ||
| run: yarn lint | ||
|
|
||
| - name: test | ||
| run: yarn test --coverage | ||
|
|
||
| - name: Upload coverage | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: coverage | ||
| path: | | ||
| coverage | ||
| !coverage/lcov-report | ||
|
|
||
| - name: build | ||
| run: yarn build | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup Node.js | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| cache: "yarn" | ||
|
|
||
| - name: Install NPM packages | ||
| run: yarn install --frozen-lockfile | ||
|
|
||
| - name: Check Linting Rules and Types | ||
| run: yarn lint | ||
|
|
||
| - name: Check Formatting | ||
| run: yarn prettier:check | ||
|
|
||
| - name: test | ||
| run: yarn test --coverage | ||
|
|
||
| - name: Upload coverage | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: coverage | ||
| path: | | ||
| coverage | ||
| !coverage/lcov-report | ||
|
|
||
| - name: build | ||
| run: yarn build | ||
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,59 +1,59 @@ | ||
| name: Release Automation | ||
| on: | ||
| workflow_dispatch: | ||
| inputs: | ||
| version-bump: | ||
| description: The scale of the version bump required for semver compatibility | ||
| required: true | ||
| default: patch | ||
| type: choice | ||
| options: | ||
| - patch | ||
| - minor | ||
| - major | ||
| workflow_dispatch: | ||
| inputs: | ||
| version-bump: | ||
| description: The scale of the version bump required for semver compatibility | ||
| required: true | ||
| default: patch | ||
| type: choice | ||
| options: | ||
| - patch | ||
| - minor | ||
| - major | ||
| concurrency: release | ||
| permissions: | ||
| contents: write | ||
| contents: write | ||
| jobs: | ||
| release: | ||
| name: "Release & Publish" | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: 🧮 Checkout code | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| token: ${{ secrets.ELEMENT_BOT_TOKEN }} | ||
| release: | ||
| name: "Release & Publish" | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: 🧮 Checkout code | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| token: ${{ secrets.ELEMENT_BOT_TOKEN }} | ||
|
|
||
| - name: 🔧 Set up node environment | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| cache: 'yarn' | ||
| - name: 🔧 Set up node environment | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| cache: "yarn" | ||
|
|
||
| - name: 🛠️ Setup | ||
| run: yarn install --pure-lockfile | ||
| - name: 🛠️ Setup | ||
| run: yarn install --pure-lockfile | ||
|
|
||
| - name: 👊 Bump version | ||
| run: | | ||
| yarn version --no-git-tag-version --${{ github.event.inputs.version-bump }} | ||
| git config --global user.name 'ElementRobot' | ||
| git config --global user.email '[email protected]' | ||
| git commit -am "${{ github.event.inputs.version-bump }} version bump" | ||
| git push | ||
| - name: 👊 Bump version | ||
| run: | | ||
| yarn version --no-git-tag-version --${{ github.event.inputs.version-bump }} | ||
| git config --global user.name 'ElementRobot' | ||
| git config --global user.email '[email protected]' | ||
| git commit -am "${{ github.event.inputs.version-bump }} version bump" | ||
| git push | ||
|
|
||
| - name: 📖 Build lib | ||
| run: yarn build | ||
| - name: 📖 Build lib | ||
| run: yarn build | ||
|
|
||
| - name: 🚀 Publish to npm | ||
| id: npm-publish | ||
| uses: JS-DevTools/npm-publish@v3 | ||
| with: | ||
| token: ${{ secrets.NPM_TOKEN }} | ||
| access: public | ||
| - name: 🚀 Publish to npm | ||
| id: npm-publish | ||
| uses: JS-DevTools/npm-publish@v3 | ||
| with: | ||
| token: ${{ secrets.NPM_TOKEN }} | ||
| access: public | ||
|
|
||
| - name: 🧬 Create release | ||
| uses: softprops/action-gh-release@v2 | ||
| with: | ||
| tag_name: v${{ steps.npm-publish.outputs.version }} | ||
| body: ${{ steps.npm-publish.outputs.version }} Release | ||
| draft: false | ||
| prerelease: false | ||
| - name: 🧬 Create release | ||
| uses: softprops/action-gh-release@v2 | ||
| with: | ||
| tag_name: v${{ steps.npm-publish.outputs.version }} | ||
| body: ${{ steps.npm-publish.outputs.version }} Release | ||
| draft: false | ||
| prerelease: false |
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 @@ | ||
| module.exports = require("eslint-plugin-matrix-org/.prettierrc.js"); |
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
Oops, something went wrong.
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.