mirror of
https://github.com/ahmadk953/poixpixel-discord-bot.git
synced 2025-06-12 09:59:29 +00:00
Compare commits
1 commit
4e9139f73e
...
196ef12764
Author | SHA1 | Date | |
---|---|---|---|
|
196ef12764 |
8 changed files with 23 additions and 1146 deletions
|
@ -1,5 +0,0 @@
|
||||||
{
|
|
||||||
"extends": [
|
|
||||||
"@commitlint/config-conventional"
|
|
||||||
]
|
|
||||||
}
|
|
39
.github/workflows/commitlint.yml
vendored
39
.github/workflows/commitlint.yml
vendored
|
@ -1,39 +0,0 @@
|
||||||
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 +0,0 @@
|
||||||
yarn dlx commitlint --edit \
|
|
|
@ -1 +0,0 @@
|
||||||
yarn lint-staged
|
|
|
@ -1 +0,0 @@
|
||||||
yarn compile
|
|
|
@ -1,12 +0,0 @@
|
||||||
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],
|
|
||||||
};
|
|
11
package.json
11
package.json
|
@ -14,19 +14,16 @@
|
||||||
"restart": "pm2 restart poixpixel-discord-bot",
|
"restart": "pm2 restart poixpixel-discord-bot",
|
||||||
"lint": "npx eslint ./src && npx tsc --noEmit",
|
"lint": "npx eslint ./src && npx tsc --noEmit",
|
||||||
"format": "prettier --check --ignore-path .prettierignore .",
|
"format": "prettier --check --ignore-path .prettierignore .",
|
||||||
"format:fix": "prettier --write --ignore-path .prettierignore .",
|
"format:fix": "prettier --write --ignore-path .prettierignore ."
|
||||||
"prepare": "husky"
|
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@napi-rs/canvas": "^0.1.68",
|
"@napi-rs/canvas": "^0.1.68",
|
||||||
"discord.js": "^14.18.0",
|
"discord.js": "^14.18.0",
|
||||||
"drizzle-orm": "^0.40.1",
|
"drizzle-orm": "^0.40.0",
|
||||||
"ioredis": "^5.6.0",
|
"ioredis": "^5.6.0",
|
||||||
"pg": "^8.14.1"
|
"pg": "^8.14.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@commitlint/cli": "^19.8.0",
|
|
||||||
"@commitlint/config-conventional": "^19.8.0",
|
|
||||||
"@eslint/eslintrc": "^3.3.0",
|
"@eslint/eslintrc": "^3.3.0",
|
||||||
"@eslint/js": "^9.22.0",
|
"@eslint/js": "^9.22.0",
|
||||||
"@microsoft/eslint-formatter-sarif": "^3.1.0",
|
"@microsoft/eslint-formatter-sarif": "^3.1.0",
|
||||||
|
@ -38,8 +35,6 @@
|
||||||
"eslint": "^9.22.0",
|
"eslint": "^9.22.0",
|
||||||
"eslint-config-prettier": "^10.1.1",
|
"eslint-config-prettier": "^10.1.1",
|
||||||
"globals": "^16.0.0",
|
"globals": "^16.0.0",
|
||||||
"husky": "^9.1.7",
|
|
||||||
"lint-staged": "^15.5.0",
|
|
||||||
"prettier": "3.5.3",
|
"prettier": "3.5.3",
|
||||||
"ts-node": "^10.9.2",
|
"ts-node": "^10.9.2",
|
||||||
"tsx": "^4.19.3",
|
"tsx": "^4.19.3",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue