Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): bump versions #158

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open
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
6 changes: 0 additions & 6 deletions .eslintignore

This file was deleted.

75 changes: 0 additions & 75 deletions .eslintrc.yml

This file was deleted.

6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# --------------- Dev stage for developers to override sources
FROM node:20.18.0-alpine as dev
FROM node:20.18.1-alpine as dev
ARG NPM_TOKEN
RUN test -n "$NPM_TOKEN"

Expand All @@ -20,7 +20,7 @@ RUN npm ci
# --------------- ci stage for CI runner
FROM dev as ci

COPY . .eslintrc.yml ./
COPY . eslint.config.mjs ./

ARG SKIP_TESTS='false'
ARG CI=true
Expand All @@ -34,7 +34,7 @@ FROM dev as clean
# below command removes the packages specified in devDependencies and set NODE_ENV to production
RUN npm prune --production
# --------------- Production stage
FROM node:20.18.0-alpine AS prod
FROM node:20.18.1-alpine AS prod

COPY --from=dev /usr/local/bin/node /usr/bin/
COPY --from=dev /usr/lib/libgcc* /usr/lib/
Expand Down
115 changes: 115 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
import { fixupConfigRules, fixupPluginRules } from "@eslint/compat";
import _import from "eslint-plugin-import";
import prettier from "eslint-plugin-prettier";
import typescriptEslint from "@typescript-eslint/eslint-plugin";
import globals from "globals";
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 [{
ignores: [
"**/.history/",
"**/.vscode/",
"**/build",
"**/dist",
"**/coverage",
"vendors/client/",
"**/*.test.ts"
],
}, ...fixupConfigRules(compat.extends(
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:prettier/recommended",
"prettier",
"plugin:import/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript",
"plugin:chai-friendly/recommended",
)), {
plugins: {
import: fixupPluginRules(_import),
prettier: fixupPluginRules(prettier),
"@typescript-eslint": fixupPluginRules(typescriptEslint),
},

languageOptions: {
globals: {
...globals.mocha,
...globals.node,
},

parser: tsParser,
ecmaVersion: 2021,
sourceType: "commonjs",

parserOptions: {
project: ["./tsconfig.json"],
},
},

settings: {
"import/resolver": {
node: {
extensions: [".ts"],
},
},
},

rules: {
"@typescript-eslint/ban-ts-comment": "warn",
"@typescript-eslint/member-delimiter-style": "off",
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/explicit-function-return-type": "warn",
"@typescript-eslint/no-unsafe-assignment": "warn",
"@typescript-eslint/no-unsafe-member-access": "warn",
"@typescript-eslint/no-unsafe-return": "warn",
"@typescript-eslint/no-unused-vars": "warn",
"@typescript-eslint/no-unsafe-argument": "warn",
"@typescript-eslint/no-use-before-define": "warn",
"@typescript-eslint/restrict-template-expressions": "warn",
"@typescript-eslint/no-base-to-string": "warn",
"@typescript-eslint/no-empty-object-type": "warn",
"@typescript-eslint/no-unsafe-call": "warn",
"@typescript-eslint/no-non-null-assertion": "warn",
"@typescript-eslint/no-floating-promises": "warn",
"@typescript-eslint/no-redundant-type-constituents": "warn",
"@typescript-eslint/no-shadow": "error",
"func-names": "warn",
"import/no-unresolved": "warn",
"import/no-extraneous-dependencies": "warn",
"import/extensions": "warn",
"import/prefer-default-export": "warn",
"eol-last": ["error", "always"],
"no-shadow": "warn",
"no-unused-vars": "warn",
"prefer-destructuring": "error",
"no-use-before-define": "warn",
"no-console": "warn",
"object-shorthand": "error",
"no-debugger": "error",
"prettier/prettier": "warn",

"no-param-reassign": ["error", {
props: true,
ignorePropertyModificationsFor: ["memo"],
}],

"no-plusplus": [2, {
allowForLoopAfterthoughts: true,
}],
},
}];
Loading
Loading