summaryrefslogtreecommitdiffstats
path: root/eslint.config.js
diff options
context:
space:
mode:
authorAhmed AbdelHalim <[email protected]>2025-09-06 23:55:19 +0200
committerAhmed AbdelHalim <[email protected]>2025-09-07 02:20:46 +0200
commit17168a489392847794de0aed15fe395230a38261 (patch)
tree60914d9df4b9b37852e54dcf72818b0df1a958fb /eslint.config.js
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
Diffstat (limited to 'eslint.config.js')
-rw-r--r--eslint.config.js27
1 files changed, 27 insertions, 0 deletions
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"
+ }
+ }
+];