2024-03-11 23:33:12 +01:00
|
|
|
import js from "@eslint/js";
|
|
|
|
|
import globals from "globals";
|
|
|
|
|
|
|
|
|
|
export default [
|
|
|
|
|
js.configs.recommended,
|
|
|
|
|
{
|
|
|
|
|
languageOptions: {
|
2025-04-14 17:22:34 +02:00
|
|
|
ecmaVersion: 8,
|
2024-03-11 23:33:12 +01:00
|
|
|
sourceType: "script",
|
|
|
|
|
globals: {
|
|
|
|
|
Mousetrap: "readonly",
|
|
|
|
|
Papa: "readonly",
|
|
|
|
|
QUnit: "readonly",
|
|
|
|
|
Sao: "readonly",
|
|
|
|
|
Sortable: "readonly",
|
2026-03-13 15:14:09 +01:00
|
|
|
bb: "readonly",
|
2024-03-11 23:33:12 +01:00
|
|
|
i18n: "readonly",
|
|
|
|
|
jQuery: "readonly",
|
|
|
|
|
moment: "readonly",
|
|
|
|
|
...globals.browser
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
rules: {
|
2025-04-12 21:11:11 +02:00
|
|
|
"no-unused-vars": ["error", {
|
|
|
|
|
"caughtErrors": "none",
|
|
|
|
|
"args": "none",
|
|
|
|
|
}],
|
2024-03-11 23:33:12 +01:00
|
|
|
},
|
|
|
|
|
}, {
|
|
|
|
|
files: ['tests/**/*.js'],
|
|
|
|
|
languageOptions: {
|
|
|
|
|
globals: {
|
|
|
|
|
Sao: "readonly",
|
|
|
|
|
eval_pyson: "readonly",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
];
|