Skip to content

Commit

Permalink
BC-8201 - Check possible updates in tldraw client/server (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
SevenWaysDP authored Nov 11, 2024
1 parent 0687df6 commit 6fddb75
Show file tree
Hide file tree
Showing 7 changed files with 2,016 additions and 2,758 deletions.
27 changes: 0 additions & 27 deletions .eslintrc.cjs

This file was deleted.

1 change: 0 additions & 1 deletion .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ jobs:
format: 'sarif'
output: 'trivy-results.sarif'
severity: 'CRITICAL,HIGH'
exit-code: 1
ignore-unfixed: true
scan-type: 'image'
env:
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# build stage
FROM docker.io/node:20-bullseye as build-stage
FROM docker.io/node:22-bullseye AS build-stage

RUN mkdir /app && chown -R node:node /app

Expand All @@ -8,7 +8,7 @@ WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci

COPY LICENSE.md .eslintrc.cjs .prettierrc.cjs vite.config.ts tsconfig.json tsconfig.node.json index.html ./
COPY LICENSE.md eslint.config.mjs .prettierrc.cjs vite.config.ts tsconfig.json tsconfig.node.json index.html ./
COPY public ./public
COPY src ./src
RUN NODE_ENV=production npm run build
Expand Down
62 changes: 62 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
import { fixupConfigRules } from "@eslint/compat";
import { FlatCompat } from "@eslint/eslintrc";
import js from "@eslint/js";
import tsParser from "@typescript-eslint/parser";
import reactRefresh from "eslint-plugin-react-refresh";
import globals from "globals";
import path from "node:path";
import { fileURLToPath } from "node:url";

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: ["**/dist/**/*.*", "eslint.config.mjs", ".prettierrc.cjs"],
},
...fixupConfigRules(
compat.extends(
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react-hooks/recommended",
"plugin:prettier/recommended",
),
),
{
plugins: {
"react-refresh": reactRefresh,
},

languageOptions: {
globals: {
...globals.browser,
},

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

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

rules: {
"no-console": "warn",
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/no-unused-vars": "warn",
"react-refresh/only-export-components": [
"warn",
{
allowConstantExport: true,
},
],
},
},
];
Loading

0 comments on commit 6fddb75

Please sign in to comment.