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
22 changes: 11 additions & 11 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,17 @@ repos:
- id: end-of-file-fixer
exclude: .*__generated__.*
- id: trailing-whitespace
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.1.0
hooks:
- id: prettier
exclude: |
(?x)(
.*__generated__.*|
^kompassi/|
^kubernetes/|
^.github
)
# - repo: local
# hooks:
# - id: prettier
# name: prettier
# entry: prettier
# args: [--check, --ignore-unknown]
# language: node
# types_or: [javascript, jsx, ts, tsx]
# files: ^kompassi-v2-frontend/
# additional_dependencies:
# - prettier@3.9.6
# XXX somehow the typechecking still leaks to parts of the code that is not yet ready for pyrekt
# - repo: https://github.com/RobertCraigie/pyright-python
# rev: v1.1.367
Expand Down
2 changes: 2 additions & 0 deletions kompassi-v2-frontend/codegen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ const config: CodegenConfig = {
},
ignoreNoDocuments: true,
config: {
enumType: "enum",
scalars: {
DateTime: "string",
Decimal: "string",
GenericScalar: "unknown",
JSONString: "string",
UUID: "string",
Expand Down
28 changes: 12 additions & 16 deletions kompassi-v2-frontend/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,28 +1,24 @@
import { dirname } from "path";
import { fileURLToPath } from "url";
import { FlatCompat } from "@eslint/eslintrc";

const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);

const compat = new FlatCompat({
baseDirectory: __dirname,
});
import nextCoreWebVitals from "eslint-config-next/core-web-vitals";
import prettier from "eslint-config-prettier";
import tseslint from "typescript-eslint";

const eslintConfig = [
...compat.extends("next/core-web-vitals", "next/typescript", "prettier"),
...compat.config({
ignorePatterns: ["src/__generated__/*.ts"],
}),
...compat.config({
...nextCoreWebVitals,
prettier,
{
ignores: ["src/__generated__/*.ts"],
},
{
files: ["**/*.ts", "**/*.tsx"],
plugins: { "@typescript-eslint": tseslint.plugin },
rules: {
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": [
"warn",
{ argsIgnorePattern: "^_" },
],
},
}),
},
];

export default eslintConfig;
8 changes: 7 additions & 1 deletion kompassi-v2-frontend/next.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const nextConfig: NextConfig = {
incomingRequests: false,
},
experimental: {
middlewareClientMaxBodySize: bodySizeLimit,
proxyClientMaxBodySize: bodySizeLimit,
serverActions: {
bodySizeLimit,
},
Expand All @@ -22,6 +22,12 @@ const nextConfig: NextConfig = {
"global-builtin",
"color-functions",
],
// Turbopack mishandles Sass's `@charset "UTF-8";` output: it gets turned
// into a raw BOM that lands after Turbopack's own leading comment instead
// of at byte 0, which invalidates the CSS rule it's glued to (Bootstrap's
// `:root` variable declarations). We don't rely on non-ASCII output, so
// just stop Sass from emitting a charset marker at all.
charset: false,
},
};

Expand Down
Loading
Loading