diff options
| author | Ahmed AbdelHalim <[email protected]> | 2025-09-06 23:55:19 +0200 |
|---|---|---|
| committer | Ahmed AbdelHalim <[email protected]> | 2025-09-07 02:20:46 +0200 |
| commit | 17168a489392847794de0aed15fe395230a38261 (patch) | |
| tree | 60914d9df4b9b37852e54dcf72818b0df1a958fb /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.js | 27 |
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" + } + } +]; |
