Compare commits

...

10 commits

Author SHA1 Message Date
Ahmad
4e9139f73e
Merge e5bffdb889 into 8d2b9c8dc9 2025-03-18 01:23:28 +00:00
Ahmad
e5bffdb889
fix(ci): fixed incorrect formatting for commitlint GitHub CI action
Some checks failed
Commitlint / Run commitlint scanning (push) Has been cancelled
Signed-off-by: Ahmad <103906421+ahmadk953@users.noreply.github.com>
2025-03-17 21:23:25 -04:00
Ahmad
c2316e8f3d
fix(ci): fixed commitlint GitHub CI action 2025-03-17 21:21:08 -04:00
Ahmad
19247de2b8
ci: added commitlint GitHub CI action 2025-03-17 21:13:44 -04:00
Ahmad
f91ac5f04d
build: added basic husky + commitlint + lint-staged setup 2025-03-17 21:05:32 -04:00
Ahmad
0db2a4235f
Merge branch 'main' of https://github.com/ahmadk953/poixpixel-discord-bot into fun-features
Update local dependencies
2025-03-17 20:33:48 -04:00
Ahmad
8d2b9c8dc9
Merge pull request #310 from ahmadk953/dependabot/npm_and_yarn/drizzle-orm-0.40.1
Some checks failed
ESLint / Run eslint scanning (push) Has been cancelled
NodeJS Build and Compile / build (21.x) (push) Has been cancelled
Bump drizzle-orm from 0.40.0 to 0.40.1
2025-03-17 18:53:23 -04:00
Ahmad
9f52b894f5
Merge pull request #309 from ahmadk953/dependabot/npm_and_yarn/pg-8.14.1
Bump pg from 8.14.0 to 8.14.1
2025-03-17 18:53:14 -04:00
dependabot[bot]
c7471e07c0
Bump drizzle-orm from 0.40.0 to 0.40.1
Bumps [drizzle-orm](https://github.com/drizzle-team/drizzle-orm) from 0.40.0 to 0.40.1.
- [Release notes](https://github.com/drizzle-team/drizzle-orm/releases)
- [Commits](https://github.com/drizzle-team/drizzle-orm/compare/0.40.0...0.40.1)

---
updated-dependencies:
- dependency-name: drizzle-orm
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-17 22:20:27 +00:00
dependabot[bot]
dc3a805fc7
Bump pg from 8.14.0 to 8.14.1
Bumps [pg](https://github.com/brianc/node-postgres/tree/HEAD/packages/pg) from 8.14.0 to 8.14.1.
- [Changelog](https://github.com/brianc/node-postgres/blob/master/CHANGELOG.md)
- [Commits](https://github.com/brianc/node-postgres/commits/pg@8.14.1/packages/pg)

---
updated-dependencies:
- dependency-name: pg
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-17 22:13:49 +00:00
8 changed files with 1146 additions and 23 deletions

5
.commitlintrc Normal file
View file

@ -0,0 +1,5 @@
{
"extends": [
"@commitlint/config-conventional"
]
}

39
.github/workflows/commitlint.yml vendored Normal file
View file

@ -0,0 +1,39 @@
name: Commitlint
on: [push, pull_request]
jobs:
commitlint:
name: Run commitlint scanning
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [23.x]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Configure Corepack
run: corepack enable
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: yarn
- name: Install commitlint
run: |
yarn add conventional-changelog-conventionalcommits
yarn add commitlint@latest
- name: Validate current commit (last commit) with commitlint
if: github.event_name == 'push'
run: npx commitlint --last --verbose
- name: Validate PR commits with commitlint
if: github.event_name == 'pull_request'
run: npx commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose

1
.husky/commit-msg Normal file
View file

@ -0,0 +1 @@
yarn dlx commitlint --edit \

1
.husky/pre-commit Normal file
View file

@ -0,0 +1 @@
yarn lint-staged

1
.husky/pre-push Normal file
View file

@ -0,0 +1 @@
yarn compile

12
.lintstagedrc.mjs Normal file
View file

@ -0,0 +1,12 @@
import path from 'path';
import process from 'process';
const buildEslintCommand = (filenames) =>
`eslint ${filenames.map((f) => path.relative(process.cwd(), f))}`;
const prettierCommand = 'prettier --write';
export default {
'*.{js,mjs,ts,mts}': [prettierCommand, buildEslintCommand],
'*.{json}': [prettierCommand],
};

View file

@ -14,16 +14,19 @@
"restart": "pm2 restart poixpixel-discord-bot",
"lint": "npx eslint ./src && npx tsc --noEmit",
"format": "prettier --check --ignore-path .prettierignore .",
"format:fix": "prettier --write --ignore-path .prettierignore ."
"format:fix": "prettier --write --ignore-path .prettierignore .",
"prepare": "husky"
},
"dependencies": {
"@napi-rs/canvas": "^0.1.68",
"discord.js": "^14.18.0",
"drizzle-orm": "^0.40.0",
"drizzle-orm": "^0.40.1",
"ioredis": "^5.6.0",
"pg": "^8.14.0"
"pg": "^8.14.1"
},
"devDependencies": {
"@commitlint/cli": "^19.8.0",
"@commitlint/config-conventional": "^19.8.0",
"@eslint/eslintrc": "^3.3.0",
"@eslint/js": "^9.22.0",
"@microsoft/eslint-formatter-sarif": "^3.1.0",
@ -35,6 +38,8 @@
"eslint": "^9.22.0",
"eslint-config-prettier": "^10.1.1",
"globals": "^16.0.0",
"husky": "^9.1.7",
"lint-staged": "^15.5.0",
"prettier": "3.5.3",
"ts-node": "^10.9.2",
"tsx": "^4.19.3",

1099
yarn.lock

File diff suppressed because it is too large Load diff