Skip to content

Commit

Permalink
feat: update dependencies
Browse files Browse the repository at this point in the history
BREAKING CHANGE: `node@14`, `node@16` and `node@18` are no longer supported
  • Loading branch information
leon19 committed Feb 12, 2024
1 parent 7b8fb1b commit 1cf3331
Show file tree
Hide file tree
Showing 30 changed files with 5,492 additions and 7,735 deletions.
97 changes: 0 additions & 97 deletions .eslintrc.json

This file was deleted.

6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
- name: Install dependencies
run: npm ci
- name: Release
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ jobs:

strategy:
matrix:
node-version: [16.x, 18.x, 20.x]
node-version: [20.x, 21.x]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: git config --global user.email "you@example.com"
Expand Down
3 changes: 0 additions & 3 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx commitlint --edit $1
3 changes: 0 additions & 3 deletions .husky/post-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

git update-index --again
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
4 changes: 2 additions & 2 deletions .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://json.schemastore.org/lintstagedrc.schema.json",
"{src,tests}/**/*.ts": ["eslint --fix"],
"*.{md,json}": ["prettier --write"]
"{src,tests}/**/*.{ts,json}": ["biome check --apply-unsafe"],
"*.md": ["prettier --write"]
}
5 changes: 0 additions & 5 deletions .mocha.entry.js

This file was deleted.

2 changes: 1 addition & 1 deletion .mocharc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"$schema": "https://json.schemastore.org/mocharc.json",
"require": [".mocha.entry.js"]
"node-option": ["loader=ts-node/esm", "no-warnings"]
}
6 changes: 1 addition & 5 deletions .prettierrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,11 @@
"$schema": "https://json.schemastore.org/prettierrc",
"singleQuote": true,
"printWidth": 140,
"tabWidth": 2,
"arrowParens": "avoid",
"trailingComma": "none",
"overrides": [
{
"files": "*.md",
"options": {
"proseWrap": "always",
"printWidth": 100
"proseWrap": "always"
}
}
]
Expand Down
6 changes: 2 additions & 4 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,11 @@
"NODE_ENV": "test"
},
"mochaExplorer.files": "tests/**/*.{test,spec}.ts",
"eslint.format.enable": true,
"eslint.run": "onSave",
"prettier.enable": true,
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
"editor.defaultFormatter": "biomejs.biome"
},
"[typescript]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
"editor.defaultFormatter": "biomejs.biome"
}
}
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# TypeScript NodeJS Starter Pack Generator

Generates a base TypeScript Node.JS from the
[ts-node-starter](https://github.com/leon19/ts-node-starter) repository
Generates a base TypeScript Node.JS from the [ts-node-starter](https://github.com/leon19/ts-node-starter) repository

```shell
npm install -g yo generator-ts-node-starter
Expand Down
42 changes: 42 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"$schema": "https://biomejs.dev/schemas/1.5.3/schema.json",
"organizeImports": {
"enabled": true
},
"linter": {
"enabled": true,

"rules": {
"recommended": true,
"style": {
"useShorthandArrayType": "error",
"useNamingConvention": "error",
"useShorthandAssign": "error"
},
"suspicious": {
"noConsoleLog": "error",
"noImplicitAnyLet": "error"
},
"nursery": {
"noUnusedImports": "error",
"noUnusedPrivateClassMembers": "error",
"useGroupedTypeImport": "error"
}
}
},
"formatter": {
"enabled": true,
"formatWithErrors": false,
"indentStyle": "space",
"indentWidth": 2,
"lineWidth": 120,
"lineEnding": "lf",
"ignore": []
},
"javascript": {
"formatter": {
"quoteStyle": "single",
"arrowParentheses": "asNeeded"
}
}
}

0 comments on commit 1cf3331

Please sign in to comment.