This repository has been archived by the owner on Jan 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update README * add chore settings * fmt fix
- Loading branch information
1 parent
c22f74d
commit 0f4e93f
Showing
13 changed files
with
366 additions
and
231 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
module.exports = { | ||
env: { | ||
browser: true, | ||
es2021: true, | ||
}, | ||
extends: [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended-type-checked", | ||
"plugin:@typescript-eslint/stylistic-type-checked", | ||
"plugin:import/recommended", | ||
"plugin:import/typescript", | ||
"prettier", | ||
], | ||
parserOptions: { | ||
ecmaVersion: "latest", | ||
project: ["./tsconfig.json"], | ||
}, | ||
rules: { | ||
"@typescript-eslint/ban-ts-comment": "off", | ||
"react/prop-types": "off", | ||
"@typescript-eslint/consistent-type-definitions": ["error", "type"], | ||
"@typescript-eslint/no-unused-vars": [ | ||
"warn", | ||
{ | ||
argsIgnorePattern: "^_", | ||
varsIgnorePattern: "^_", | ||
caughtErrorsIgnorePattern: "^_", | ||
}, | ||
], | ||
"import/order": [ | ||
"error", | ||
{ | ||
groups: ["builtin", "external", "parent", "sibling", "index"], | ||
pathGroupsExcludedImportTypes: [], | ||
alphabetize: { order: "asc" }, | ||
"newlines-between": "never", | ||
}, | ||
], | ||
// FIXME: delete | ||
"@typescript-eslint/no-unsafe-member-access": "off", | ||
"@typescript-eslint/no-misused-promises": "off", | ||
"@typescript-eslint/no-unsafe-assignment": "off", | ||
"@typescript-eslint/no-explicit-any": "off", | ||
}, | ||
root: true, | ||
settings: { | ||
"import/resolver": { | ||
node: { | ||
extensions: [".json", ".ts"], | ||
moduleDirectory: ["node_modules", "src/"], | ||
}, | ||
}, | ||
}, | ||
ignorePatterns: ["prisma/seed.ts"], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
timezone: "Asia/Tokyo", | ||
baseBranches: ["main"], | ||
extends: ["config:base", ":semanticCommitTypeAll(chore)"], | ||
enabledManagers: ["npm"], | ||
dependencyDashboard: true, | ||
schedule: ["before 11am every monday"], | ||
automergeSchedule: ["before 11am every tuesday"], | ||
labels: ["dependencies"], | ||
rangeStrategy: "bump", | ||
lockFileMaintenance: { | ||
enabled: true, | ||
automerge: true, | ||
}, | ||
packageRules: [ | ||
{ | ||
matchManagers: ["npm"], | ||
matchDepTypes: ["devDependencies"], | ||
matchPackagePatterns: ["lint", "prettier"], | ||
automerge: true, | ||
}, | ||
{ | ||
matchManagers: ["npm"], | ||
matchUpdateTypes: ["minor", "patch"], | ||
matchCurrentVersion: "!/^0/", | ||
automerge: true, | ||
}, | ||
{ | ||
extends: ["monorepo:ionic-native"], | ||
matchUpdateTypes: ["patch", "minor"], | ||
automerge: true, | ||
}, | ||
], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: build | ||
on: | ||
push: | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 20 | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "18" | ||
|
||
- name: Install pnpm | ||
uses: pnpm/action-setup@v2 | ||
with: | ||
version: 8 | ||
run_install: false | ||
|
||
- name: Get pnpm directory | ||
shell: bash | ||
run: | | ||
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV | ||
- name: Cache dependencies | ||
uses: actions/cache@v3 | ||
with: | ||
path: ${{ env.STORE_PATH }} | ||
key: ${{ runner.os }}-node-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-node- | ||
- run: pnpm i --frozen-lockfile | ||
- run: pnpm fmt | ||
- run: pnpm lint | ||
- run: pnpm build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
{ | ||
"config": { | ||
"line-length": false, // MD013 行の長さ | ||
"no-bare-urls": false, // MD034 URLのリンク化条件 | ||
"no-duplicate-header": false, | ||
"no-inline-html": false | ||
}, | ||
"ignores": [".git", "node_modules"] // 無視するディレクトリ | ||
} | ||
|
||
"config": { | ||
"line-length": false, // MD013 行の長さ | ||
"no-bare-urls": false, // MD034 URLのリンク化条件 | ||
"no-duplicate-header": false, | ||
"no-inline-html": false | ||
}, | ||
"ignores": [".git", "node_modules"] // 無視するディレクトリ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
build/* | ||
pnpm-lock.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.