Skip to content

Commit

Permalink
perf: copy v2
Browse files Browse the repository at this point in the history
BREAKING CHANGE: v2
  • Loading branch information
mouse484 committed Oct 21, 2023
0 parents commit eeb3abe
Show file tree
Hide file tree
Showing 43 changed files with 23,416 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": ["github>mouse484/config//packages/renovate/default"]
}
29 changes: 29 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: Node.js CI

on:
push:
branches: ['main']
pull_request:
branches: ['main']

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16.x, 18.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run format
32 changes: 32 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# https://github.com/changesets/action#with-publishing
name: Release

on:
push:
branches:
- main

concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: 'npm'

- name: Install Dependencies
run: npm ci

- name: release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx @qiwi/multi-semantic-release
104 changes: 104 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env
.env.test

# parcel-bundler cache (https://parceljs.org/)
.cache

# Next.js build output
.next

# Nuxt.js build / generate output
.nuxt
dist

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and *not* Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port
6 changes: 6 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
tasks:
- init: npm install

vscode:
extensions:
- esbenp.prettier-vscode
3 changes: 3 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import mouse484 from "@mouse_484/prettier-config";

export default mouse484;
11 changes: 11 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"branches": [
"main"
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/changelog",
"@semantic-release/git",
"@semantic-release/github"
]
}
12 changes: 12 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"conventionalCommits.scopes": [
"eslint:base",
"test",
"bump",
"prettier",
"format",
"docs",
"setup",
"eslint"
]
}
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2022 mouse

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# @mouse_484/config

[![Release](https://github.com/mouse484/config/actions/workflows/release.yml/badge.svg)](https://github.com/mouse484/config/actions/workflows/release.yml)

[changelog](https://github.com/mouse484/config/tree/changelog)

## config

### ESLint

- `@mouse_484/eslint-config` (eslint/default)
- > @mouse_484/eslint-config-base, @mouse_484/eslint-config-typescript, @mouse_484/eslint-config-import, @mouse_484/eslint-config-prettier
- `@mouse_484/eslint-config-base`
- `@mouse_484/eslint-config-browser`
- `@mouse_484/eslint-config-node`
- `@mouse_484/eslint-config-import`
- `@mouse_484/eslint-config-prettier`
- `@mouse_484/eslint-config-typescript`
- `@mouse_484/eslint-config-svelte`

### Prettier

- `@mouse_484/prettier-config`

### Renovate

- `github>mouse484/config//packages/renovate/default`
7 changes: 7 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# @mouse_484/config-docs

## 0.1.0

### Minor Changes

- [#33](https://github.com/mouse484/config/pull/33) [`8fd31c5`](https://github.com/mouse484/config/commit/8fd31c5191065668523b6a9f0987e65f41c1eb56) Thanks [@mouse484](https://github.com/mouse484)! - docs(docs): :memo: style-guide
5 changes: 5 additions & 0 deletions docs/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"name": "@mouse_484/config-docs",
"license": "MIT",
"private": true
}
37 changes: 37 additions & 0 deletions docs/style-guide/JavaScript.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# mouse_484 JavaScript Style Guide

個人的な JavaScript でのルール。

- コードの最大横幅
- 80 文字まで
- <https://prettier.io/docs/en/options.html#print-width>
- インデント
- スペースを使用
-
- セミコロン (`;`)
- 全ての文の最後につける
- クオート (`" '`)
- シングルクオート (`''`)
- プロパティは必要な場合のみクオートで囲む
- コンマ (`,`)
- ES5 で有効な場合につける
- オブジェクト、配列などの最後にはつけない
- <https://prettier.io/docs/en/options.html#trailing-commas>
- かっこ (`{},()`)

- かっこと文字の間に空白を開ける

```js
{
foo: bar;
} // ture
{
foo: bar;
} // false
```

- アロー関数 (`()=>x`)
- 関数のパラメーターを常にカッコ囲む
- <https://prettier.io/docs/en/options.html#bracket-line>
- 行末
- LF
Loading

0 comments on commit eeb3abe

Please sign in to comment.