From 17168a489392847794de0aed15fe395230a38261 Mon Sep 17 00:00:00 2001 From: Ahmed AbdelHalim Date: Sat, 6 Sep 2025 23:55:19 +0200 Subject: Initial commit This cleaned up and added linting/readme to the already created web app that I have been using to control vpn on my raspberry setup --- eslint.config.js | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 eslint.config.js (limited to 'eslint.config.js') diff --git a/eslint.config.js b/eslint.config.js new file mode 100644 index 0000000..3bfc90c --- /dev/null +++ b/eslint.config.js @@ -0,0 +1,27 @@ +// Minimal ESLint config - zero dependencies +export default [ + { + files: ["**/*.js"], + languageOptions: { + ecmaVersion: 2022, + sourceType: "module", + globals: { + window: "readonly", + document: "readonly", + console: "readonly", + fetch: "readonly", + App: "readonly", + Utils: "readonly", + ConnectionManager: "readonly", + StatusManager: "readonly" + } + }, + rules: { + "no-unused-vars": "warn", + "no-undef": "error", + "no-console": "off", + "no-redeclare": "error", + "no-unreachable": "error" + } + } +]; -- cgit v1.2.3