1 import Globals from "globals";
2 import Html from "eslint-plugin-html";
3 import Js from "@eslint/js";
4 import PreferArrowFunctions from "eslint-plugin-prefer-arrow-functions";
5 import Stylistic from "@stylistic/eslint-plugin";
6 import * as RegexpPlugin from "eslint-plugin-regexp";
9 Js.configs.recommended,
10 RegexpPlugin.configs["flat/recommended"],
11 Stylistic.configs["disable-legacy"],
31 "curly": ["error", "multi-or-nest", "consistent"],
33 "guard-for-in": "error",
35 "no-unused-vars": "off",
37 "operator-assignment": "error",
38 "prefer-arrow-callback": "error",
39 "prefer-const": "error",
41 "PreferArrowFunctions/prefer-arrow-functions": "error",
42 "Stylistic/no-mixed-operators": [
46 ["&", "|", "^", "~", "<<", ">>", ">>>", "==", "!=", "===", "!==", ">", ">=", "<", "<=", "&&", "||", "in", "instanceof"]
50 "Stylistic/nonblock-statement-body-position": ["error", "below"],
56 "allowTemplateLiterals": true
59 "Stylistic/semi": "error",
60 "Stylistic/spaced-comment": ["error", "always", { "exceptions": ["*"] }]