ci: add prettier formatting (#130)
This commit is contained in:
1 parent
d7f460f308
commit
79d77568ad
3 files changed
+34
No files matched your search
@@ -0,0 +1,22 @@
|
|||||||
|
name: Prettier
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
push:
|
||||||
|
branches: [main]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
prettier:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
# Make sure the actual branch is checked out when running on pull requests
|
||||||
|
ref: ${{ github.head_ref }}
|
||||||
|
|
||||||
|
- name: Run prettier
|
||||||
|
uses: creyD/[email protected]
|
||||||
|
with:
|
||||||
|
commit_message: "style: format code with prettier"
|
||||||
|
prettier_options: "--write styles/**/*.css"
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
/styles/codeberg/
|
||||||
|
/styles/reddit/
|
||||||
+10
@@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"overrides": [
|
||||||
|
{
|
||||||
|
"files": "styles/**/*.css",
|
||||||
|
"options": {
|
||||||
|
"parser": "less"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
Reference in new issue
Block a user