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

Dev to Main | Update dependencies #14

Merged
merged 13 commits into from
Dec 8, 2024
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ DB_NAME=irms
DB_PATH=/Users/braydonharris/dev/personal-projects/tak/tak-server/target/
NODE_ENV=local
APP_ENV=Local
CORS_DOMAIN='http://localhost:5173,http://127.0.0.1:5173,http://127.0.0.1:3000'
CORS_DOMAIN='*'
ANON_DB_PATH=/Users/braydonharris/dev/personal-projects/tak/server/games_anon.db
DIST_PATH=dist/
PREVIOUS_FILE=previous.txt
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

strategy:
matrix:
node-version: [18.x]
node-version: [22.x]

steps:
- uses: actions/checkout@v3
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/deploy-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ on:
jobs:
build:

runs-on: ubuntu-latest
runs-on: ubuntu-20.04
environment: Beta
strategy:
matrix:
node-version: [16.x]
node-version: [22.x]

steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -83,5 +83,5 @@ jobs:
cp playtak-api-dev-tmp/previous.txt /var/apps/playtak-api-beta/previous.txt
rm -rf playtak-api-dev-tmp
rm artifact.tar.gz
pm2 restart playtak-api-beta --update-env
pm2 restart playtak-api-beta --update-env --interpreter=/home/ubuntu/.nvm/versions/node/v22.11.0/bin/node
'
6 changes: 3 additions & 3 deletions .github/workflows/deploy-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ on:
jobs:
build:

runs-on: ubuntu-latest
runs-on: ubuntu-20.04
environment: Prod
strategy:
matrix:
node-version: [16.x]
node-version: [22.x]

steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -82,5 +82,5 @@ jobs:
cp playtak-api-tmp/previous.txt /var/apps/playtak-api-prod/previous.txt
rm -rf playtak-api-tmp
rm artifact.tar.gz
pm2 restart playtak-api-prod --update-env
pm2 restart playtak-api-prod --update-env --interpreter=/home/ubuntu/.nvm/versions/node/v22.11.0/bin/node
'
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v22.11.0
79 changes: 79 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
import typescriptEslintEslintPlugin 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: ["**/.eslintrc.js"],
}, ...compat.extends("plugin:@typescript-eslint/recommended"), {
plugins: {
"@typescript-eslint": typescriptEslintEslintPlugin,
},

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

parser: tsParser,
ecmaVersion: 5,
sourceType: "module",

parserOptions: {
project: "tsconfig.json",
tsconfigRootDir: "./",
},
},

rules: {
"@typescript-eslint/interface-name-prefix": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-expressions": "off",
"eol-last": "off",
"brace-style": "off",
"comma-dangle": "off",
"comma-spacing": "off",
eqeqeq: "off",
indent: "off",
"key-spacing": "off",
"keyword-spacing": "off",
"max-len": "off",
"no-ex-assign": "off",
"no-extra-boolean-cast": "off",
"no-floating-decimal": "off",
"no-multi-spaces": "off",
"no-throw-literal": "off",
"no-unreachable": "off",
radix: "off",
"quote-props": "off",
quotes: "off",
"space-before-function-paren": "off",
"space-in-parens": "off",
"space-infix-ops": "off",
"space-unary-ops": "off",
"spaced-comment": "off",
indent: ["warn", "tab", {
SwitchCase: 1,

ignoredNodes: [
"FunctionExpression > .params[decorators.length > 0]",
"FunctionExpression > .params > :matches(Decorator, :not(:first-child))",
"ClassBody.body > PropertyDefinition[decorators.length > 0] > .key",
],
}],
},
}];
Loading
Loading