add eslint and prettier

This commit is contained in:
2025-09-11 20:41:25 +02:00
parent 14ddaa3932
commit e5b5e01ae4
8 changed files with 1536 additions and 9 deletions

24
backend/eslint.config.js Normal file
View File

@@ -0,0 +1,24 @@
import js from "@eslint/js";
import globals from "globals";
import { defineConfig } from "eslint/config";
export default defineConfig([
{
files: ["**/*.{js,mjs,cjs}"],
plugins: { js },
extends: ["js/recommended"],
languageOptions: {
globals: globals.node
},
rules: {
"no-unused-vars": [
"error",
{
argsIgnorePattern: "^_",
varsIgnorePattern: "^_",
caughtErrorsIgnorePattern: "^_",
},
]
}
},
]);