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
28 changes: 0 additions & 28 deletions .eslintrc.js

This file was deleted.

4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:20-bookworm-slim
FROM node:24-trixie-slim

RUN apt-get -y update \
&& apt-get -y install tini \
Expand All @@ -21,4 +21,4 @@ ENV NODE_ENV="production"

EXPOSE 3000/tcp

CMD ["tini", "--", "node", "./dist/server.js"]
CMD ["tini", "--", "node", "./dist/src/server.js"]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ approval cannot be changed once submitted.

```sh
# install dependencies
npm run install
npm install

# run test suite
npm run test
Expand Down
51 changes: 51 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
const tsPlugin = require("@typescript-eslint/eslint-plugin");
const tsParser = require("@typescript-eslint/parser");
const prettierRecommended = require("eslint-plugin-prettier/recommended");
const simpleImportSort = require("eslint-plugin-simple-import-sort");
const { importX } = require("eslint-plugin-import-x");
const jestPlugin = require("eslint-plugin-jest");
const { includeIgnoreFile } = require("eslint/config");
const path = require("path");

const gitignorePath = path.resolve(__dirname, ".gitignore");

module.exports = [
includeIgnoreFile(gitignorePath, { gitignoreResolution: true }),
{
files: ["**/*.ts"],
languageOptions: {
parser: tsParser,
parserOptions: {
ecmaVersion: 12,
sourceType: "module",
},
},
plugins: {
"@typescript-eslint": tsPlugin,
"simple-import-sort": simpleImportSort,
"import-x": importX,
},
rules: {
...tsPlugin.configs.recommended.rules,
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
"import-x/first": "error",
"import-x/newline-after-import": "error",
"import-x/no-duplicates": "error",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"warn",
{
argsIgnorePattern: "^_",
varsIgnorePattern: "^_",
caughtErrorsIgnorePattern: "^_",
},
],
},
},
{
files: ["test/**/*.ts"],
...jestPlugin.configs["flat/recommended"],
},
prettierRecommended,
];
12 changes: 2 additions & 10 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
module.exports = {
moduleFileExtensions: ["ts", "js"],
transform: {
"^.+\\.(ts|tsx)$": [
"ts-jest",
{
/* ts-jest config goes here in Jest */
},
],
},
testMatch: ["**/test/**/*.spec.(ts|js)"],
moduleFileExtensions: ["js", "json"],
testMatch: ["<rootDir>/dist/test/**/*.spec.js"],
testEnvironment: "node",
};
Loading
Loading