2026-07-24 22:36:44 -04:00
|
|
|
import js from "@eslint/js";
|
|
|
|
|
import globals from "globals";
|
|
|
|
|
|
|
|
|
|
export default [
|
|
|
|
|
{
|
|
|
|
|
files: ["**/*.js"],
|
|
|
|
|
...js.configs.recommended,
|
|
|
|
|
languageOptions: {
|
|
|
|
|
ecmaVersion: 2024,
|
|
|
|
|
sourceType: "script",
|
|
|
|
|
globals: globals.browser,
|
|
|
|
|
},
|
|
|
|
|
linterOptions: {
|
|
|
|
|
reportUnusedDisableDirectives: "error",
|
|
|
|
|
},
|
|
|
|
|
rules: {
|
2026-07-25 16:46:00 -04:00
|
|
|
...js.configs.recommended.rules,
|
2026-07-24 22:36:44 -04:00
|
|
|
eqeqeq: "error",
|
|
|
|
|
"no-implicit-coercion": "error",
|
|
|
|
|
"no-var": "error",
|
|
|
|
|
"prefer-const": "error",
|
|
|
|
|
},
|
|
|
|
|
},
|
2026-07-29 12:38:25 -04:00
|
|
|
{
|
|
|
|
|
files: ["playwright.accessibility.config.mjs", "tests/accessibility.spec.mjs"],
|
|
|
|
|
...js.configs.recommended,
|
|
|
|
|
languageOptions: {
|
|
|
|
|
ecmaVersion: 2024,
|
|
|
|
|
sourceType: "module",
|
|
|
|
|
globals: {
|
|
|
|
|
...globals.browser,
|
|
|
|
|
...globals.node,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
linterOptions: {
|
|
|
|
|
reportUnusedDisableDirectives: "error",
|
|
|
|
|
},
|
|
|
|
|
rules: {
|
|
|
|
|
...js.configs.recommended.rules,
|
|
|
|
|
eqeqeq: "error",
|
|
|
|
|
"no-implicit-coercion": "error",
|
|
|
|
|
"no-var": "error",
|
|
|
|
|
"prefer-const": "error",
|
|
|
|
|
},
|
|
|
|
|
},
|
2026-07-24 22:36:44 -04:00
|
|
|
];
|