Skip to content

Commit

Permalink
Merge pull request #10 from ncaq/cleanup-node
Browse files Browse the repository at this point in the history
Node.js関係の環境をクリーンアップ
  • Loading branch information
ncaq authored Nov 16, 2023
2 parents 3b8ac78 + c2bed95 commit ca4794e
Show file tree
Hide file tree
Showing 4 changed files with 1,090 additions and 875 deletions.
6 changes: 3 additions & 3 deletions git-hooks/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,9 @@ dist
# https://yarnpkg.com/getting-started/qa#which-files-should-be-gitignored

.yarn/*
# !.yarn/releases
!.yarn/releases
!.yarn/patches
# !.yarn/plugins
!.yarn/plugins
!.yarn/sdks
!.yarn/versions

Expand All @@ -156,6 +156,6 @@ dist
# !.yarn/cache

# and uncomment the following lines
# .pnp.*
.pnp.*

# End of https://www.toptal.com/developers/gitignore/api/node,yarn
47 changes: 24 additions & 23 deletions git-hooks/package.json
Original file line number Diff line number Diff line change
@@ -1,34 +1,35 @@
{
"private": true,
"packageManager": "yarn@4.0.1",
"engines": {
"node": ">=18.14"
},
"scripts": {
"fix": "FORCE_COLOR=1 run-p --continue-on-error --print-label 'fix:*'",
"fix": "concurrently 'yarn:fix:*'",
"fix:eslint": "yarn lint:eslint --fix",
"fix:prettier": "yarn lint:prettier --write",
"lint": "FORCE_COLOR=1 run-p --continue-on-error --print-label 'lint:*'",
"lint:eslint": "eslint --ignore-path .gitignore --cache --ext .js --ext .ts .",
"lint:prettier": "prettier --ignore-path .gitignore --ignore-unknown --check '**/*.{js,jsx,ts,tsx,json,html,css,less,sass,scss,yml,yaml}'",
"lint": "concurrently 'yarn:lint:*'",
"lint:eslint": "eslint --ext .js --ext .ts .",
"lint:prettier": "prettier --ignore-unknown --check '**/*.{js,jsx,ts,tsx,json,html,css,less,sass,scss,yml,yaml}'",
"lint:tsc": "tsc --noEmit"
},
"dependencies": {
"@commitlint/cli": "^18.4.2",
"@commitlint/config-conventional": "^18.4.2",
"@commitlint/message": "^18.4.0",
"@commitlint/types": "^18.4.0"
},
"devDependencies": {
"@types/node": "18.14.2",
"@typescript-eslint/eslint-plugin": "^5.54.1",
"@typescript-eslint/parser": "^5.54.1",
"eslint": "^8.36.0",
"eslint-config-airbnb-typescript": "^17.0.0",
"eslint-config-prettier": "^8.7.0",
"eslint-plugin-import": "^2.27.5",
"npm-run-all": "^4.1.5",
"prettier": "^2.8.4",
"typescript": "^4.9.5"
"@types/node": "20.9.0",
"@typescript-eslint/eslint-plugin": "^6.11.0",
"@typescript-eslint/parser": "^6.11.0",
"concurrently": "^8.2.2",
"eslint": "^8.53.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-airbnb-typescript": "^17.1.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-import": "^2.29.0",
"prettier": "^3.1.0",
"typescript": "^5.2.2"
},
"dependencies": {
"@commitlint/cli": "^17.0.2",
"@commitlint/config-conventional": "^17.0.2",
"@commitlint/message": "^17.4.2",
"@commitlint/types": "^17.4.4"
"packageManager": "yarn@4.0.2",
"engines": {
"node": ">=20.5"
}
}
2 changes: 1 addition & 1 deletion git-hooks/src/@commitlint/rules/subject-alnum-stop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import type { SyncRule } from "@commitlint/types";
export const subjectAlnumStop: SyncRule<RegExp | undefined> = (
parsed,
when = "always",
value = /[^\p{Letter}\p{Number}`]/u
value = /[^\p{Letter}\p{Number}`]/u,
) => {
const colonIndex = parsed.header.indexOf(":");
if (colonIndex > 0 && colonIndex === parsed.header.length - 1) {
Expand Down
Loading

0 comments on commit ca4794e

Please sign in to comment.