Skip to content

Commit

Permalink
chore(deps): update dependencies and add commitlint-config (#26)
Browse files Browse the repository at this point in the history
## Changes

- chore(deps): add own `commitlint-config` and update all dependencies
- chore(repo): add stale bot to remove old issues with no progress
- chore(repo): simplify prettier config
  • Loading branch information
mheob authored Apr 13, 2023
1 parent 1952992 commit 00adc68
Show file tree
Hide file tree
Showing 7 changed files with 569 additions and 223 deletions.
2 changes: 2 additions & 0 deletions .changeset/orange-buckets-ring.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
9 changes: 9 additions & 0 deletions .commitlintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
const defaultConfig = require('@mheob/commitlint-config');

/** @type {import('cz-git').UserConfig} */
module.exports = {
...defaultConfig,
prompt: {
...defaultConfig.prompt,
},
};
18 changes: 18 additions & 0 deletions .github/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Number of days of inactivity before an issue becomes stale
daysUntilStale: 91
# Number of days of inactivity before a stale issue is closed
daysUntilClose: 77
# Issues with these labels will never be considered stale
exemptLabels:
- "not stale"
- "security"
# Label to use when marking an issue as stale
staleLabel: stale
# Comment to post when marking an issue as stale. Set to `false` to disable
markComment: >
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further
activity occurs. Thank you for your contributions.
# Comment to post when closing a stale issue. Set to `false` to disable
closeComment: false
unmarkComment: false
only: issues
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
node
18
12 changes: 1 addition & 11 deletions .prettierrc.cjs
Original file line number Diff line number Diff line change
@@ -1,14 +1,4 @@
/** @type {import('prettier').Config} */
module.exports = {
...require('@mheob/prettier-config'),

overrides: [
...require('@mheob/prettier-config').overrides,
{
files: '*.md',
options: {
printWidth: 999,
proseWrap: 'never',
},
},
],
};
23 changes: 10 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,6 @@
"test:ui": "vitest --ui",
"version-packages": "changeset version && pnpm run format"
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"lint-staged": {
"*.{cjs,js,mjs,ts}": "eslint --fix",
"!(pnpm-)*.{cjs,js,mjs,ts,json,md,mdx,yaml,yml}": "pnpm exec prettier --write",
Expand All @@ -59,21 +54,23 @@
"devDependencies": {
"@changesets/cli": "^2.26.1",
"@changesets/parse": "^0.3.16",
"@commitlint/cli": "^17.5.1",
"@commitlint/config-conventional": "^17.4.4",
"@commitlint/cli": "^17.6.0",
"@mheob/commitlint-config": "^1.0.1",
"@mheob/eslint-config": "^4.2.1",
"@mheob/prettier-config": "^3.0.1",
"@mheob/tsconfig": "^1.0.1",
"@mheob/tsconfig": "^2.0.0",
"@types/node": "^18.15.11",
"@vitest/coverage-istanbul": "^0.29.8",
"eslint": "^8.37.0",
"@vitest/coverage-istanbul": "^0.30.1",
"commitizen": "^4.3.0",
"cz-git": "^1.6.1",
"eslint": "^8.38.0",
"husky": "^8.0.3",
"lint-staged": "^13.2.0",
"lint-staged": "^13.2.1",
"ts-node": "^10.9.1",
"tsup": "^6.7.0",
"typescript": "^4.9.5",
"typescript": "^5.0.4",
"vite": "^4.2.1",
"vitest": "^0.29.8"
"vitest": "^0.30.1"
},
"tsup": {
"clean": true,
Expand Down
Loading

0 comments on commit 00adc68

Please sign in to comment.