From bd1edbdc0a32f482e7d8aa6a8d84dd5cb0243782 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Mon, 8 Apr 2024 01:38:56 -0400 Subject: move to new eslint configuration format --- static/build.html | 56 +++++++++++++++++++++++-------------------------------- 1 file changed, 23 insertions(+), 33 deletions(-) (limited to 'static/build.html') diff --git a/static/build.html b/static/build.html index 08e6c178..dcdbb175 100644 --- a/static/build.html +++ b/static/build.html @@ -1364,40 +1364,30 @@ rm android-cts-media-1.5.zip declare variables, unless they are reassigned in which case they should be declared with let but never use var as it is effectively broken. Try to prefer loops with for..of. JavaScript must pass verification with - eslint using the following .eslintrc.json configuration:

- -
{
-    "env": {
-        "browser": true,
-        "es2022": true
-    },
-    "extends": "eslint:recommended",
-    "parserOptions": {
-        "ecmaVersion": 2022,
-        "sourceType": "module"
-    },
-    "rules": {
-        "indent": [
-            "error",
-            4
-        ],
-        "linebreak-style": [
-            "error",
-            "unix"
-        ],
-        "quotes": [
-            "error",
-            "double"
-        ],
-        "semi": [
-            "error",
-            "always"
-        ],
-        "no-var": [
-            "error"
-        ]
+                    eslint using the following eslint.config.js configuration:

+ +
import js from "@eslint/js";
+import globals from "globals";
+
+export default [
+    js.configs.recommended,
+    {
+        languageOptions: {
+            globals: {
+                ...globals.browser
+            },
+            ecmaVersion: 2022,
+            sourceType: "module"
+        },
+        rules: {
+            indent: ["error", 4],
+            "linebreak-style": ["error", "unix"],
+            quotes: ["error", "double"],
+            semi: ["error", "always"],
+            "no-var": ["error"]
+        }
     }
-}
+];

Cookies are only used for login sessions. Every cookie must have the __Host prefix to guarantee that it has the Secure -- cgit v1.3.1