Skip to content

Commit

Permalink
prettierを設定
Browse files Browse the repository at this point in the history
setup-nodeがnodeのTLSのみ対応している模様なのでv20に変更。
  • Loading branch information
shouichi committed Feb 5, 2024
1 parent 5e540cd commit 3b526ef
Show file tree
Hide file tree
Showing 8 changed files with 36 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"dockerfile": "Dockerfile",
"args": {
"VARIANT": "3.3",
"NODE_VERSION": "21"
"NODE_VERSION": "20"
}
},
"postCreateCommand": [".devcontainer/bootstrap.sh"]
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/prettier.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Format Files

on:
- push

jobs:
prettier:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 20.x
cache: yarn
- run: yarn install --frozen-lockfile
- run: yarn run prettier --check '**/**.{yml,md}'
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ _site
.jekyll-cache
.jekyll-metadata
vendor

node_modules
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# anipos.github.io
# anipos.github.io
3 changes: 1 addition & 2 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ description: >- # this means to ignore newlines until "baseurl:"
baseurl: "" # the subpath of your site, e.g. /blog
url: "https://anipos.github.io" # the base hostname & protocol for your site, e.g. http://example.com
twitter_username: anipos_co_jp
github_username: anipos
github_username: anipos

# Build settings
theme: minima
Expand All @@ -35,7 +35,6 @@ plugins:
- jekyll-mentions
- jekyll-seo-tags
- jekyll-sitemap

# Exclude from processing.
# The following items will not be processed, by default.
# Any item listed under the `exclude:` key here will be automatically added to
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: post
title: "Rails 7.1で指定した範囲の行にあるテストを実行可能になりました"
title: "Rails 7.1で指定した範囲の行にあるテストを実行可能になりました"
author: "@shouichi"
date: 2024-02-02 17:26:14 +09:00
categories: rails
Expand Down
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"private": true,
"devDependencies": {
"prettier": "*"
}
}
8 changes: 8 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1


prettier@*:
version "3.2.5"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.2.5.tgz#e52bc3090586e824964a8813b09aba6233b28368"
integrity sha512-3/GWa9aOC0YeD7LUfvOG2NiDyhOWRvt1k+rcKhOuYnMY24iiCphgneUfJDyFXd6rZCAnuLBv6UeAULtrhT/F4A==

0 comments on commit 3b526ef

Please sign in to comment.