Skip to content

Commit

Permalink
feat: add Prettier config
Browse files Browse the repository at this point in the history
  • Loading branch information
marcusrbrown committed Aug 17, 2024
1 parent 2771b72 commit 003cf7a
Show file tree
Hide file tree
Showing 6 changed files with 60 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .dotfiles/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
!/.bashrc
!/.editorconfig
!/.gitattributes
!/.prettierignore
!/.prettierrc.yaml
!/.profile
!/.vimrc
!/.zshenv
Expand Down
21 changes: 17 additions & 4 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"local>marcusrbrown/renovate-config"
]
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
extends: ['github>marcusrbrown/renovate-config#v2'],
packageRules: [
{
description: 'Enable SemVer pinning of @bfra-me GitHub actions, reusable workflows, and Renovate config presets.',
matchDatasources: ['github-tags'],
matchPackageNames: ['bfra-me/**'],
updatePinnedDependencies: false,
},
{
description: 'Enable SemVer pinning of @bfra-me GitHub actions, reusable workflows, and Renovate config presets.',
matchDatasources: ['github-tags'],
matchPackageNames: ['bfra-me/**'],
matchUpdateTypes: ['major'],
updatePinnedDependencies: true,
},
],
}
35 changes: 35 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
name: Main

'on':
merge_group:
push:
branches: [main, 'renovate/**']
pull_request:
types: [opened, synchronize, ready_for_review, reopened]
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
fetch-depth: 0
ref: ${{ github.head_ref }}

- name: Install mise
uses: jdx/mise-action@v2

- name: 💅🏽 Run Prettier
run: |
npm install @bfra.me/[email protected]
npx [email protected] --no-color --check .devcontainer .dotfiles .github
4 changes: 2 additions & 2 deletions .github/workflows/renovate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
# Renovate this repository if Renovate-specific tasks are checked, if this workflow file or the Renovate configuration file is changed, or if dispatched.
name: Renovate

"on":
'on':
issues:
types: [edited]
pull_request:
types: [edited]
push:
branches: ["**"]
branches: ['**']
workflow_dispatch:
inputs:
print-config:
Expand Down
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.dotfiles/logs/
.dotfiles/objects/
.dotfiles/refs/
1 change: 1 addition & 0 deletions .prettierrc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
'@bfra.me/prettier-config/120-proof'

0 comments on commit 003cf7a

Please sign in to comment.