From bd1edbdc0a32f482e7d8aa6a8d84dd5cb0243782 Mon Sep 17 00:00:00 2001
From: Daniel Micay 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:
eslint using the following eslint.config.js 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"
- ]
+ 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