README hinzugefuegt, Lint-Fehler behoben, Code formatiert

This commit is contained in:
2026-05-10 02:15:40 +02:00
parent 5d1a048624
commit d25525946d
13 changed files with 1536 additions and 592 deletions

31
eslint.config.js Normal file
View File

@@ -0,0 +1,31 @@
const globals = require("globals");
const js = require("@eslint/js");
const prettierPlugin = require("eslint-plugin-prettier");
const prettierConfig = require("eslint-config-prettier");
module.exports = [
js.configs.recommended,
prettierConfig,
{
files: ["**/*.js"],
languageOptions: {
ecmaVersion: "latest",
sourceType: "script",
globals: {
...globals.browser,
...globals.jquery,
},
},
plugins: {
prettier: prettierPlugin,
},
rules: {
"prettier/prettier": "error",
"no-unused-vars": "warn",
"no-undef": "warn",
},
},
{
ignores: ["node_modules/**", "**/*.min.js"],
},
];