Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"name": "Node.js & TypeScript",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/typescript-node:1-18-bookworm",
"image": "mcr.microsoft.com/devcontainers/typescript-node:22-bookworm",

// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},
Expand Down
2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

63 changes: 0 additions & 63 deletions .eslintrc.js

This file was deleted.

10 changes: 5 additions & 5 deletions .github/workflows/test-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node: [16, 18]
node: [22, 20, 18]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
Expand All @@ -43,7 +43,7 @@ jobs:
run: npm run test:jest

- name: Send data to Coveralls
if: always() && matrix.node == 16
if: always() && matrix.node == 22
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -57,10 +57,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Use node 18
- name: Use node 22
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 22

- name: Install dependencies
run: npm ci
Expand All @@ -87,7 +87,7 @@ jobs:
if: steps.semantic.outputs.new_release_published == 'true'
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 22
registry-url: 'https://npm.pkg.github.com'
scope: 'svrooij'

Expand Down
53 changes: 53 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
import tsParser from "@typescript-eslint/parser";
import path from "node:path";
import { fileURLToPath } from "node:url";
import js from "@eslint/js";
import { FlatCompat } from "@eslint/eslintrc";

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all
});

export default [...compat.extends(
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
// "plugin:prettier/recommended",
), {
languageOptions: {
parser: tsParser,
ecmaVersion: 2020,
sourceType: "module",
},

rules: {
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-explicit-any": "warn",

"@typescript-eslint/no-unused-vars": ["warn", {
argsIgnorePattern: "^_",
varsIgnorePattern: "^_",
}],

// "prettier/prettier": ["error", {
// endOfLine: "auto",
// }],
},
}, {
files: ["**/*.ts", "**/*.tsx"],

rules: {
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-duplicate-enum-values': 'off',
},
},
{
files: ["src/tests/helpers/metadata-helper.test.ts", "src/tests/helpers/legacy-helpers.js"],
rules: {
'@typescript-eslint/no-require-imports':'off',
'no-undef':'off',
}
}];
9 changes: 7 additions & 2 deletions jest.config.js → jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
module.exports = {
import type {Config} from 'jest';

const config: Config = {
verbose: true,
transform: {
'.tsx?$': 'ts-jest'
},
Expand All @@ -14,4 +17,6 @@ module.exports = {
'src/models/*.ts',
'src/services/*.ts'
]
}
};

export default config;
Loading