Skip to content

Instantly share code, notes, and snippets.

View kasaharu's full-sized avatar
:octocat:
こんにちは 世界

Wataru KASAHARA kasaharu

:octocat:
こんにちは 世界
View GitHub Profile
@kasaharu
kasaharu / angular.json
Created December 20, 2020 05:02
angular.json に設定しておきたい schematics
{
"schematics": {
"@schematics/angular:class": {
"lintFix": true
},
"@schematics/angular:component": {
"style": "scss",
"changeDetection": "OnPush",
"displayBlock": true,
"lintFix": true
@kasaharu
kasaharu / .prettierignore
Created September 25, 2019 16:38
Angular Application 用の .prettierignore
dist/
coverage/
node_modules/
/**/*.json
@kasaharu
kasaharu / circleci_config.yml
Last active January 22, 2020 17:08
Angular アプリケーション向けの CircleCI 設定ファイル
version: 2.1
executors:
ci-executor:
docker:
- image: circleci/node:10.16.0-stretch-browsers
references:
npm_cache_key: &npm_cache_key
dependency-npm-{{ checksum "yarn.lock" }}
@kasaharu
kasaharu / .prettierrc.json
Last active October 18, 2019 00:55
Prettier の設定ファイル
{
"arrowParens": "always",
"printWidth": 140,
"singleQuote": true,
"trailingComma": "all"
}
@kasaharu
kasaharu / renovate.json
Last active November 26, 2019 00:51
Renovate の設定ファイル
{
"extends": [
"config:base"
],
"timezone": "Asia/Tokyo",
"assignees": ["kasaharu"],
"reviewers": ["kasaharu"],
"schedule": ["every weekend"],
"labels": ["renovate"],
"patch": { "automerge": true },
@kasaharu
kasaharu / tslint.json
Last active May 20, 2020 13:03
Angular アプリケーションで使う TSLint ルール
{
"extends": "tslint:recommended",
"rules": {
"align": {
"options": [
"parameters",
"statements"
]
},
"array-type": false,
@kasaharu
kasaharu / physical remove
Created October 21, 2017 02:48
物理削除されているファイルを git rm
$ git st | grep deleted | cut -c15- | xargs git rm
@kasaharu
kasaharu / replace_command
Last active October 14, 2021 08:29
ファイルをまたいだ一括置換
$ grep -lr '<置き換えたい文字列>' apps/* | xargs sed -i '' -e 's/<置き換えたい文字列>/<期待する文字列>/g'
@kasaharu
kasaharu / react_higher_order_component.js
Created June 9, 2017 09:18
React Higher Order Component 例
class BaseList extends React.Component {
render() {
return (
<div>render {this.props.name} list</div>
)
}
}
class Base extends React.Component {
render() {